Skip to content

Double buffer #32

@nenadV91

Description

@nenadV91

Hello 👋

In our application we have video player that needs to play multiple concatenated videos. Duration of all those videos is summed up and that is the total duration of timing object. As the time progresses in timing object, the correct url is fetched and set on the video element. We then use mediaSync method to connect our video element with timing object

        msyncRef.current = MCorp.mediaSync(
          videoRef.current, // react ref to video element
          mediaSync.delay, // SkewConverter
          mediaSyncOptions // empty object
        )

We would like to implement is functionality of "double buffer", where next video that should be played is loaded in another video element that is hidden, until the timing object comes to time where this hidden video should be played. Also this hidden video should wait at correct time which doesn't have to be 0.

Is there a good approach to implement this with timingsrc, which is intended to implement this scenario?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions