docs.unity3d.com
    目次を表示する/隠す

    Class VideoStreamTrack

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

    Constructors

    VideoStreamTrack(String, IntPtr, Int32, Int32, GraphicsFormat)

    Creates a new VideoStream object. The track is created with a source texture ptr. It is noted that streamed video might be flipped when not action was taken. Almost case it has no problem to use other constructor instead.

    See Also: Texture.GetNativeTexturePtr

    Declaration
    public VideoStreamTrack(string label, IntPtr texturePtr, int width, int height, GraphicsFormat format)
    Parameters
    Type Name Description
    String label
    IntPtr texturePtr
    Int32 width
    Int32 height
    GraphicsFormat format

    VideoStreamTrack(String, RenderTexture)

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

    Declaration
    public VideoStreamTrack(string label, RenderTexture source)
    Parameters
    Type Name Description
    String label
    RenderTexture source

    VideoStreamTrack(String, Texture)

    Declaration
    public VideoStreamTrack(string label, Texture source)
    Parameters
    Type Name Description
    String label
    Texture source

    Properties

    IsDecoderInitialized

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

    IsEncoderInitialized

    note: The videotrack cannot be used if the encoder has not been initialized. Do not use it until the initialization is complete.

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

    Methods

    Dispose()

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

    InitializeReceiver(Int32, Int32)

    Declaration
    public Texture InitializeReceiver(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    Returns
    Type Description
    Texture
    概要
    • Constructors
      • VideoStreamTrack(String, IntPtr, Int32, Int32, GraphicsFormat)
      • VideoStreamTrack(String, RenderTexture)
      • VideoStreamTrack(String, Texture)
    • Properties
      • IsDecoderInitialized
      • IsEncoderInitialized
    • Methods
      • Dispose()
      • InitializeReceiver(Int32, Int32)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)