home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Trakt.tv LiveTV scrobble Development help request.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Alberto83" data-source="post: 1221276" data-attributes="member: 128278"><p>Hello all.</p><p>I've been working on adding LiveTV Program scrobbling on the builtin trakt plugin in the last days since i had some free time.</p><p>I'm new to MP2 development and C# development in general, so I decided to start with something that i could actually test every day like scrobbling from Live TV.</p><p>I found some problems while trying to get the right informations for the current program (CurrentMediaItem is always set to "Live TV" for Live tv programs) but i finally found a way using these two lines of code.</p><p>[code=csharp]</p><p>var tvHandler = (SlimTvHandler)ServiceRegistration.Get<ITvHandler>(false);</p><p>tvHandler.CurrentProgram.Title</p><p>[/code]</p><p>Now i'm facing another issue and after reading the code of Mediaportal 2 i'm stuck. There seems to be no way to know when the current program changes, either because the program ended or because of channel change, at least not using MP Messages. I'd rather use Subscription Queues instead of a thread that every 10 minutes checks if the program is changed like on Trakt for MP1. Can anyone confirm there's no such message? Are there plans to implement it in future releases?</p><p>Using PlayerManagerMessaging.MessageType.PlaybackStateChanged i can detect a channel change (it fires twice though, obviously) but not a program change on the EPG timeline.</p><p>Can someone point me to the right direction, if there's any?</p><p></p><p>Thank you! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Alberto83, post: 1221276, member: 128278"] Hello all. I've been working on adding LiveTV Program scrobbling on the builtin trakt plugin in the last days since i had some free time. I'm new to MP2 development and C# development in general, so I decided to start with something that i could actually test every day like scrobbling from Live TV. I found some problems while trying to get the right informations for the current program (CurrentMediaItem is always set to "Live TV" for Live tv programs) but i finally found a way using these two lines of code. [code=csharp] var tvHandler = (SlimTvHandler)ServiceRegistration.Get<ITvHandler>(false); tvHandler.CurrentProgram.Title [/code] Now i'm facing another issue and after reading the code of Mediaportal 2 i'm stuck. There seems to be no way to know when the current program changes, either because the program ended or because of channel change, at least not using MP Messages. I'd rather use Subscription Queues instead of a thread that every 10 minutes checks if the program is changed like on Trakt for MP1. Can anyone confirm there's no such message? Are there plans to implement it in future releases? Using PlayerManagerMessaging.MessageType.PlaybackStateChanged i can detect a channel change (it fires twice though, obviously) but not a program change on the EPG timeline. Can someone point me to the right direction, if there's any? Thank you! :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt.tv LiveTV scrobble Development help request.
Contact us
RSS
Top
Bottom