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
Trailers Plugin v1.3.0 (Play/Stream/DL for MovingPictures, My Films, My Videos..) [2020-02-23]
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: 1043165" data-attributes="member: 52219"><p>Hi @[USER=87610]Scrounger[/USER],</p><p></p><p>Currently the plugin doesn't support skin loading parameters i.e. it will detect the current window that the user is in and get details from the selected media. There is obviously a downside to that, that being the trailers plugin needs to to know about any 3rd party plugin to support trailers from (A plugin handler needs to be written).</p><p></p><p>The advantage of doing it this way is that the trailers plugin can take the hard work away from the skin to figure out what details it needs like 'local filename', 'TMDb' , 'IMDb', 'Title', 'Year', 'Overview', 'Poster' (some of these are obviously not required for search but are for OSD of trailer playing).</p><p></p><p>If you would like a plugin supported I can easily add it, it doesn't take much work to do. I can get all information I need either of two ways:</p><p>1. via Skin Properties</p><p>2. via Plugin API</p><p></p><p>In a way skin properties are safest as there less likely to change and hence not break metadata retrieval down the track if the respective plugin decides to change the API, but either way is good. Sometimes I need to use a plugin's API because there is not enough information via skin properties.</p><p></p><p>Some 3rd party plugins can even call the Trailers plugin themselves e.g. you can create a context menu item in your plugin or a skin button and hook that up to the trailers plugin e.g.</p><p></p><p>Add the Trailers.dll reference and then add the following namespaces in your project:</p><p>[CODE]</p><p>using Trailers.Providers;</p><p>using Trailers;</p><p>[/CODE]</p><p></p><p>Before you can invoke the Trailer search you need to create a MediaItem object e.g:</p><p>[CODE]</p><p>MediaItem trailerItem = new MediaItem</p><p>{</p><p> IMDb = movie.IMDBID,</p><p> Plot = movie.Overview,</p><p> Poster = movie.Images.Poster,</p><p> Title = movie.Title,</p><p> TMDb = movie.TMDBID,</p><p> Year = movie.Year</p><p>};</p><p>[/CODE]</p><p></p><p>Then simply call the Search method, it will display a menu once complete:</p><p>[CODE]</p><p>Trailers.Trailers.SearchForTrailers(trailerItem);</p><p>[/CODE]</p><p></p><p>Note: Right now there is no support for TVShows or Episodes but that will come soon I imagine. Also there is no online search for Title+Year only, currently it needs an IMDb or TMDb ID.</p><p></p><p>I will improve the online search to accept Title+Year next for plugins that don't support IMDb/TMDb IDs e.g. Netflix.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1043165, member: 52219"] Hi @[USER=87610]Scrounger[/USER], Currently the plugin doesn't support skin loading parameters i.e. it will detect the current window that the user is in and get details from the selected media. There is obviously a downside to that, that being the trailers plugin needs to to know about any 3rd party plugin to support trailers from (A plugin handler needs to be written). The advantage of doing it this way is that the trailers plugin can take the hard work away from the skin to figure out what details it needs like 'local filename', 'TMDb' , 'IMDb', 'Title', 'Year', 'Overview', 'Poster' (some of these are obviously not required for search but are for OSD of trailer playing). If you would like a plugin supported I can easily add it, it doesn't take much work to do. I can get all information I need either of two ways: 1. via Skin Properties 2. via Plugin API In a way skin properties are safest as there less likely to change and hence not break metadata retrieval down the track if the respective plugin decides to change the API, but either way is good. Sometimes I need to use a plugin's API because there is not enough information via skin properties. Some 3rd party plugins can even call the Trailers plugin themselves e.g. you can create a context menu item in your plugin or a skin button and hook that up to the trailers plugin e.g. Add the Trailers.dll reference and then add the following namespaces in your project: [CODE] using Trailers.Providers; using Trailers; [/CODE] Before you can invoke the Trailer search you need to create a MediaItem object e.g: [CODE] MediaItem trailerItem = new MediaItem { IMDb = movie.IMDBID, Plot = movie.Overview, Poster = movie.Images.Poster, Title = movie.Title, TMDb = movie.TMDBID, Year = movie.Year }; [/CODE] Then simply call the Search method, it will display a menu once complete: [CODE] Trailers.Trailers.SearchForTrailers(trailerItem); [/CODE] Note: Right now there is no support for TVShows or Episodes but that will come soon I imagine. Also there is no online search for Title+Year only, currently it needs an IMDb or TMDb ID. I will improve the online search to accept Title+Year next for plugins that don't support IMDb/TMDb IDs e.g. Netflix. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Trailers Plugin v1.3.0 (Play/Stream/DL for MovingPictures, My Films, My Videos..) [2020-02-23]
Contact us
RSS
Top
Bottom