Linking to a video file?

J

Jim Ford

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 in MS
Media Player, which results in an unacceptably long delay (the file
could be 200Meg). But if a user accesses the file directly through the
file system using the samba share directory, the video starts almost
immediately and 'streams'.

I've looked at using the <object> tag, but this appears to embed the
whole video in the web page, which is not really what I want.

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

Jim Ford
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top