/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
/** * We create video wakelock when the video is playing and release it when * video pauses. Note, the actual platform wakelock will automatically be * released when the page is in the background, so we don't need to check the * video's visibility by ourselves.
*/ void WakeLockRelease() override; void UpdateWakeLock() override;
// For video elements, we can clone the frames being played to // a secondary video element. If we're doing that, we hold a // reference to the video element we're cloning to in // mVisualCloneSource. // // Please don't set this to non-nullptr values directly - use // SetVisualCloneTarget() instead.
RefPtr<HTMLVideoElement> mVisualCloneTarget; // Set when mVisualCloneTarget is set, and resolved (and unset) when the // secondary container has been applied to the underlying resource.
RefPtr<Promise> mVisualCloneTargetPromise; // Set when beginning to clone visually and we are playing a MediaStream. // This is the output wrapping the VideoFrameContainer of mVisualCloneTarget, // so we can render its first frame, and resolve mVisualCloneTargetPromise as // we do.
RefPtr<FirstFrameVideoOutput> mSecondaryVideoOutput; // If this video is the clone target of another video element, // then mVisualCloneSource points to that originating video // element. // // Please don't set this to non-nullptr values directly - use // SetVisualCloneTarget() instead.
RefPtr<HTMLVideoElement> mVisualCloneSource;
private: void ResetState() override;
bool HasPendingCallbacks() const final { return !mVideoFrameRequestManager.IsEmpty();
}
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 ist noch experimentell.