Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 18 Jul 2008 15:59:30 -0700 (PDT),    group: microsoft.public.win32.programmer.directx.video        back       


"can't load network provider" with MSVidCtl   
Hello,

I'm in the process of writing an application to display Digital TV in
an embedded web browser. I'm able to display NTSC/Cable TV, but when I
try to tune to a digital channel (.i.e. 7.1) I get the error "Can't
load network provider". Obviously, in the code below I don't have
anything about a Network Provider.

I've read Documentation on MSDN and came up with the conclusion that I
need to add some code to deal with the 'Network Provider', but I don't
know how when using the MSVidCtl (see: http://msdn.microsoft.com/en-us/library/ms788162(VS.85).aspx
and http://msdn.microsoft.com/en-us/library/ms787840(VS.85).aspx ).

Question:
1. Does anyone have a simple working sample to display digital tv (not
ATSC, any digital channel, channel 7.2) using the MSVidCtl?

2. Can anyone describe in layman's terms what a 'Network Provider' is/
provides?

3. Am I correct that ATSC is only digital TV channels with an antenna?

---------CODE---------------

<html>
	<head>
		<title>TV</title>
	</head>
	<body onload="initTuner();">
		<OBJECT ID="MSVidCtl" CLASSID="CLSID:B0EDF163-910A-11D2-
B632-00C04F79498E"></OBJECT><br/>
	</body>
	<script language="jscript" defer>

	var objTuner = {};

	function initTuner()
	{
		objTuner.TuneSpace = 0;
		objTuner.CLSID = 0;
		objTuner.Type = 0;
		objTuner.Channel = 7;
		objTuner.ChannelMinor = 2;
		objTuner.PhysicalChannel = 0;

		tuneDigital();
	}

	function tuneAnalog()
	{
		var tscontainer = new ActiveXObject("BDATuner.SystemTuningSpaces");
		var tspace = tscontainer("Cable");

		// objTuner aggregates tuning props
		objTuner.TuneSpace = tspace;
		objTuner.CLSID = tspace.CLSID;
		objTuner.Type = tspace.NetworkType;

		var treq = tspace.CreateTuneRequest();
		treq.Channel = objTuner.Channel;

		MSVidCtl.View(treq);
		MSVidCtl.Run();
	}

	function tuneDigital()
	{
		var tscontainer = new ActiveXObject("BDATuner.SystemTuningSpaces");
		var tspace = tscontainer("Digital Cable");

		// objTuner aggregates tuning props
		objTuner.TuneSpace = tspace;
		objTuner.CLSID = tspace.CLSID;
		objTuner.Type = tspace.NetworkType;
		objTuner.TuneSpace.CountryCode = 1; // USA

		var treq = objTuner.TuneSpace.CreateTuneRequest();
		var trLocator = new ActiveXObject("BDATuner.ATSCLocator");

		trLocator.PhysicalChannel = objTuner.Channel;

		treq.Locator = trLocator;
		treq.Channel = objTuner.Channel;

		treq.MinorChannel = objTuner.ChannelMinor;

		MSVidCtl.View(treq);
		MSVidCtl.Run(); // <-- throws exception!
	}

	</script>
</html>

--------------------------

Details:
OS: Windows XP Embedded
TV Card: FusionHDTV5 RT Lite (supports BSD)
Signal: ComCast Digital Cable (no cable box required)
date: Fri, 18 Jul 2008 15:59:30 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us