Playing video stream problem (1 Viewer)

sur_uix

Portal Member
December 28, 2005
5
0
Hi,
I have found a big bug(I have make long time debug) for playing video stream in MyTrailer.

in first time playing work because the player is AudioPlayerWMP9. The error is in Utils.IsVideo don't detect stream extension.
I have make change in Utils.IsVideo for correcte detect file stream,
Code:
		static public bool IsVideo(string strPath)
		{
			if (strPath==null) return false;
			try
			{
				if (!System.IO.Path.HasExtension(strPath)) return false;
				if (IsPlayList(strPath)) return false;
                //I have change .Equals() with StartsWith() fro video stream.
                //".wmv?streamid=21078263&b=639r4gd1i7uth433192d0&s=1808432817&segment=160968&cg_id=1398530"
				string strExtFile=System.IO.Path.GetExtension(strPath).ToLower();
				if (strExtFile.ToLower().StartsWith(".tv") ) return true;
                if (strExtFile.ToLower().StartsWith(".ts")) return true;
                if (strExtFile.ToLower().StartsWith(".sbe")) return true;
                if (strExtFile.ToLower().StartsWith(".dvr-ms")) return true;
				if (VirtualDirectory.IsImageFile(strExtFile.ToLower())) return true;
				foreach (string strExt in m_VideoExtensions)
				{
					if (strExtFile.StartsWith(strExt)) return true;
				}
			}
			catch(Exception)
			{
			}
			return false;
		}
and the player is VideoPlayerVMR9, but now the begining of the stream is not playing.

resume :
With AudioPlayerWMP9 all video stream work but the rendered core don't work fine for playing a second stream, and with VideoPlayerVMR9 the mediaportal core work fine all feature appears (OSD, etc..) but the beging of stream is not playing, and not all stream work, graphBuilder.RenderFile return a error with stream TSR VOD.

I propose to you to create a video player based on WMP.
What think you?

PS. It's not a joke but my english is bad.

sur_uix
 

Users who are viewing this thread

Top Bottom