- July 25, 2010
- 4,024
- 1,420
- Home Country
-
Germany
Hey @offbyone
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^^):
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?
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);
}
}
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?