View Full Version : video Help

tiffany Goh
11-17-2011, 06:57 AM

I would like to seek your help on playing video on php script.

This is the current code that I have.

<SELECT name=selecta size=1 id=musica onchange=document.all.playera.Filename=document.all.musica.value;>
<OPTION selected>::::::::: Choose Your Media Sample Here :::::::::</OPTION>
<OPTION value="">My Video File </OPTION>
<OPTION value="">My Audio File</OPTION>
<OPTION value="Stream URL or Full File Path Goes Here">My Live Stream</OPTION>
<OBJECT id=playera height=230 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="AutoStart" VALUE="True">
<PARAM NAME="Balance" VALUE="False">
<PARAM NAME="DisplaySize" VALUE="True">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Mute" VALUE="False">
<PARAM NAME="SelectionStart" VALUE="False">
<PARAM NAME="SelectionEnd" VALUE="False">
<PARAM NAME="ShowControls" VALUE="True">
<PARAM NAME="ShowAudioControls" VALUE="True">
<PARAM NAME="ShowDisplay" VALUE="False">
<PARAM NAME="ShowPositionControls" VALUE="False">
<PARAM NAME="Volume" VALUE="1">
<PARAM NAME="AudioStream" VALUE="False">
<PARAM NAME="AutoSize" VALUE="False">
<PARAM NAME="AnimationAtStart" VALUE="False">
<PARAM NAME="AllowScan" VALUE="False">
<PARAM NAME="AllowChangeDisplaySize" VALUE="False">
<PARAM NAME="AutoRewind" VALUE="True">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="True">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="True">
<PARAM NAME="CurrentMarker" VALUE="True">
<PARAM NAME="DefaultFrame" VALUE="mainframe">
<PARAM NAME="DisplayBackColor" VALUE="True">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="1">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="False">
<PARAM NAME="EnablePositionControls" VALUE="False">
<PARAM NAME="EnableFullScreenControls" VALUE="False">
<PARAM NAME="EnableTracker" VALUE="False">
<PARAM NAME="InvokeURLs" VALUE="False">
<PARAM NAME="Language" VALUE="False">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="False">
<PARAM NAME="ShowStatusBar" VALUE="True">
<PARAM NAME="TransparentAtStart" VALUE="False">

However, it is hard-coded as i had to physically enter the image location. Is there a way to dynamically do it? meaning user select the video and it would play


11-17-2011, 02:40 PM
Do you mean this line?

<OPTION value="Stream URL or Full File Path Goes Here">My Live Stream</OPTION>

You can grab a url from the DB in a query under conditions, or use a while loop to display multiple at a time.

There is a few ways to do it.