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 Talk
Streaming RAR files
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="KingHippo" data-source="post: 213631" data-attributes="member: 10992"><p>Good job!</p><p>Just an idea, if you already have a class for reading rar archives, isn't it easier to create a class that works lika a normal System.IO.Stream and reads the content of the .rar? Then you won't have to mount anything and can just change the usual code to something like below.</p><p></p><p>From:</p><p>FileStream sr = new FileStream("movie.avi");</p><p>Player.Play(sr);</p><p></p><p>To:</p><p>class RarStreamReader : Stream {...}</p><p>RarStreamReader rsr = new RarStreamReader("movie.r01");</p><p>Player.Play(rsr);</p><p></p><p>Im guessing now how the play function works but im guessing it takes some kind of stream </p><p>like Player.Play(Stream sr);</p><p></p><p>Just an idea, it'll be great both ways =)</p></blockquote><p></p>
[QUOTE="KingHippo, post: 213631, member: 10992"] Good job! Just an idea, if you already have a class for reading rar archives, isn't it easier to create a class that works lika a normal System.IO.Stream and reads the content of the .rar? Then you won't have to mount anything and can just change the usual code to something like below. From: FileStream sr = new FileStream("movie.avi"); Player.Play(sr); To: class RarStreamReader : Stream {...} RarStreamReader rsr = new RarStreamReader("movie.r01"); Player.Play(rsr); Im guessing now how the play function works but im guessing it takes some kind of stream like Player.Play(Stream sr); Just an idea, it'll be great both ways =) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Streaming RAR files
Contact us
RSS
Top
Bottom