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

Change track capture rules to match playback more closely. #12

Merged
merged 5 commits into from
Sep 17, 2015

Conversation

martinthomson
Copy link
Member

The set of tracks now matches exactly what is present in the source.
Tracks that don't have any content are reflected using the "muted" attribute.
This allows for capture of media that has a track that is selected, but not
currently playing. It also cleanly deals with seeking because the set of tracks
doesn't need to change when seeking, just the muted property.

We had no good way to handle disabled and muted tracks previously. This
corrects that.

captureStreamUntilEnded() just waits until playback ends. It isn't affected
by source changes or seeking.

Also switched canvas capture to capture nothing when not origin-clean.

Closes #10.

</p>
<p>
A <code>&lt;video&gt;</code> element can therefore capture a video
<code>MediaStreamTrack</code> and any number of audio
<code>MediaStreamTrack</code>s. An <code>&lt;audio&gt;</code> element
<code>MediaStreamTrack</code>s. An <code>&lt;audio&gt;</code> element
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some whitespace sneaked in here.

The set of tracks now matches exactly what is present in the source.
Tracks that don't have any content are reflected using the "muted" attribute.
This allows for capture of media that has a track that is selected, but not
currently playing.  It also cleanly deals with seeking because the set of tracks
doesn't need to change when seeking, just the muted property.

We had no good way to handle disabled and muted tracks previously.  This
corrects that.

captureStreamUntilEnded() just waits until playback ends.  It isn't affected
by source changes or seeking.

Also switched canvas capture to capture nothing when not origin-clean.
martinthomson added a commit that referenced this pull request Sep 17, 2015
Change track capture rules to match playback more closely.
@martinthomson martinthomson merged commit 7272429 into gh-pages Sep 17, 2015
@martinthomson martinthomson deleted the match_playback branch September 17, 2015 18:25
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