jquery - HTML Object - Make a custom pause/play function -


Good day.

That's why I have a player code for .swf and it runs an online game radio. I want to be able to create a stop / play button for this but I do not know how.

  & lt; Object type = "app / x-shockwave-flash" data = "player .swf" width = "1" height = "1" id = "radioplayer" style = "visibility: visible;" & gt; & Lt; Param name = "allowed screen" value = "true" & gt; & Lt; Param name = "permissions" value = "always" & gt; & Lt; Param name = "wmode" value = "transparent" & gt; & Lt; Ultimate name = "flashvars" value = "duration = 9999 & amp; file = http: //john.caster.fm: 31,433 / listen.mp3 authne58b540a15b87455faa7c768dd8fc024 & provider = sound & amp; amp; volume = 70 & amp; Auto Start = True "& gt; & Lt; / Object & gt;   

How do I create a play / stop button for it? I saw some other options but the concept behind them did not understand.

Thank you for your help :)

I prepared a little example for you I have not tried it out, but it should work, because javsacript is a media object, which comes with some defined functions to identify the flash object as

careful:. Javascript part.! DOCTYPE html & gt; In the onclick event of the button contains a qualifier which is in your case the ID of the media item specified in Radioplayer

  & lt; & Lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Object type = "application / x-shockwave-flash" data = "player.swf" width = "1" height = "1" id = "Radioplayer" style = "visibility: visible;" & Gt; & Lt; Param name = "allowed screen" value = "true" & gt; & Lt; Param name = "permissions" value = "always" & gt; & Lt; Param name = "wmode" value = "transparent" & gt; & Lt; Ultimate name = "flashvars" value = "duration = 9999 & amp; file = http: //john.caster.fm: 31,433 / listen.mp3 authne58b540a15b87455faa7c768dd8fc024 & provider = sound & amp; amp; volume = 70 & amp; Auto Start = True "& gt; & Lt; / Object & gt; & Lt; P & gt; & Lt; Button onclick = "document.radioplayer.play ()" & gt; Play & lt; / Button & gt; & Lt; Button onclick = "document.radioplayer.StopPlay ()" & gt; Stop & lt; / Button & gt; & Lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -