Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of MockVideoMediaSource and PassthroughDecoder #122

Merged
merged 2 commits into from
May 20, 2021

Conversation

izzytwosheds
Copy link
Contributor

Adding two new classes that will let us do some powerful media transformations:

  • MockVideoMediaSource is an implementation of MediaSource that acts as a source with a single video track of a certain duration. Client defines properties of this track by passing in a MediaFormat with necessary metadata values.
  • PassthroughDecoder is an implementation of Decoder which simply outputs input frames in the order it received them. If running in hardware accelerated mode, it also triggers a GL draw call when output frame is released with a request to render a frame.

We use these two new classes in a new demo case to create a 5 second "empty" video. Optionally we can use a still background image, turning that into a video.

@izzytwosheds izzytwosheds merged commit eddb1b8 into linkedin:main May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants