View Full Version : Stream movies by PHP
Syanto
November 16th, 2005, 03:09
Hi,
I got a question,
How can you stream movies by php? (.wmv files)
And how can you configure it, so that people can't download the movies.
thanks in advance
si-jerome
November 17th, 2005, 01:45
Do you want to simply embed the movie file into a webpage or do you want launch media player and stream the file?
And unless you have access to a streaming server, you're pretty much out of luck preventing your users from getting a copy of the file. Unless something has changed that I haven't heard about, apache isn't technically set up to stream a file. You can simulate it, but it's not actual streaming. Even if you use a streaming server, there are several streaming video recorders available that would allow your users to save the content.
I've found it's a lot easier to simulate the stream and let the skilled people have a copy if they really want it. Most users don't have the technical know-how to dig into the properties of a site to download the files.
Syanto
November 17th, 2005, 06:45
Yea.. I want to embed the file into a webpage like I have here..
but this way, you could look up in the source and just rip/download the musicvideo..
http://www.suriyanto.nl/Videoclips/Emmily%20Kartoredjo%20-%20Aku%20Seneng%20Kowe%20(suriyanto.nl).html
but If you take a look @ www.freefreevideos.com, it is possible.
Cause I don't know any other way to rip the video without a streaming rippin program.
and how can you forbid rightclicking on a webpage?
thanks in advance,
Suriyanto
Polykranopalous
November 17th, 2005, 17:26
and how can you forbid rightclicking on a webpage?
goto Hotscripts.com and search it up, it can be done using a javascript
WL-Michael
November 17th, 2005, 22:22
To answer your first question:
Visit this webpage http://www.ourmedia.org/node/5573 to learn how to embed these files. Just simply add the output HTML code to your PHP pages and walla, you're streaming.
Enjoy.
si-jerome
November 17th, 2005, 23:44
The freefreevideos site is simply streaming videos off of yahoo's Launch site. You need a streaming server to do what yahoo is doing. Yahoo is streaming the videos through an asx file similar to this:
<ASX version="3.0">
<Entry>
<ref HREF="mms://www.server.com/video.wmv"/>
</Entry>
</ASX>
Freefreevideos is taking the added step of embedding an object on the html page similar to this:
<object classid="clsid:234SDF-4GSD4">
<param name="url" value="http://www.server.com/video.asx">
<param name="autostart" VALUE="true">
</object>
If you didn't embed the object into the html page, you'd force windows media player to launch on the desktop before the video would begin streaming.
Back to the main point, unless you have access to a streaming server or plan on stealing the content like freefreevideos is doing, you're out of luck.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.