get the video from tv tune card and plays that video local webpage

Asked by imrago

Hi there..

i am trying to do a small web application that gets the video from tv
tune card and plays that video on a webpage onthe same machine...

if you have any idea how to do this please let me know,

eagerly waiting for your reply,,

Thank you,
Srikanth

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
imrago
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

The "onload="play('vlc1')"" you have setup won't work, as there's nothing in Xibo to trigger an onLoad event.

The embed script EmbedInit() is called when the region loads, so you need to put your onLoad event in there instead:

function EmbedInit()
{
 // Init will be called when this page is loaded in the client.
   play('vlc1');
}

otherwise there's nothing to kick the whole process running...

Alex

Revision history for this message
imrago (imrago-targeting) said :
#2

Thanks Alex!

  It works partially, now I can hear the sound of the stream, but the video is missing. Do you have any idea what could be the problem?

Imre

Revision history for this message
Alex Harrington (alexharrington) said :
#3

I'm not familiar with VLC running in Internet Explorer. I assume it runs properly in IE outside Xibo?

Revision history for this message
imrago (imrago-targeting) said :
#4

It works with Microsoft Media Player activex plugin:

<html>
<title>Media player plugin test</title>
<br>
<OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" STANDBY="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="640" height="480">
<param name="fileName" value="http://127.0.0.1/playlist.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="false">
<param name="Volume" value="-10">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://127.0.0.1/playlist.m3u" name="MediaPlayer1" width=640 height=480 autostart=1 showcontrols=1 volume=-30>
</OBJECT>
</body>
</html>

Revision history for this message
Alex Harrington (alexharrington) said :
#5

Hi

Thanks for letting us know you got it working. Perhaps you'd be kind enough to write up your complete solution in the wiki so others can try the same kind of things out?

http://wiki.xibo.org.uk

You can sign in using OpenID and your Launchpad account (https://launchpad.net/~imrago-targetting)

Cheers

Alex

Revision history for this message
abheesree (abheesree) said :
#6

Hi imrago,

even i am trying to do the same application,

could you please tell me how did u managed to get the strem from tv tuner card to vlc...

Please let me know ..

Thanks in Advance..

Srikanth

Revision history for this message
imrago (imrago-targeting) said :
#7

Hi Srikanth,

In VLC player it is possible to select a capture device as a source for streaming.

Revision history for this message
abheesree (abheesree) said :
#8

i will select capture device as a source ..but after that i dont know how to do...

please teel me how can we save this stream to a file ..and how can i attache it to media player control

Thank you for you reply imrago,