sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 641 forks source link

MediaFoundation - Any way to set a buffered network stream as MediaEngine source? #965

Open TechnikEmpire opened 6 years ago

TechnikEmpire commented 6 years ago

I'm wondering if there's a way to construct and assign a network source. Right now the MediaEngine has SetSourceFromByteStream but it's obvious when you inspect the calls being made to the stream that the engine is treating this as a file stream. It will skip and seek back to the origin of the stream, jump many thousands of bytes forward in the stream instantly when adjusting things like playback speed, and doesn't attempt to buffer as far as I can tell.

I'm feeding x bytes per write to the source stream to simulate how the stream would receive data over say a HTTP session. Any pointers would be greatly appreciated. Hope questions are OK. Thanks for your work.

TechnikEmpire commented 6 years ago

Secondly, for whatever reason I can't find things that exist in the nuget package in this repo. Example is ByteStreamBuffering object.

TechnikEmpire commented 6 years ago

Nevermind re ByteStreamBuffering, I see now it's generated.