html - Javascript play function query to stream live videos -
i trying stream live videos in internet explorer have used object tag in html using active plugin supported in ie.
problem i'm facing function have used stream gives error: unable value of property 'add': object null or undefined @ [ var id=players[0].playlist.add(url,opts); ]
following code:
<script type="text/javascript"> function playvideo() { var players=document.getelementsbyname("vlc"); var opts = new array(""); url="https://www.youtube.com/watch?v=3u1fu6f8hto"; var id=players[0].playlist.add(url,opts); players[0].playlist.playitem(id); } </script> <object classid="clsid:9be31822-fdad-461b-ad51-be1d1c159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="640" height="480" name="vlc" events="true"> <param name="src" value="https://www.youtube.com/watch?v=3u1fu6f8hto" /> <param name="showdisplay" value="true" /> <param name="autoloop" value="false" /> <param name="autoplay" value="false" /> </object>
the url used dummy 1 actual 1 has rtsp streaming
can please me out else can use instead of add function because guess isn't supported.
you try way. hope should helpful you.
<!doctype html> <html> <body> <iframe width="420" height="345" src="http://www.youtube.com/embed/3u1fu6f8hto"> </iframe> </body> </html>
Comments
Post a Comment