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
Development
General Development (no feature request here!)
Playing video stream problem
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="sur_uix" data-source="post: 31316" data-attributes="member: 17563"><p>Hi,</p><p>I have found a big bug(I have make long time debug) for playing video stream in MyTrailer.</p><p></p><p>in first time playing work because the player is AudioPlayerWMP9. The error is in Utils.IsVideo don't detect stream extension. </p><p>I have make change in Utils.IsVideo for correcte detect file stream, </p><p>[code] static public bool IsVideo(string strPath)</p><p> {</p><p> if (strPath==null) return false;</p><p> try</p><p> {</p><p> if (!System.IO.Path.HasExtension(strPath)) return false;</p><p> if (IsPlayList(strPath)) return false;</p><p> //I have change .Equals() with StartsWith() fro video stream.</p><p> //".wmv?streamid=21078263&b=639r4gd1i7uth433192d0&s=1808432817&segment=160968&cg_id=1398530"</p><p> string strExtFile=System.IO.Path.GetExtension(strPath).ToLower();</p><p> if (strExtFile.ToLower().StartsWith(".tv") ) return true;</p><p> if (strExtFile.ToLower().StartsWith(".ts")) return true;</p><p> if (strExtFile.ToLower().StartsWith(".sbe")) return true;</p><p> if (strExtFile.ToLower().StartsWith(".dvr-ms")) return true;</p><p> if (VirtualDirectory.IsImageFile(strExtFile.ToLower())) return true;</p><p> foreach (string strExt in m_VideoExtensions)</p><p> {</p><p> if (strExtFile.StartsWith(strExt)) return true;</p><p> }</p><p> }</p><p> catch(Exception)</p><p> {</p><p> }</p><p> return false;</p><p> }</p><p>[/code]</p><p>and the player is VideoPlayerVMR9, but now the begining of the stream is not playing.</p><p></p><p>resume :</p><p>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.</p><p></p><p>I propose to you to create a video player based on WMP.</p><p>What think you?</p><p></p><p>PS. It's not a joke but my english is bad.</p><p></p><p>sur_uix</p></blockquote><p></p>
[QUOTE="sur_uix, post: 31316, member: 17563"] 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; } [/code] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Playing video stream problem
Contact us
RSS
Top
Bottom