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
MP2Extended
Plugin: MP2Extended
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="johanj" data-source="post: 1155869" data-attributes="member: 88055"><p>Got a few minutes, wife running late....But soon away until Sunday evening</p><p></p><p>So this is what we use for playing a movingpic move, there because of legacy I guess</p><p>self.send({Type: "movingpictures", Action: "playmovie", MovieId: parseInt(MovieId)});</p><p></p><p>Then this uggly hack is there for most other items:</p><p>self.send({Type: "playlist", PlaylistAction: "clear", PlaylistType: playlistType});</p><p>setTimeout(function() {</p><p>self.send({Type: "mpext", Action: "enqueue", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo});</p><p>}, 50);</p><p>setTimeout(function() {</p><p>self.send({Type: "playlist", PlaylistAction: "play", PlaylistType: playlistType, Index: 0});</p><p>}, 100);</p><p></p><p>This should work but I don't remember why it's not:</p><p>self.send({Type: "mpext", Action: "play", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo});</p><p></p><p>where the playinfo is what you get from GetExternalMediaInfo</p><p></p><p>Nice with streaming, love to test that as well. Although the MAS/TAS and play parts are more important for me personally</p></blockquote><p></p>
[QUOTE="johanj, post: 1155869, member: 88055"] Got a few minutes, wife running late....But soon away until Sunday evening So this is what we use for playing a movingpic move, there because of legacy I guess self.send({Type: "movingpictures", Action: "playmovie", MovieId: parseInt(MovieId)}); Then this uggly hack is there for most other items: self.send({Type: "playlist", PlaylistAction: "clear", PlaylistType: playlistType}); setTimeout(function() { self.send({Type: "mpext", Action: "enqueue", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo}); }, 50); setTimeout(function() { self.send({Type: "playlist", PlaylistAction: "play", PlaylistType: playlistType, Index: 0}); }, 100); This should work but I don't remember why it's not: self.send({Type: "mpext", Action: "play", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo}); where the playinfo is what you get from GetExternalMediaInfo Nice with streaming, love to test that as well. Although the MAS/TAS and play parts are more important for me personally [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
Top
Bottom