[haiku-development] BFileInterface, BMediaFile And Streaming

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 5 Mar 2016 18:09:26 +0100

Hello,
I'm investigating this time into BFileInterface and BMediaFile. I think the
best features actually would be:

1 - Have BMediaFile able to query plugins with an url, supported plugins
will return a BMediaIO which will be used to read and write the data.
2 - Make BMediaNodes able to write and read data to/from a BMediaIO. I can
imagine a BMediaNode with such capabilities receive audio/video data from
the media_kit, use the ffmpeg plugin to encode it and write that data to a
BMediaIO streaming it over the network.

I think 1 can be added by just improving a bit the sniff process, plugins
supporting this feature will analyze the URL passed and will try to begin
sniffing the stream. The BMediaIO passed back to the BMediaFile might be
just a BMediaIOWrapper created as well.

Speaking of 2, I don't think BFileInterface has been designed with support
for i/o streams in mind. At this point there are two options, introduce a
new class such as BMediaIOInterface or heavily modify BFileInterface to
support that feature.

-- 
Best Regards,
Dario

Other related posts: