docs.unity.cn
    Show / Hide Table of Contents

    Class VideoStreamTrack

    Inheritance
    Object
    RefCountedObject
    MediaStreamTrack
    VideoStreamTrack
    Inherited Members
    MediaStreamTrack.Enabled
    MediaStreamTrack.ReadyState
    MediaStreamTrack.Kind
    MediaStreamTrack.Id
    MediaStreamTrack.Stop()
    RefCountedObject.disposed
    Namespace: Unity.WebRTC
    Syntax
    public class VideoStreamTrack : MediaStreamTrack, IDisposable

    Constructors

    VideoStreamTrack(Texture, Boolean)

    Creates a new VideoStream object. The track is created with a source.

    Declaration
    public VideoStreamTrack(Texture texture, bool needFlip = true)
    Parameters
    Type Name Description
    Texture texture
    Boolean needFlip

    Properties

    DataPtr

    Declaration
    public IntPtr DataPtr { get; }
    Property Value
    Type Description
    IntPtr

    Decoding

    Declaration
    public bool Decoding { get; }
    Property Value
    Type Description
    Boolean

    Encoding

    Declaration
    public bool Encoding { get; }
    Property Value
    Type Description
    Boolean

    Texture

    encoded / decoded texture

    Declaration
    public Texture Texture { get; }
    Property Value
    Type Description
    Texture

    TexturePtr

    encoded / decoded texture ptr

    Declaration
    public IntPtr TexturePtr { get; }
    Property Value
    Type Description
    IntPtr

    Methods

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    MediaStreamTrack.Dispose()

    Events

    OnVideoReceived

    Declaration
    public event OnVideoReceived OnVideoReceived
    Event Type
    Type Description
    OnVideoReceived
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, July 12, 2023