473,322 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Linking to Video File?

This is more strictly an HTML problem, but as I'm also using PHP and the
HTML groups seem to be infested with spam, I'm posting it here!

At the school where I work I've got an online searchable database of
video tapes and dvds, using MySql and PHP on a Linux machine. It works
fine. I'm trancoding some of the tapes to avi files, which can be
accessed as a samba share. I'd like to put clickable links into the
database, so if a user sees the file is coloured blue, they can click it
and it plays. I've got it working, but:

Using a 'href' link in HTML code of the PHP powered web page, the file
is downloaded at the user end completely before it starts playing, which
results in an unacceptably long delay. But if a user accesses the file
directly using the samba share directory, the video starts almost
immediately and 'streams'.

How can I embed into my PHP powered web page a link that uses samba file
sharing, so it streams, please?

Jim Ford
Apr 12 '07 #1
3 2358
Jim Ford wrote:
This is more strictly an HTML problem, but as I'm also using PHP and the
HTML groups seem to be infested with spam, I'm posting it here!

At the school where I work I've got an online searchable database of
video tapes and dvds, using MySql and PHP on a Linux machine. It works
fine. I'm trancoding some of the tapes to avi files, which can be
accessed as a samba share. I'd like to put clickable links into the
database, so if a user sees the file is coloured blue, they can click it
and it plays. I've got it working, but:

Using a 'href' link in HTML code of the PHP powered web page, the file
is downloaded at the user end completely before it starts playing, which
results in an unacceptably long delay. But if a user accesses the file
directly using the samba share directory, the video starts almost
immediately and 'streams'.

How can I embed into my PHP powered web page a link that uses samba file
sharing, so it streams, please?

Jim Ford
Jim,

You really need to ask this in an html group. You'll get better answers
there, spam or not.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 12 '07 #2
Jerry Stuckle wrote:
Jim Ford wrote:
>This is more strictly an HTML problem, but as I'm also using PHP and
the HTML groups seem to be infested with spam, I'm posting it here!

At the school where I work I've got an online searchable database of
video tapes and dvds, using MySql and PHP on a Linux machine. It works
fine. I'm trancoding some of the tapes to avi files, which can be
accessed as a samba share. I'd like to put clickable links into the
database, so if a user sees the file is coloured blue, they can click
it and it plays. I've got it working, but:

Using a 'href' link in HTML code of the PHP powered web page, the file
is downloaded at the user end completely before it starts playing,
which results in an unacceptably long delay. But if a user accesses
the file directly using the samba share directory, the video starts
almost immediately and 'streams'.

How can I embed into my PHP powered web page a link that uses samba
file sharing, so it streams, please?

Jim Ford

Jim,

You really need to ask this in an html group. You'll get better answers
there, spam or not.
You don't want to be using an href. Try looking up OBJECT / EMBED tags
and embed the data in the web page inline. The OBJECT/EMBED parameters
will be different depending on what you're embedding.

Flash Video is quite popular (like on YouTube), if you decide to go that
route:

You can find free embeddable Flash video players on the web, have a look
at this tutorial if you decide to go the Flash Movie way:

http://granades.com/2006/09/14/how-t...ny-easy-steps/

There seems to be a nice link to a free Flash Video encoder which will
transform your AVI's here (we have full version of flash here so I
haven't used that but looks good):

http://www.rivavx.com/index.php?encoder&L=3
Apr 13 '07 #3
Tyno Gendo wrote:
You don't want to be using an href. Try looking up OBJECT / EMBED tags
and embed the data in the web page inline. The OBJECT/EMBED parameters
will be different depending on what you're embedding.
Thanks a lot Tyno, I'll follow up what you suggest.

Thanks again for putting me on the right path!

Jim Ford
Apr 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Petri | last post by:
Dear newsreaders, Access to aspx-pages can be prevented for example checking authentication cookie on page_onload part of code. But is there any way to prevent direct access to indivual files...
8
by: Nehmo | last post by:
When a page has a JavaScript "link" to a video, like http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the actual video? Isn't it in the source somewhere? -- )|:__ Nehmo __:|(
3
by: walkeraj | last post by:
I'm trying to compile an open source game called IVAN , and I'm able to compile it from a makefile, but not from an IDE. I have attempted to recreate the way the makefile compiles the project as...
1
by: richardscheff | last post by:
Video selector works for IE but not other browsers. for not IE <object ID='Player' data="video/dodgeball.wmv" type="video/x-ms-wmv" width="320" height="280"> <param name="filename"...
2
by: SPG | last post by:
Hi, Two questions for you all.. Firstly, is there a way of streaming video using PHP? At the moment I just have a link to a video file and the whole thing downloads before playing which is a...
1
by: David Buckley | last post by:
Does anyone have any example code of converting any type of video to flash video at all using asp.net 2.0 c# web applications. God Bless
5
by: sonu | last post by:
hey good morning ...... how to convert a video file in .flv format in php for linux hosting......is there any package whis provide this facility . Can i use ffmpeg for linux hosting...
8
by: Oscar Arreyano | last post by:
I did a website for a friend's company where they wanted a 'downloads' section similar to standard file sharing you see all over the place. Everything works great except for video. I know there are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.