AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AVPTrackInfo Class Reference

Media track information class. More...

#include "AVPMediaInfo.h"

Inheritance diagram for AVPTrackInfo:

Properties

int audioChannels
 Number of audio channels.
NSString * audioLanguage
 Audio language.
int audioSampleFormat
 Audio sample format.
int audioSamplerate
 Audio sample rate.
NSString * codecName
 Codec name.
NSString * subtitleLanguage
 Subtitle language.
int trackBitrate
 Track bitrate.
NSString * trackDefinition
 Track definition.
int trackIndex
 Track index.
AVPTrackType trackType
 Track type.
int videoHeight
 Video height.
int videoWidth
 Video width.
int64_t vodFileSize
 VOD file size.
NSString * vodFormat
 VOD format.
NSString * vodPlayUrl
 VOD play URL.
NSString * waterMarkUrl
 Watermark URL.

Detailed Description

Media track information class.

Contains detailed information of a single media track, including codec format, type, resolution, bitrate, etc. Different track types have different valid properties.

Property Documentation

◆ audioChannels

- (int) audioChannels
readwritenonatomicassign

Number of audio channels.

Number of audio channels, such as mono (1), stereo (2), etc. Valid only when trackType is AVPTRACK_TYPE_AUDIO.

◆ audioLanguage

- (NSString*) audioLanguage
readwritenonatomiccopy

Audio language.

Language identifier of audio track, such as "en" (English), "zh" (Chinese), etc. Valid only when trackType is AVPTRACK_TYPE_AUDIO.

◆ audioSampleFormat

- (int) audioSampleFormat
readwritenonatomicassign

Audio sample format.

Audio sample data format. Valid only when trackType is AVPTRACK_TYPE_AUDIO.

◆ audioSamplerate

- (int) audioSamplerate
readwritenonatomicassign

Audio sample rate.

Audio sampling frequency in Hz. Common values are 44100, 48000, etc. Valid only when trackType is AVPTRACK_TYPE_AUDIO.

◆ codecName

- (NSString*) codecName
readwritenonatomiccopy

Codec name.

Represents the name of the audio/video codec format used by this track, such as "h264", "aac", etc.

◆ subtitleLanguage

- (NSString*) subtitleLanguage
readwritenonatomiccopy

Subtitle language.

Language identifier of subtitle track, such as "en" (English), "zh" (Chinese), etc. Valid only when trackType is AVPTRACK_TYPE_SUBTITLE.

◆ trackBitrate

- (int) trackBitrate
readwritenonatomicassign

Track bitrate.

Bitrate of this track in bps (bits per second). Valid only when trackType is AVPTRACK_TYPE_VIDEO.

◆ trackDefinition

- (NSString*) trackDefinition
readwritenonatomiccopy

Track definition.

Indicates the resolution or clarity identifier of this video track. Valid only when trackType is AVPTRACK_TYPE_SAAS_VOD.

◆ trackIndex

- (int) trackIndex
readwritenonatomicassign

Track index.

◆ trackType

- (AVPTrackType) trackType
readwritenonatomicassign

Track type.

Represents the type of this track (video, audio, subtitle, or VOD stream).

See also
AVPTrackType

◆ videoHeight

- (int) videoHeight
readwritenonatomicassign

Video height.

Height of video frame in pixels. Valid only when trackType is AVPTRACK_TYPE_VIDEO.

◆ videoWidth

- (int) videoWidth
readwritenonatomicassign

Video width.

Width of video frame in pixels. Valid only when trackType is AVPTRACK_TYPE_VIDEO.

◆ vodFileSize

- (int64_t) vodFileSize
readwritenonatomicassign

VOD file size.

The size of the VOD stream file in bytes. Valid only when trackType is AVPTRACK_TYPE_SAAS_VOD.

◆ vodFormat

- (NSString*) vodFormat
readwritenonatomiccopy

VOD format.

◆ vodPlayUrl

- (NSString*) vodPlayUrl
readwritenonatomiccopy

VOD play URL.

The playback URL of the VOD stream. Valid only when trackType is AVPTRACK_TYPE_SAAS_VOD.

◆ waterMarkUrl

- (NSString*) waterMarkUrl
readwritenonatomiccopy

Watermark URL.

The watermark file URL associated with this VOD stream. Valid only when trackType is AVPTRACK_TYPE_SAAS_VOD.


The documentation for this class was generated from the following file: