Thank you for your feedback Andreas.
I'll look into this next weekend.

----------
On Wed, 11 Oct 2017 12:23:05 +0200
Andreas Pehrson <[email protected]> wrote:
> Hi Norbert,
> 
> Personally I think one of the best approaches to solving this would
> be to preload all the videos in separate video elements in the
> background and capture them all with mozCaptureStream(). (It's
> captureStream() by spec but we're not spec compliant yet. For playing
> the capture in another media element it should be fine though.)
> 
> Then you have a separate video element that is displayed that plays a
> `new MediaStream(tracks)` with tracks from the background element you
> want to show. When you want to swap video you swap the tracks in this
> MediaStream. There might be minor glitches but I think this minimises
> them as well as we can.
> 
> Perhaps something could be done with MSE as well, but it's really not
> my area, and I'd be a bit concerned with latency since you are
> feeding a buffer.
> 
> 
> Andreas
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to