play(),pause(),stop() code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Harati
    New Member
    • Mar 2008
    • 3

    play(),pause(),stop() code

    I prepared my own player using php For this ,i want code for play(),pause(), stop().
    I tried a lot with player.controls .play() but no use
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by Harati
    I prepared my own player using php For this ,i want code for play(),pause(), stop().
    I tried a lot with player.controls .play() but no use
    This isn't the javascript forum!

    Regards.

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Originally posted by Harati
      I prepared my own player using php For this ,i want code for play(),pause(), stop().
      I tried a lot with player.controls .play() but no use
      The if statement is easy enough for php, but it must be a javascript question. Once you have the javascript code, you can come back here to get help with the php (if you need it).

      Comment

      • Harati
        New Member
        • Mar 2008
        • 3

        #4
        play(),pause(), stop() code

        I need code for play(),pause(), stop().. I tried player.controls .play() is not working..
        how will i do?

        Comment

        • vee10
          New Member
          • Oct 2006
          • 141

          #5
          Hi,

          Post ur code what u have done for play()


          Originally posted by Harati
          I need code for play(),pause(), stop().. I tried player.controls .play() is not working..
          how will i do?

          Comment

          • Harati
            New Member
            • Mar 2008
            • 3

            #6
            play(),pause(), stop() code

            my code is

            [HTML]<script>


            function play(file)
            {

            Player.controls .play();
            }
            function Stop()
            {
            Player.controls .stop();
            }
            </script>


            </head>
            <body>
            <div id="moreUploads "></div>
            <OBJECT ID="Player" height="0" width="0" CLASSID="CLSID: 6BF52A52-394A-11d3-B153-00C04F79FAA6">
            <PARAM NAME="uiMode" VALUE="invisibl e">
            <PARAM NAME="Autostart " VALUE="False">

            </object>



            <table>
            <tr>
            <td><img src="images/back_button.gif " onClick="javasc ript:back()" name=""></td>
            <td>
            <input type="image" name="play" src="images/play_button.gif " onClick="play(' <? echo $result->path;?>')"> </td>
            <td><img src="images/forward_button. gif" onClick="javasc ript:forward()" ></td>
            <td><img src="images/stop_button.gif " onClick="javasc ript:Stop()" ></td>
            <td><img src="images/mute.gif" onClick="javasc ript:mute()"></td>
            <td><img src="images/volslide.gif" onClick="javasc ript:volume()"> </td>
            <td><img src="images/posslide.gif" onClick="javasc ript:volume()"> </td>
            </tr>
            </table>[/HTML]
            Last edited by gits; Mar 28 '08, 03:54 PM. Reason: added code tags

            Comment

            • pronerd
              Recognized Expert Contributor
              • Nov 2006
              • 392

              #7
              And your questions is?

              Comment

              • ronverdonk
                Recognized Expert Specialist
                • Jul 2006
                • 4259

                #8
                Cannot see why this question could be answered in the HP forum. I will move it to the JS forum.

                moderator

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  Multiple threads merged. Please do not double/triple-post your questions.

                  Moderator.

                  Comment

                  Working...