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
Featured Plugins
WifiRemote
WifiRemote for MP2
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="FreakyJ" data-source="post: 1154735" data-attributes="member: 106003"><p>The function was called to early, because the Messages from the Player are not fine enough. I create a workaround for that by moving it to the update Thread and check for NowPlaying.</p><p></p><p>This is implemented for now, just for your information:</p><p>[CODE=C#]if (mediaItem.Aspects.ContainsKey(AudioAspect.ASPECT_ID))</p><p> return new NowPlayingMusic(mediaItem);</p><p> // TODO Add Radio</p><p> // TODO Add Dvd</p><p> if (mediaItem.Aspects.ContainsKey(MovieAspect.ASPECT_ID))</p><p> return new NowPlayingMovingPictures(mediaItem);</p><p></p><p> if (mediaItem.Aspects.ContainsKey(SeriesAspect.ASPECT_ID))</p><p> return new NowPlayingSeries(mediaItem);</p><p></p><p> if (mediaItem.Aspects.ContainsKey(VideoAspect.ASPECT_ID))</p><p> return new NowPlayingVideo(mediaItem);</p><p> // TODO: Add Tv[/CODE]</p><p></p><p></p><p>Could you give me some more information on these fields? I don't really know what They mean <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Does Module mean the Screen? E.g. Configuration?</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1154735, member: 106003"] The function was called to early, because the Messages from the Player are not fine enough. I create a workaround for that by moving it to the update Thread and check for NowPlaying. This is implemented for now, just for your information: [CODE=C#]if (mediaItem.Aspects.ContainsKey(AudioAspect.ASPECT_ID)) return new NowPlayingMusic(mediaItem); // TODO Add Radio // TODO Add Dvd if (mediaItem.Aspects.ContainsKey(MovieAspect.ASPECT_ID)) return new NowPlayingMovingPictures(mediaItem); if (mediaItem.Aspects.ContainsKey(SeriesAspect.ASPECT_ID)) return new NowPlayingSeries(mediaItem); if (mediaItem.Aspects.ContainsKey(VideoAspect.ASPECT_ID)) return new NowPlayingVideo(mediaItem); // TODO: Add Tv[/CODE] Could you give me some more information on these fields? I don't really know what They mean :) Does Module mean the Screen? E.g. Configuration? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
WifiRemote
WifiRemote for MP2
Contact us
RSS
Top
Bottom