Playing TV tuner in HTML/Javascript

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
bernie.zhao
New Cone
New Cone
Posts: 8
Joined: 10 Jan 2009 20:45

Playing TV tuner in HTML/Javascript

Postby bernie.zhao » 01 May 2013 02:37

I have been using VLC web plugin to play video streams in my web page and everything works flawlessly.
Now I have a new project that requires web page displaying TV content.

With the VLC.exe I was able to display TV channel by command line:

Code: Select all

vlc.exe dshow:// :dshow-vdev="WinTV HVR-950 Capture" :dshow-chroma=UYVY :dshow-tuner-frequency=63000000 :dshow-tuner-standard=0 :dshow-tuner-input=1
However, when I apply this to my HTML web page, VLC doesn't display anything. Also upon refreshing the player is not responsible and eventually killed by Chrome.
The Javascript I'm using: (the same code works for regular video streams such as http://xxxxx/xxx.mp4)

Code: Select all

vlcEmbed.playlist.add( 'dshow://', 'default', ':dshow-vdev="WinTV HVR-950 Capture" :dshow-chroma=UYVY :dshow-tuner-frequency=63000000 :dshow-tuner-standard=0 :dshow-tuner-input=1'); vlcEmbed.playlist.playItem(0);
I tired use an array as third parameter, and adding/removing quotes around "WinTV HVR-950 Capture", all no luck.

Any hint is appreciated.

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests