dcrdev 251 Posted May 11, 2016 Share Posted May 11, 2016 I'm developing a channel plugin for Emby at the moment and am finding it difficult based on the information currently available in the wiki. I've created the barebones of the plugin and have created a plugin class that inherits from the IChannel interface, implements it's internal members etc... The plugin in question is a radio plugin so I have a structure (ChannelItem) that defines several properties for URL, Channel Name, Channel Number etc... I then have another class that initializes a collection of ChannelItem and populates the values. All I want to do is loop through the collection and bind them to whatever properties are required within Emby. "public Task<ChannelItemResult> GetChannelItems" seems to be the way to go but it's not clear how ChannelItemResult works. Could someone help? Link to comment Share on other sites More sharing options...
Luke 37086 Posted May 11, 2016 Share Posted May 11, 2016 Hi! The best thing to do might be to look at existing examples. Here's a simple one, Revision 3: https://github.com/MediaBrowser/Emby.Channels/blob/master/MediaBrowser.Plugins.Revision3/Revision3Channel.cs Let me know if that helps. Thanks. Link to comment Share on other sites More sharing options...
dcrdev 251 Posted May 12, 2016 Author Share Posted May 12, 2016 Yeah it does thanks, one more question what is the difference between ChannelItemResult and ChannelItemInfo? Have you ever thought about using something like GhostDocs to produce documentation? Link to comment Share on other sites More sharing options...
Luke 37086 Posted May 12, 2016 Share Posted May 12, 2016 we used to use GhostDoc, but it doesn't always replace hand-written documentation. have you looked at the properties of the two classes? if you look at them I think the differences are obvious. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now