Changeset 162870 in webkit
- Timestamp:
- Jan 27, 2014, 2:47:27 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r162869 r162870 1 2014-01-27 Eric Carlson <eric.carlson@apple.com> 2 3 [iOS] preload=none prevents play() 4 https://bugs.webkit.org/show_bug.cgi?id=127702 5 6 Reviewed by Jer Noble. 7 8 No new tests, covered by existing tests. 9 10 * html/HTMLMediaElement.cpp: 11 (WebCore::HTMLMediaElement::potentiallyPlaying): Cleanup logic to make it simpler to understand, 12 fix logic error introduced in r161973 13 (WebCore::HTMLMediaElement::updatePlayState): Conditionalize some iOS-only code on whether or not 14 we are using the plug-in proxy. 15 1 16 2014-01-27 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r162503 r162870 4109 4109 bool HTMLMediaElement::potentiallyPlaying() const 4110 4110 { 4111 // When media engine ran out of buffered data it's not playing. 4112 if (m_readyStateMaximum < HAVE_FUTURE_DATA && m_readyState < HAVE_FUTURE_DATA) 4111 if (isBlockedOnMediaController()) 4113 4112 return false; 4114 4115 return couldPlayIfEnoughData() && !isBlockedOnMediaController(); 4113 4114 if (!couldPlayIfEnoughData()) 4115 return false; 4116 4117 if (m_readyState >= HAVE_FUTURE_DATA) 4118 return true; 4119 4120 return m_readyStateMaximum >= HAVE_FUTURE_DATA && m_readyState < HAVE_FUTURE_DATA; 4116 4121 } 4117 4122 … … 4243 4248 bool playerPaused = m_player->paused(); 4244 4249 4245 #if PLATFORM(IOS) 4246 if (shouldBePlaying && !m_requestingPlay && !m_player->readyForPlayback()) 4247 shouldBePlaying = false; 4248 else if (!shouldBePlaying && m_requestingPlay && m_player->readyForPlayback()) 4249 shouldBePlaying = true; 4250 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 4251 if (shouldUseVideoPluginProxy()) { 4252 if (shouldBePlaying && !m_requestingPlay && !m_player->readyForPlayback()) 4253 shouldBePlaying = false; 4254 else if (!shouldBePlaying && m_requestingPlay && m_player->readyForPlayback()) 4255 shouldBePlaying = true; 4256 } 4250 4257 #endif 4251 4258 -
trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm
r162360 r162870 74 74 , m_objcObserver(adoptNS([[WebMediaSessionHelper alloc] initWithCallback:this])) 75 75 { 76 resetRestrictions(); 76 77 } 77 78
Note:
See TracChangeset
for help on using the changeset viewer.