products/Sources/formale Sprachen/C/Firefox/third_party/libwebrtc/video/config/   (Linux Kernel Version 6.17.9©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

 AudioFocusManager.h

  Interaktion und
PortierbarkeitC
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef DOM_MEDIA_MEDIACONTROL_AUDIOFOCUSMANAGER_H_
#define DOM_MEDIA_MEDIACONTROL_AUDIOFOCUSMANAGER_H_

#include "VideoUtils.h"
#include "base/basictypes.h"
#include "nsTArray.h"

namespace mozilla::dom {

class IMediaController;
class MediaControlService;

/**
 * AudioFocusManager is used to assign the audio focus to different requester
 * and decide which requester can own audio focus when audio competing happens.
 * When the audio competing happens, the last request would be a winner who can
 * still own the audio focus, and all the other requesters would lose the audio
 * focus. Now MediaController is the onlt requester, it would request the audio
 * focus when it becomes audible and revoke the audio focus when the controller
 * is no longer active.
 */

class AudioFocusManager {
 public:
  void RequestAudioFocus(IMediaController* aController);
  void RevokeAudioFocus(IMediaController* aController);

  explicit AudioFocusManager() = default;
  ~AudioFocusManager() = default;

  uint32_t GetAudioFocusNums() const;

 private:
  friend class MediaControlService;
  void ClearFocusControllersIfNeeded();

  nsTArray<RefPtr<IMediaController>> mOwningFocusControllers;
};

}  // namespace mozilla::dom

#endif  //  DOM_MEDIA_MEDIACONTROL_AUDIOFOCUSMANAGER_H_

Messung V0.5 in Prozent
C=97 H=97 G=96

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.3Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.