Freigeben über


Many questions - MSAS, playing WAV files and what to develop Media Center apps with

I've had lots of questions recently and no time to really get answers and post them up here.  If I haven't answered you question it's because I don't know the answer and haven't had enough time to get to the bottom of it yet.

First of all I had a couple of questions on MSAS which I don't know that much about.

Can I tell which tuner is being used when a recording takes place using MSAS? No, you can not.  What you can do, which may or may not help is use OnTVRecordStateChange from a background add-in which will give you a GUID and you could track which was in use - this won't help if a tuner is being used for live TV though.  Here's a code snippet on how to use OnTVRecordStateChange:

void IAddInEntryPoint.Launch(AddInHost host)
{

host.Television.OnTVRecordStateChange += new Microsoft.MediaCenter.AddIn.TVRecordStateChangeDelegate(TvRecordStateChangedHandler);

...

}

public void TvRecordStateChangedHandler(object obj, Microsoft.MediaCenter.AddIn.TVRecordStateChangeArgs TVArgs) {

if (TVArgs.Started)

mcHost.HostControl.Dialog("Recording started on tuner " + TVArgs.Tuner, "TV Recording",1,10,false);

else if (TVArgs.Stopped)

mcHost.HostControl.Dialog("Recording stopped on tuner " + TVArgs.Tuner, "TV Recording",1,10,false);

}

Can I use remote desktop to connect to a Media Center PC? Yes.  You can even use Media Center, but it won't play video over a RDP connection

Can I use animated backgrounds in an HTML page?  Not really a media center question, but I don't see why not, use an animated gif.

Could I create an add-in that played a selection of WAV files with a gap between them? Yes, using Playmedia and Playrate you could contstruct an addin to do this - waiting until the playrate was stopped, then wating however long you want before playing the next file.  You could also use More With This  to make this work with any folder of audio files.

Can I use ASP.NET for development?   Yes.  You can use any web technology that outputs HTML.

Can I use WinForms for development?   Yes, but if you're running as a .exe you won't have access to Media Center APIs.  If you're running as a .NET applet in a webpage you'll have access to the Media Center APIs from the HTML page and will have to communicate between the page and the .NET applet to use the Media Center APIs - non-trivial to do, but not hard.

Comments

  • Anonymous
    July 14, 2005
    And even more significant, when are we going to see more photos from photographer Michael Creasy?

  • Anonymous
    July 14, 2005
    Soon. Maybe I'll post some of the photos from my last trip.

  • Anonymous
    July 26, 2005
    I might have missed this in the documentation, but is Win XP Media Center a subset of XP Professional. If so, what is missing? Is there a chart of capability differences like there is for XP Home Edition vs XP Pro?

    Thanks.

  • Anonymous
    September 14, 2005
    The comment has been removed

  • Anonymous
    November 27, 2007
    PingBack from http://feeds.maxblog.eu/item_1169000.html

  • Anonymous
    August 21, 2008
    PingBack from http://ciacho.filmiczki.eu/?p=4

  • Anonymous
    August 21, 2008
    PingBack from http://adamos.filmiczki.eu/?p=24

  • Anonymous
    May 31, 2009
    PingBack from http://woodtvstand.info/story.php?id=15313