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 autoplay to video tags for all tests #161

Merged
merged 5 commits into from
Jan 18, 2016
Merged

Conversation

KaptenJansson
Copy link
Collaborator

Firefox does not update video.videoHeight and video.videoWidth until the first frame.

@fippo
Copy link
Member

fippo commented Jan 15, 2016

LGTM

Should we change the tests (in particular https://github.com/webrtc/adapter/blob/master/test/test.js#L387-L396) to be potentially-async and maybe listen for the video elements onresize?

@fippo
Copy link
Member

fippo commented Jan 15, 2016

ah... now i understand why this kind-of worked. We are waiting for the element to appear which happens in loadedmetadata. Which apparently is called for videos which don't have autoplay. Maybe we should listen for onresize instead?

@fippo
Copy link
Member

fippo commented Jan 15, 2016

cross-referencing -- maybe not playing the elements caused https://bugs.chromium.org/p/webrtc/issues/detail?id=4888 ?

@fippo fippo mentioned this pull request Jan 15, 2016
@KaptenJansson
Copy link
Collaborator Author

Changed to onresize and it seems to work well. Will do async tests in a separate PR if it fails or goes flaky.

KaptenJansson added a commit that referenced this pull request Jan 18, 2016
Add autoplay to video tags for all tests
@KaptenJansson KaptenJansson merged commit 591b93f into master Jan 18, 2016
@KaptenJansson KaptenJansson deleted the fixVideoTest branch January 18, 2016 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants