зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440252 - Implement MediaEngineWebRTCMicrophoneSource::GetSettings. r=padenot
MozReview-Commit-ID: IVbax9Xxs8R --HG-- extra : rebase_source : 6d42af31705860100ba40b0d750ddce2b513467d
This commit is contained in:
Родитель
e84ffff072
Коммит
c597c8df87
|
@ -416,6 +416,12 @@ public:
|
|||
const nsString& aDeviceId,
|
||||
const char** aOutBadConstraint) override;
|
||||
|
||||
/**
|
||||
* Assigns the current settings of the capture to aOutSettings.
|
||||
* Main thread only.
|
||||
*/
|
||||
void GetSettings(dom::MediaTrackSettings& aOutSettings) const override;
|
||||
|
||||
void Pull(const RefPtr<const AllocationHandle>& aHandle,
|
||||
const RefPtr<SourceMediaStream>& aStream,
|
||||
TrackID aTrackID,
|
||||
|
|
|
@ -754,6 +754,13 @@ MediaEngineWebRTCMicrophoneSource::Stop(const RefPtr<const AllocationHandle>& aH
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
MediaEngineWebRTCMicrophoneSource::GetSettings(dom::MediaTrackSettings& aOutSettings) const
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
aOutSettings = *mSettings;
|
||||
}
|
||||
|
||||
void
|
||||
MediaEngineWebRTCMicrophoneSource::Pull(const RefPtr<const AllocationHandle>& aHandle,
|
||||
const RefPtr<SourceMediaStream>& aStream,
|
||||
|
|
Загрузка…
Ссылка в новой задаче