-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Autoplay checkbox in demo UI is confusingly named #1114
Comments
The demo app does its own autoplay at the app level, because the autoplay attribute on the video element doesn't work on Android. Take a look at // While the manifest is being loaded in parallel, go ahead and ask the video
// to play. This can help with autoplay on Android, since Android requires
// user interaction to play a video and this function is called from a click
// event. This seems to work only because Shaka Player has already created a
// MediaSource object and set video.src.
shakaDemo.video_.play(); If you create your own application and don't call |
Well, okay then. I was just looking at a checkbox saying "autoplay" not being checked and the video starting playback automatically, which seemed wrong to me as a plain user of the demo app. But if it is by design then it is by design, I guess. |
Where is this checkbox? I don't see it in Chrome on Linux. If this is a thing users can toggle outside of our demo UI, we could make the I just want to find where that checkbox is so I can reproduce. |
I didn't see it any checkbox in Firefox on Linux, either. What browser & OS are you using, and where does the autoplay checkbox appear? |
Ah! I see! Here's the source of confusion: HTMLMediaElements have an That checkbox in configuration is something else. It has the effect of automating the "Load" button when you refresh the page. It's useful for manual testing and debugging, when you need to edit some code and reload the page to quickly reproduce an issue. It's also useful in bug reports, so that bugs reproduce when the page loads. The checkbox you're referring to should not be named "Autoplay", to avoid confusion. Instead, we should call it something closer to what it does: "Load content on page load". Does that makes sense? If that explanation helps, we will go ahead with renaming the checkbox in the demo UI. |
Yes, that sounds like it would indeed be an improvement. |
Excellent. Thanks for the feedback! |
This is to disambiguate with video.autoplay and to more clearly state what this checkbox does. Closes #1114 Change-Id: I23138957bda1fe6159b42bd4ae3327a426d379f9
The name change has been cherry-picked to v2.2.6. |
I was just trying to inspect the state of the player before any playback in the demo app and realized it was starting playback even though I had not checked the autoplay checkbox. I assume that should not happen?
The state of the checkbox seems to have no impact on what happens after I press the load button. Tested on Chrome 62 and Firefox 56 by entering custom URL.
The text was updated successfully, but these errors were encountered: