Jump to content

C# Get available and active live tv tuner(types)


pünktchen

Recommended Posts

pünktchen

@Luke
How do i get all installed live tv tuners (plugins) and how can i filter them by already set as a live tv source?

How can i add a tuner as a live tv source in C#?

Link to comment
Share on other sites

From ILiveTVManager:

List<TunerHostInfo> GetTunerHostInfos(string type)

This will get you all of the ones a user has configured for a given tuner type. I'll adjust this so that you can just pass in null and get them all.

Then I can add a method to get the actual ITunerHost based on one of those. Is that what you need?

To create a new one:

Task<TunerHostInfo> SaveTunerHost(TunerHostInfo info, CancellationToken cancellationToken)

 

Link to comment
Share on other sites

pünktchen

Thanks! After your comments i was able to solve my problem already. But GetTunerHostInfos(null) could be handy regardless.

Edited by pünktchen
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...