Page 1 of 1

Playing TV tuner in HTML/Javascript

Posted: 01 May 2013 02:37
by bernie.zhao
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.