[iPhone]:Detecting you tube player controls using javaScript -


i using embed tag play youtube video in iphone application. works fine. need detect controls in such pause,play , end. have tried following event handling methods doesnt seem work. onpause, onplay etc.

here html code:

   <?xml version="1.0" encoding="utf-8"?>   <!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11      /dtd/xhtml11.dtd">  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">  <head>  <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script>     function capturepause()      {         alert('capturepause event called');     }     function captureend()      {         alert('captureend event called');     }   </script> </head> <body style="margin-left:0px"> <embed id="youtube" src="http://youtube url" width="450" height="450" autostart="true" type="application/x-shockwave-flash" enablejavascript="true" onpause="capturepause();" wmode="transparent" > </body> 

note had used onpause event. script not getting called if pause video. auto start atrribute not working.

is there way can detect controls using java script in application.

thanks in advance.

you should try using built in tube application in iphone... open , provide functionality need.

if wanto use embed tags...try installing flash player newest version on iphone , use instead...


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -