-
Notifications
You must be signed in to change notification settings - Fork 128
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
Disable progressive playback support by default #4547
Conversation
Progressive playback support can be disabled at runtime by passing the argument "--disable-features=CobaltProgressivePlayback". Progressive playback support remains enabled by default. This change only affects Cobalt Starboard Media builds. b/382791540
third_party/blink/renderer/core/html/media/html_media_element.cc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should add a unit test (to third_party/blink/renderer/core/html/media/html_media_element_test.cc), it shouldn't be too hard.
The function in base/test/scoped_feature_list.h can help for enabling base::Features safely for testing.
@yell0wd0g I commented elsewhere in this PR:
|
If you can compile and run it on Linux, I'd say add it, since anyway blink_unittest APK is not ran anywhere, so it wouldn't crash : ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good but I'd add the unit test anyhow and also try and make const any variable that can be const.
third_party/blink/renderer/core/html/media/html_media_element.cc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for bringing the unit tests!
Merge pending discussion if we want to start with C25 only: #4564 |
} | ||
|
||
Vector<String> split_codecs; | ||
const String separator(", "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to double check if this can handle queries without space after ',', e.g. 'video/mp4; codecs="avc1.42001E,mp4a.40.2"', which are also valid.
Since we are not checking the exact value, splitting on ',' can handle cases with or without extra space. In either case, we should comment here mentioning that this is not comprehensive.
Also, is this function called by the H5 player with a single codec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a new PR #4624 that strips whitespace.
Now that progressive is disabled, this function will be called on single codec formats as well. There may be a performance hit that I haven't analyzed.
Implements a
BASE_FEATURE
for Cobalt progressive playback support and disables it by default. Progressive playback can be enabled at runtime by passing the argument"--enable-features=CobaltProgressivePlayback"
. This change only affects Cobalt Starboard Media builds.b/382791540