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

    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, CopyTexture)

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

    Declaration
    public VideoStreamTrack(Texture texture, CopyTexture copyTexture = null)
    Parameters
    Type Name Description
    Texture texture
    CopyTexture copyTexture

    By default, textures are copied vertically flipped, using CopyTextureHelper.VerticalFlipCopy, use Graphics.Blit for copy as is, CopyTextureHelper for flip, or write your own CopyTexture function

    Exceptions
    Type Condition
    InvalidOperationException

    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

    NeedReceivedVideoFlipVertically

    Flip vertically received video, change it befor start receive video

    Declaration
    public static bool NeedReceivedVideoFlipVertically { get; set; }
    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
    トップに戻る
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Wednesday, November 1, 2023