MixedReality-WebRTC MixedReality-WebRTC
Search Results for

    Show / Hide Table of Contents

    Unity VideoRenderer component

    The VideoRenderer Unity component is a utility component to render some video frames into a Unity texture.

    The VideoRenderer Unity component

    To use the component, either call its StartRendering() and StopRendering() methods from code, or connect them to Unity events such as the VideoTrackSource.VideoStreamStarted and VideoTrackSource.VideoStreamStopped events. All video source components derive from VideoTrackSource and therefore expose those events.

    Property Description
    Video
    MaxFramerate Maximum number of video frames per second rendered. Extra frames coming from the video source passed to StartRendering() are discarded.
    Statistics
    EnableStatistics Enable the collecting of video statistics by the media player. This adds some minor overhead.
    FrameLoadStatHolder Reference to a TextMesh instance whose text is set to the number of incoming video frames per second pulled from the video source into the media player's internal queue.
    FramePresentStatHolder Reference to a TextMesh instance whose text is set to the number of video frames per second dequeued from the media player's internal queue and rendered to the texture(s) of the Renderer component associated with this media player.
    FrameSkipStatHolder Reference to a TextMesh instance whose text is set to the number of video frames per second dropped due to the media player's internal queue being full. This corresponds to frames being enqueued faster than they are dequeued, which happens when the source is overflowing the sink, and the sink cannot render all frames.

    See also :

    • VideoTrackSource
    • WebcamSource
    • SceneVideoSource
    • Improve this Doc
    In This Article
    Back to top Generated by DocFX