Changeset 214924 in webkit
- Timestamp:
- Apr 4, 2017 7:50:51 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r214922 r214924 1 2017-04-04 Youenn Fablet <youenn@apple.com> 2 3 [Mac] Add back web audio support for getUserMedia MediaStreamTrack 4 https://bugs.webkit.org/show_bug.cgi?id=170482 5 6 Reviewed by Eric Carlson. 7 8 * TestExpectations: 9 1 10 2017-04-04 Ryan Haddad <ryanhaddad@apple.com> 2 11 -
trunk/LayoutTests/TestExpectations
r214890 r214924 718 718 webrtc/peer-connection-remote-audio-mute2.html [ Pass Failure ] 719 719 webkit.org/b/170178 webrtc/video-replace-track-to-null.html [ Pass Failure ] 720 fast/mediastream/getUserMedia-webaudio.html [ Skip ]721 720 fast/mediastream/RTCPeerConnection-closed-state.html [ Skip ] 722 721 fast/mediastream/RTCPeerConnection-iceconnectionstatechange-event.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r214918 r214924 1 2017-04-04 Youenn Fablet <youenn@apple.com> 2 3 [Mac] Add back web audio support for getUserMedia MediaStreamTrack 4 https://bugs.webkit.org/show_bug.cgi?id=170482 5 6 Reviewed by Eric Carlson. 7 8 ´Covered by reenabled test. 9 10 Exporting method and class used in WebKit2. 11 12 * WebCore.xcodeproj/project.pbxproj: 13 * platform/audio/mac/CAAudioStreamDescription.h: 14 * platform/mediastream/mac/WebAudioSourceProviderAVFObjC.h: 15 1 16 2017-04-04 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r214865 r214924 283 283 07C1C0E51BFB60ED00BD2256 /* RealtimeMediaSourceSupportedConstraints.h in Headers */ = {isa = PBXBuildFile; fileRef = 07C1C0E41BFB60ED00BD2256 /* RealtimeMediaSourceSupportedConstraints.h */; settings = {ATTRIBUTES = (Private, ); }; }; 284 284 07CE77D516712A6A00C55A47 /* InbandTextTrackPrivateClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 07CE77D416712A6A00C55A47 /* InbandTextTrackPrivateClient.h */; settings = {ATTRIBUTES = (Private, ); }; }; 285 07D637401BB0B11300256CE9 /* WebAudioSourceProviderAVFObjC.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6373E1BB0B11300256CE9 /* WebAudioSourceProviderAVFObjC.h */; };285 07D637401BB0B11300256CE9 /* WebAudioSourceProviderAVFObjC.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6373E1BB0B11300256CE9 /* WebAudioSourceProviderAVFObjC.h */; settings = {ATTRIBUTES = (Private, ); }; }; 286 286 07D637411BB0B11300256CE9 /* WebAudioSourceProviderAVFObjC.mm in Sources */ = {isa = PBXBuildFile; fileRef = 07D6373F1BB0B11300256CE9 /* WebAudioSourceProviderAVFObjC.mm */; }; 287 287 07D6A4EF1BECF2D200174146 /* MockRealtimeMediaSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07D6A4ED1BECF2D200174146 /* MockRealtimeMediaSource.cpp */; }; -
trunk/Source/WebCore/platform/audio/mac/CAAudioStreamDescription.h
r214027 r214924 44 44 const PlatformDescription& platformDescription() const final; 45 45 46 PCMFormat format() const final;46 WEBCORE_EXPORT PCMFormat format() const final; 47 47 48 48 double sampleRate() const final { return m_streamDescription.mSampleRate; } -
trunk/Source/WebCore/platform/mediastream/mac/WebAudioSourceProviderAVFObjC.h
r213080 r214924 45 45 class CAAudioStreamDescription; 46 46 47 class W ebAudioSourceProviderAVFObjC : public RefCounted<WebAudioSourceProviderAVFObjC>, public AudioSourceProvider, RealtimeMediaSource::Observer {47 class WEBCORE_EXPORT WebAudioSourceProviderAVFObjC : public RefCounted<WebAudioSourceProviderAVFObjC>, public AudioSourceProvider, RealtimeMediaSource::Observer { 48 48 public: 49 49 static Ref<WebAudioSourceProviderAVFObjC> create(RealtimeMediaSource&); -
trunk/Source/WebKit2/ChangeLog
r214893 r214924 1 2017-04-04 Youenn Fablet <youenn@apple.com> 2 3 [Mac] Add back web audio support for getUserMedia MediaStreamTrack 4 https://bugs.webkit.org/show_bug.cgi?id=170482 5 6 Reviewed by Eric Carlson. 7 8 * WebProcess/cocoa/UserMediaCaptureManager.cpp: 9 (WebKit::UserMediaCaptureManager::Source::setStorage): 10 1 11 2017-04-04 Tim Horton <timothy_horton@apple.com> 2 12 -
trunk/Source/WebKit2/WebProcess/cocoa/UserMediaCaptureManager.cpp
r214027 r214924 39 39 #include <WebCore/RealtimeMediaSourceCenter.h> 40 40 #include <WebCore/WebAudioBufferList.h> 41 #include <WebCore/WebAudioSourceProviderAVFObjC.h> 41 42 42 43 using namespace WebCore; … … 80 81 { 81 82 m_description = description; 83 if (m_audioSourceProvider) 84 m_audioSourceProvider->prepare(&m_description.streamDescription()); 85 82 86 if (handle.isNull()) { 83 87 m_ringBuffer.deallocate(); … … 111 115 void stopProducingData() final { m_manager.stopProducingData(m_id); } 112 116 113 AudioSourceProvider* audioSourceProvider() final { return nullptr; } 117 AudioSourceProvider* audioSourceProvider() final { 118 if (!m_audioSourceProvider) { 119 m_audioSourceProvider = WebAudioSourceProviderAVFObjC::create(*this); 120 if (m_description.format() != AudioStreamDescription::None) 121 m_audioSourceProvider->prepare(&m_description.streamDescription()); 122 } 123 return m_audioSourceProvider.get(); 124 } 114 125 115 126 private: … … 124 135 CAAudioStreamDescription m_description; 125 136 CARingBuffer m_ringBuffer; 137 RefPtr<WebAudioSourceProviderAVFObjC> m_audioSourceProvider; 126 138 }; 127 139
Note: See TracChangeset
for help on using the changeset viewer.