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

Add Gaps/Empty SilenceMediaSource with custom duration to ConcatenatingMediaSource #5735

Closed
shaji-Dev opened this issue Apr 6, 2019 · 2 comments
Assignees

Comments

@shaji-Dev
Copy link

shaji-Dev commented Apr 6, 2019

Hi,

I'm building a ConcatenatingMediaSource for audio tracks that are placed in a timeline. I need to put Gaps or Silent tracks with custom duration between them, does the library provide a DummyMediaSource of some sort with custom duration that I can concatenate between the tracks in order to have these gaps?

If not, could you suggest a solution for this problem. Thank you.

@andrewlewis
Copy link
Collaborator

It's possible to write a SilenceMediaSource that inserts silence with a given duration, but we don't provide such a component currently. I'll mark this as an enhancement to add one to the core library.

@shaji-Dev
Copy link
Author

In the meanwhile if you have any suggestion on how to implement my own SilenceMediaSource that inserts silence would be much appreciated.

Thank you.

ojw28 pushed a commit that referenced this issue May 20, 2019
Issue: #5735
PiperOrigin-RevId: 248745617
@ojw28 ojw28 closed this as completed May 20, 2019
@shaji-Dev shaji-Dev changed the title Add Gaps/DummyMediaSource with custom duration to ConcatenatingMediaSource Add Gaps/Empty SilenceMediaSource with custom duration to ConcatenatingMediaSource May 20, 2019
ojw28 pushed a commit that referenced this issue Jun 3, 2019
Issue: #5735
PiperOrigin-RevId: 248745617
@google google locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants