AliyunPlayer  v4.7.1
Aliyun Player API Reference Manual for iOS Platforms
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties
AVPDef.h File Reference

Classes

class  AVPErrorModel
 AVPErrorModel represents playback error descriptions. More...
 
class  AVPTimeShiftModel
 AVPTimeShiftModel represents broadcasting timeshift descriptions. More...
 

Typedefs

typedef enum AVPEventType AVPEventType
 Player event type. More...
 
typedef enum AVPLogLevel AVPLogLevel
 
typedef enum AVPMirrorMode AVPMirrorMode
 Mirroring mode. More...
 
typedef enum AVPPropertyKey AVPPropertyKey
 The key to get property. More...
 
typedef enum AVPRotateMode AVPRotateMode
 Rotate mode. More...
 
typedef enum AVPScalingMode AVPScalingMode
 Zoom mode. More...
 
typedef enum AVPSeekMode AVPSeekMode
 Seeking mode: accurate seeking or inaccurate seeking. More...
 
typedef enum AVPStatus AVPStatus
 
typedef bool(* PlayURLConverCallback) (const char *srcURL, const char *srcFormat, char **destURL)
 

Enumerations

enum  AVPEventType : NSUInteger {
  AVPEventPrepareDone, AVPEventAutoPlayStart, AVPEventFirstRenderedStart, AVPEventCompletion,
  AVPEventLoadingStart, AVPEventLoadingEnd, AVPEventSeekEnd, AVPEventLoopingStart
}
 Player event type. More...
 
enum  AVPLogLevel : NSUInteger {
  LOG_LEVEL_NONE = 0, LOG_LEVEL_FATAL = 8, LOG_LEVEL_ERROR = 16, LOG_LEVEL_WARNING = 24,
  LOG_LEVEL_INFO = 32, LOG_LEVEL_DEBUG = 48, LOG_LEVEL_TRACE = 56
}
 
enum  AVPMirrorMode : NSUInteger { AVP_MIRRORMODE_NONE, AVP_MIRRORMODE_HORIZONTAL, AVP_MIRRORMODE_VERTICAL }
 Mirroring mode. More...
 
enum  AVPPropertyKey : NSUInteger { AVP_KEY_RESPONSE_INFO = 0, AVP_KEY_CONNECT_INFO = 1 }
 The key to get property. More...
 
enum  AVPRotateMode : NSUInteger { AVP_ROTATE_0 = 0, AVP_ROTATE_90 = 90, AVP_ROTATE_180 = 180, AVP_ROTATE_270 = 270 }
 Rotate mode. More...
 
enum  AVPScalingMode : NSUInteger { AVP_SCALINGMODE_SCALETOFILL, AVP_SCALINGMODE_SCALEASPECTFIT, AVP_SCALINGMODE_SCALEASPECTFILL }
 Zoom mode. More...
 
enum  AVPSeekMode : NSUInteger { AVP_SEEKMODE_ACCURATE = 0x01, AVP_SEEKMODE_INACCURATE = 0x10 }
 Seeking mode: accurate seeking or inaccurate seeking. More...
 
enum  AVPStatus : NSUInteger {
  AVPStatusIdle = 0, AVPStatusInitialzed, AVPStatusPrepared, AVPStatusStarted,
  AVPStatusPaused, AVPStatusStopped, AVPStatusCompletion, AVPStatusError
}
 

Typedef Documentation

◆ AVPEventType

typedef enum AVPEventType AVPEventType

Player event type.

◆ AVPLogLevel

typedef enum AVPLogLevel AVPLogLevel

◆ AVPMirrorMode

Mirroring mode.

◆ AVPPropertyKey

The key to get property.

◆ AVPRotateMode

Rotate mode.

◆ AVPScalingMode

Zoom mode.

◆ AVPSeekMode

typedef enum AVPSeekMode AVPSeekMode

Seeking mode: accurate seeking or inaccurate seeking.

◆ AVPStatus

typedef enum AVPStatus AVPStatus

◆ PlayURLConverCallback

typedef bool(* PlayURLConverCallback) (const char *srcURL, const char *srcFormat, char **destURL)

Enumeration Type Documentation

◆ AVPEventType

enum AVPEventType : NSUInteger

Player event type.

Enumerator
AVPEventPrepareDone 

Preparation completion event.

AVPEventAutoPlayStart 

Autoplay start event.

AVPEventFirstRenderedStart 

First frame display event.

AVPEventCompletion 

Playback completion event.

AVPEventLoadingStart 

Buffer start event.

AVPEventLoadingEnd 

Buffer completion event.

AVPEventSeekEnd 

Seeking completion event.

AVPEventLoopingStart 

Loop playback start event.

◆ AVPLogLevel

enum AVPLogLevel : NSUInteger
Enumerator
LOG_LEVEL_NONE 
LOG_LEVEL_FATAL 
LOG_LEVEL_ERROR 
LOG_LEVEL_WARNING 
LOG_LEVEL_INFO 
LOG_LEVEL_DEBUG 
LOG_LEVEL_TRACE 

◆ AVPMirrorMode

enum AVPMirrorMode : NSUInteger

Mirroring mode.

Enumerator
AVP_MIRRORMODE_NONE 
AVP_MIRRORMODE_HORIZONTAL 
AVP_MIRRORMODE_VERTICAL 

◆ AVPPropertyKey

enum AVPPropertyKey : NSUInteger

The key to get property.

Enumerator
AVP_KEY_RESPONSE_INFO 

Http response info Return with JSON array,each object item include 'response'/'type' filed。'type' could be url/video/audio/subtitle, depend on the stream whether have the tracks。 For example: [{"response":"response string","type":"url"},{"response":"","type":"video"}].

AVP_KEY_CONNECT_INFO 

Major URL connect information Return with JSON object,include sub fileds such as url/ip/eagleID/cdnVia/cdncip/cdnsip.

For example: {"url":"http://xxx","openCost":23,"ip":"11.111.111.11","cdnVia":"xxx","cdncip":"22.222.222.22","cdnsip":"xxx"}

◆ AVPRotateMode

enum AVPRotateMode : NSUInteger

Rotate mode.

Enumerator
AVP_ROTATE_0 
AVP_ROTATE_90 
AVP_ROTATE_180 
AVP_ROTATE_270 

◆ AVPScalingMode

enum AVPScalingMode : NSUInteger

Zoom mode.

Enumerator
AVP_SCALINGMODE_SCALETOFILL 

Auto stretch to fit.

AVP_SCALINGMODE_SCALEASPECTFIT 

Keep aspect ratio and add black borders.

AVP_SCALINGMODE_SCALEASPECTFILL 

Keep aspect ratio and crop.

◆ AVPSeekMode

enum AVPSeekMode : NSUInteger

Seeking mode: accurate seeking or inaccurate seeking.

Enumerator
AVP_SEEKMODE_ACCURATE 
AVP_SEEKMODE_INACCURATE 

◆ AVPStatus

enum AVPStatus : NSUInteger
Enumerator
AVPStatusIdle 

Idle.

AVPStatusInitialzed 

Initialized.

AVPStatusPrepared 

Prepared.

AVPStatusStarted 

Playing.

AVPStatusPaused 

Paused.

AVPStatusStopped 

Stopped.

AVPStatusCompletion 

Completed.

AVPStatusError 

Error.