Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: video Help

  1. #1
    New Coder
    Join Date
    Nov 2011
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    video Help

    Hello,

    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>
    </select>
    <BR>
    <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="BaseURL" VALUE="">
    <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">
    </OBJECT>




    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

    Thanks

  • #2
    Senior Coder
    Join Date
    Apr 2010
    Posts
    1,446
    Thanks
    71
    Thanked 102 Times in 101 Posts
    Do you mean this line?

    PHP Code:
    <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.
    Been a sign maker for 7 years. My business:
    American Made Signs


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •