Changeset 195154 in webkit
- Timestamp:
- Jan 15, 2016 3:34:25 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r195153 r195154 1 2016-01-15 Olivier Blin <olivier.blin@softathome.com> 2 3 Fix audio build with video disabled 4 https://bugs.webkit.org/show_bug.cgi?id=153134 5 6 Reviewed by Michael Catanzaro. 7 8 Build fails when WebAudio is enabled but VIDEO disabled. 9 10 No new tests since this is a build fix only. 11 12 * platform/audio/PlatformMediaSession.cpp: 13 * platform/audio/PlatformMediaSession.h: 14 * platform/audio/PlatformMediaSessionManager.cpp: 15 * testing/Internals.cpp: 16 (WebCore::Internals::setAudioContextRestrictions): 17 1 18 2016-01-15 Olivier Blin <olivier.blin@softathome.com> 2 19 -
trunk/Source/WebCore/platform/audio/PlatformMediaSession.cpp
r192966 r195154 27 27 #include "PlatformMediaSession.h" 28 28 29 #if ENABLE(VIDEO) 29 #if ENABLE(VIDEO) || ENABLE(WEB_AUDIO) 30 30 #include "HTMLMediaElement.h" 31 31 #include "Logging.h" … … 206 206 } 207 207 208 #if ENABLE(VIDEO) 208 209 String PlatformMediaSession::title() const 209 210 { … … 220 221 return m_client.mediaSessionCurrentTime(); 221 222 } 223 #endif 222 224 223 225 bool PlatformMediaSession::canReceiveRemoteControlCommands() const … … 300 302 } 301 303 304 #if ENABLE(VIDEO) 302 305 String PlatformMediaSessionClient::mediaSessionTitle() const 303 306 { … … 314 317 return MediaPlayer::invalidTime(); 315 318 } 316 317 } 318 #endif 319 #endif 320 321 } 322 #endif -
trunk/Source/WebCore/platform/audio/PlatformMediaSession.h
r192966 r195154 98 98 void visibilityChanged(); 99 99 100 #if ENABLE(VIDEO) 100 101 String title() const; 101 102 double duration() const; 102 103 double currentTime() const; 104 #endif 103 105 104 106 enum RemoteControlCommandType { … … 177 179 virtual void suspendPlayback() = 0; 178 180 181 #if ENABLE(VIDEO) 179 182 virtual String mediaSessionTitle() const; 180 183 virtual double mediaSessionDuration() const; 181 184 virtual double mediaSessionCurrentTime() const; 185 #endif 182 186 183 187 virtual bool canReceiveRemoteControlCommands() const = 0; -
trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp
r192966 r195154 27 27 #include "PlatformMediaSessionManager.h" 28 28 29 #if ENABLE(VIDEO) 29 #if ENABLE(VIDEO) || ENABLE(WEB_AUDIO) 30 30 31 31 #include "AudioSession.h" -
trunk/Source/WebCore/testing/Internals.cpp
r194706 r195154 2950 2950 context->removeBehaviorRestriction(restrictions); 2951 2951 2952 restrictions = MediaElementSession::NoRestrictions;2952 restrictions = AudioContext::NoRestrictions; 2953 2953 2954 2954 Vector<String> restrictionsArray;
Note: See TracChangeset
for help on using the changeset viewer.