WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156284
[WinCairo][MediaFoundation] Videos are always autoplaying.
https://bugs.webkit.org/show_bug.cgi?id=156284
Summary
[WinCairo][MediaFoundation] Videos are always autoplaying.
peavo
Reported
2016-04-06 03:27:50 PDT
Videos are autoplaying because the MediaFoundation implementation always call play() after load() has been called. When load() has been called, we should only start buffering data, not automatically start the playback.
Attachments
Patch
(10.01 KB, patch)
2016-04-06 03:41 PDT
,
peavo
no flags
Details
Formatted Diff
Diff
Patch
(10.09 KB, patch)
2016-04-06 12:45 PDT
,
peavo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
peavo
Comment 1
2016-04-06 03:41:52 PDT
Created
attachment 275766
[details]
Patch
Alex Christensen
Comment 2
2016-04-06 11:44:09 PDT
Comment on
attachment 275766
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275766&action=review
> Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:850 > + if (progress >= 100) {
What is 100? Does this automatically buffer 100% of the data of the video? Is this good for HUGE videos?
peavo
Comment 3
2016-04-06 12:03:38 PDT
(In reply to
comment #2
)
> Comment on
attachment 275766
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=275766&action=review
> > > Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:850 > > + if (progress >= 100) { > > What is 100? Does this automatically buffer 100% of the data of the video? > Is this good for HUGE videos?
As I have understood it, this is the percentage of the amount of data you need to start playing. 100 then means you have enough data to start or continue playback. Thanks for looking into this :)
Alex Christensen
Comment 4
2016-04-06 12:05:08 PDT
So 100 means 100% of whatever MediaFoundation thinks is enough to start playing, not the percentage of the entire video, right? Could you give the constant 100 a name?
peavo
Comment 5
2016-04-06 12:45:52 PDT
Created
attachment 275810
[details]
Patch
peavo
Comment 6
2016-04-06 12:51:07 PDT
(In reply to
comment #4
)
> So 100 means 100% of whatever MediaFoundation thinks is enough to start > playing, not the percentage of the entire video, right? Could you give the > constant 100 a name?
Yes, according to the documentation it is the fill percentage of the playback buffer. I renamed the progress variable to 'percentageOfPlaybackBufferFilled', would that be ok?
peavo
Comment 7
2016-04-06 12:53:56 PDT
Thanks for reviewing!
WebKit Commit Bot
Comment 8
2016-04-06 13:41:50 PDT
Comment on
attachment 275810
[details]
Patch Clearing flags on attachment: 275810 Committed
r199114
: <
http://trac.webkit.org/changeset/199114
>
WebKit Commit Bot
Comment 9
2016-04-06 13:41:53 PDT
All reviewed patches have been landed. Closing bug.
Konstantin Tokarev
Comment 10
2017-08-31 08:11:02 PDT
Local files are still affected by this bug, because they don't get MEBufferingStarted/MEBufferingStopped events. Any idea what would be the right approach to fix this issue?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug