PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
asai
Forum Commoner
Posts: 43 Joined: Tue May 04, 2010 6:24 am
Location: Norway
Post
by asai » Fri Mar 30, 2012 5:06 am
I have this code in a PHP file:
Code: Select all
<html>
<head>
<title>Test stream</title>
<meta http-equiv="Content-Type" content="text/html" />
<LINK REL=StyleSheet HREF="/themes/fourseasons/css/style.css" TYPE="text/css" MEDIA=screen>
</head>
<body>
<object id="MediaPlayer1"
width=480
height=360
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="VisionGS Webcam Software"
type="application/x-oleobject" align="middle">
<param name="FileName" value="mms://81.166.2.19:8010/">
<param name="ShowStatusBar" value="true">
<param name="DefaultFrame" value="mainFrame">
<param name="ShowControls" value="true">
<param name="ShowDisplay" value="false">
<param name="enableContextMenu" value="false">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="mms://81.166.2.19:8010/"
height=360
width=480
showcontrols=0
showstatusbar=1>
</embed>
</object>
</body>
</html>
You can see it run here:
http://asai.dyndns.org/test/stream1.php
Very nice, however it goes black after approx 2 min.
If I run the address mms://81.166.2.19:8010/ directly in Media Player it runs until I stop it.
Any suggestions on what could be wrong?
social_experiment
DevNet Master
Posts: 2793 Joined: Sun Feb 15, 2009 11:08 am
Location: .za
Post
by social_experiment » Fri Mar 30, 2012 5:24 am
asai wrote: Very nice, however it goes black after approx 2 min
The video stops playing?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
asai
Forum Commoner
Posts: 43 Joined: Tue May 04, 2010 6:24 am
Location: Norway
Post
by asai » Fri Mar 30, 2012 7:14 am
Yes it does.
social_experiment
DevNet Master
Posts: 2793 Joined: Sun Feb 15, 2009 11:08 am
Location: .za
Post
by social_experiment » Fri Mar 30, 2012 7:52 am
The code isn't the problem; what type of file are you using
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
asai
Forum Commoner
Posts: 43 Joined: Tue May 04, 2010 6:24 am
Location: Norway
Post
by asai » Fri Mar 30, 2012 8:33 am
Its not a file: Its a live stream from a webcam... We use VisionGS software for this...
social_experiment
DevNet Master
Posts: 2793 Joined: Sun Feb 15, 2009 11:08 am
Location: .za
Post
by social_experiment » Fri Mar 30, 2012 8:42 am
Try contacting the authors of the software you are using;
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering