Search Results for

    Show / Hide Table of Contents

    Class PacketTimeAttribute

    This gives the length of time in milliseconds represented by the media in a packet. This is probably only meaningful for audio data, but may be used with other media types if it makes sense. It should not be necessary to know ptime to decode RTP or vat audio, and it is intended as a recommendation for the encoding/packetisation of audio. It is a media-level attribute, and it is not dependent on charset.

    Inheritance
    System.Object
    Attribute
    PacketTimeAttribute
    Inherited Members
    Attribute.AttributeType
    Attribute.MultiplexingCategory
    Attribute.GetTypeName(Type)
    Attribute.IsSessionLevel(Type)
    Attribute.IsMediaLevel(Type)
    Attribute.CreateAttribute(String, String)
    Attribute.ToString()
    Attribute.Parse(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: FM.LiveSwitch.Sdp
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class PacketTimeAttribute : Attribute

    Constructors

    PacketTimeAttribute(Int32)

    Initializes a new instance of the PacketTimeAttribute class.

    Declaration
    public PacketTimeAttribute(int packetTime)
    Parameters
    Type Name Description
    System.Int32 packetTime

    The length of time in milliseconds represented by the media in a packet.

    Properties

    PacketTime

    Gets or sets the length of time in milliseconds represented by the media in a packet.

    Declaration
    public int PacketTime { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    FromAttributeValue(String)

    Initializes a new instance of the PacketTimeAttribute class.

    Declaration
    public static PacketTimeAttribute FromAttributeValue(string value)
    Parameters
    Type Name Description
    System.String value

    The attribute value.

    Returns
    Type Description
    PacketTimeAttribute

    GetAttributeValue()

    Gets the internal value of the attribute.

    Declaration
    protected override string GetAttributeValue()
    Returns
    Type Description
    System.String
    Overrides
    Attribute.GetAttributeValue()
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0