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
Popular Plugins
OnlineVideos
Get Videourl from OV in 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: 1096404" data-attributes="member: 106003"><p>Hey [USER=73415]@offbyone[/USER] </p><p>I'm just trying to port the MPCast Plugin to MP2. In MP1 it is possible to get the Videourl using this code (stolen from Mytrailers^^):</p><p>[code]class OnlineVideosTrailersHosterProxy : MarshalByRefObject</p><p> {</p><p> public OnlineVideosTrailersHosterProxy() { }</p><p></p><p> public Dictionary<string, string> GetPlaybackOptions(string url)</p><p> {</p><p> return HosterFactory.GetHoster("Youtube").getPlaybackOptions(url);</p><p> }</p><p></p><p> public string GetVideoUrls(string url)</p><p> {</p><p> var allHoster = OnlineVideos.Hoster.Base.HosterFactory.GetAllHosters();</p><p> MPCastServer.getInstance().logger.Info("Onlinevideos: Count {0}", allHoster.Count);</p><p> foreach (var hoster in allHoster)</p><p> {</p><p> MPCastServer.getInstance().logger.Info("Onlinevideos: {0}", hoster.getHosterUrl());</p><p> }</p><p> return HosterFactory.GetHoster("Youtube").getVideoUrls(url);</p><p> }</p><p> }[/code]</p><p></p><p>But in MP2 I get 0 hosters, do you know why it is so? Or better can you tell me how to do the same in MP2? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /></p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1096404, member: 106003"] Hey [USER=73415]@offbyone[/USER] I'm just trying to port the MPCast Plugin to MP2. In MP1 it is possible to get the Videourl using this code (stolen from Mytrailers^^): [code]class OnlineVideosTrailersHosterProxy : MarshalByRefObject { public OnlineVideosTrailersHosterProxy() { } public Dictionary<string, string> GetPlaybackOptions(string url) { return HosterFactory.GetHoster("Youtube").getPlaybackOptions(url); } public string GetVideoUrls(string url) { var allHoster = OnlineVideos.Hoster.Base.HosterFactory.GetAllHosters(); MPCastServer.getInstance().logger.Info("Onlinevideos: Count {0}", allHoster.Count); foreach (var hoster in allHoster) { MPCastServer.getInstance().logger.Info("Onlinevideos: {0}", hoster.getHosterUrl()); } return HosterFactory.GetHoster("Youtube").getVideoUrls(url); } }[/code] But in MP2 I get 0 hosters, do you know why it is so? Or better can you tell me how to do the same in MP2? :P [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Get Videourl from OV in MP2
Contact us
RSS
Top
Bottom