- Thread starter
- #71
You ought to Update your Vlc Version. Why don't you try VLC 1.0.5 ?
hey disaster,Is it possible to use this plugin in my own plugin as a player? Does it also work with VLC 1.0.5?
string supprotedPlayer = "vlc,mplayer,wmp";
string sEnc = VODStreamHelper.EncryptionManager.GetEncryptionString(aVideoInfo.VideoUrl);
if (supprotedPlayer.IndexOf(sEnc) == -1) { sEnc = string.Empty; }
if (sEnc == "wmp") { aVideoInfo.VideoUrl = VODStreamHelper.EncryptionManager.DeCrypt(aVideoInfo.VideoUrl, sEnc); }
if (!wmvVideoUrl && !asxVideoUrl)
{
bIsPlaying = g_Player.Play(aVideoInfo.VideoUrl, g_Player.MediaType.Video ); // ajoute type video
// bIsPlaying = g_Player.PlayVideoStream(aVideoInfo.VideoUrl);
Log.Debug("VOD Plugin : PlaySingleFile " + g_Player.Playing.ToString() + ":" + aVideoInfo.VideoUrl);
}
else
{//Session de rattrapage pour les flux wmv ou asx
//Let's MP do the job
Log.Debug("VOD Plugin : PlaySingleFile Again " + aVideoInfo.Encryped.ToString() + " - ");
if (aVideoInfo.Encryped == true)
{
bIsPlaying = g_Player.PlayVideoStream(DecodeUrl(aVideoInfo.VideoUrl,sEnc ));
}
else
{//Peut etre un flux lisible par WMP
bIsPlaying = g_Player.PlayVideoStream(aVideoInfo.VideoUrl);
}
}