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 1
MediaPortal 1 Plugins
[new plugin] Netflix Wrapper
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="ltfearme" data-source="post: 1072107" data-attributes="member: 52219"><p>You don't need to hook into anything, the trakt plugin will hook into you <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> If you provide a way for an external plugin to know that you have started a video, stopped a video and watched a video that would be a good start. The trakt plugin will obviously also need to know what the current media is as well.</p><p></p><p>Source for the TraktPlugin is here: <a href="https://github.com/Technicolour/Trakt-for-Mediaportal" target="_blank">https://github.com/Technicolour/Trakt-for-Mediaportal</a></p><p>You can probably take a look at the OnlineVideos handler and do something similar, they have an event called TraktVideoPlayback:</p><p><a href="https://github.com/Technicolour/Trakt-for-Mediaportal/blob/master/TraktPlugin/TraktHandlers/OnlineVideos.cs#L135" target="_blank">https://github.com/Technicolour/Trakt-for-Mediaportal/blob/master/TraktPlugin/TraktHandlers/OnlineVideos.cs#L135</a></p><p></p><p>You can look at the OnlineVideos source to see how and when that event should be fired.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1072107, member: 52219"] You don't need to hook into anything, the trakt plugin will hook into you ;) If you provide a way for an external plugin to know that you have started a video, stopped a video and watched a video that would be a good start. The trakt plugin will obviously also need to know what the current media is as well. Source for the TraktPlugin is here: [url]https://github.com/Technicolour/Trakt-for-Mediaportal[/url] You can probably take a look at the OnlineVideos handler and do something similar, they have an event called TraktVideoPlayback: [url]https://github.com/Technicolour/Trakt-for-Mediaportal/blob/master/TraktPlugin/TraktHandlers/OnlineVideos.cs#L135[/url] You can look at the OnlineVideos source to see how and when that event should be fired. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
[new plugin] Netflix Wrapper
Contact us
RSS
Top
Bottom