◆ destroy()
◆ getCacheFilePath:()
- (NSString *) getCacheFilePath: |
|
(NSString *) |
URL |
|
Query the name of the cached file with the specified URL.
If a custom rule is set, delegate onGetCacheNameByURL. If the delegation failed, the default logic is used to generate the file name.
- Parameters
-
URL | The URL of the cached file. |
- Returns
- The name of the cached file. The file extension is not included. All files use the .alv extension.
◆ getCacheFilePath:format:definition:()
- (NSString *) getCacheFilePath: |
|
(NSString *) |
vid |
format: |
|
(NSString *) |
format |
definition: |
|
(NSString *) |
definition |
|
|
| |
Query the name of the cached file with the specified URL.
If a custom rule is set, delegate onCacheNameByVidCallback. If the delegation failed, the default logic is used to generate the file name.
- Parameters
-
vid | The VID of the video. |
format | The format of the video. |
definition | The definition of the video. |
- Returns
- The name of the cached file. The file extension is not included. All files use the .alv extension.
◆ getCacheFilePath:format:definition:previewTime:()
- (NSString *) getCacheFilePath: |
|
(NSString *) |
vid |
format: |
|
(NSString *) |
format |
definition: |
|
(NSString *) |
definition |
previewTime: |
|
(int) |
previewTime |
|
|
| |
Query the name of the cached file with the specified URL.
If a custom rule is set, delegate onCacheNameByVidCallback. If the delegation failed, the default logic is used to generate the file name.
- Parameters
-
vid | The VID of the video. |
format | The format of the video. |
definition | The definition of the video. |
previewTime | The preview duration of the video. |
- Returns
- The name of the cached file. The file extension is not included. All files use the .alv extension.
◆ getConfig()
Query player configuration.
- See also
- AVPConfig
◆ getCurrentTrack:()
Query the track that is being played.
- Parameters
-
- See also
- AVPTrackType
◆ getMediaInfo()
Query media information, including track information.
◆ getPropertyString:()
Get information by key.
- Parameters
-
- Returns
- corresponding information, return "" if doesn't exist.
◆ getSDKVersion()
+ (NSString*) getSDKVersion |
|
|
|
◆ getThumbnail:()
- (void) getThumbnail: |
|
(int64_t) |
positionMs |
|
Retrieve the thumbnail image at the specified position.
- Parameters
-
positionMs | The specified position. |
◆ init()
◆ init:()
- (instancetype) init: |
|
(NSString *) |
traceID |
|
Initialize the player.
- Parameters
-
traceID | A trace ID for debugging. |
Implemented in AliListPlayer.
◆ initPlayerComponent:function:()
+ (void) initPlayerComponent: |
|
(NSString *) |
functionName |
function: |
|
(void *) |
function |
|
|
| |
Initialize player components.
These components are optional. You can remove these components by deleting the dynamic libraries and code of the components on your app.
◆ pause()
◆ prepare()
Prepare for playback.
Asynchronous callback.
◆ redraw()
Refresh the view in certain situations, for example, when the size of the view changes.
◆ reload()
Reload resources.
You can reload resources when the network connection times out.
◆ reset()
◆ seekToTime:seekMode:()
- (void) seekToTime: |
|
(int64_t) |
time |
seekMode: |
|
(AVPSeekMode) |
seekMode |
|
|
| |
Seek to a specified position.
- Parameters
-
time | The specified position that the player will seek to. |
seekMode | Seek mode. |
- See also
- AVPSeekMode
◆ selectTrack:()
- (void) selectTrack: |
|
(int) |
trackIndex |
|
Switch definition according to the specified track index.
- Parameters
-
trackIndex | Specify a definition index. SELECT_AVPTRACK_TYPE_VIDEO_AUTO: auto bitrate adjustment. |
◆ setAuthSource:()
◆ setCacheConfig:()
Modify cache configuration.
- Parameters
-
- Returns
- If the cache configuration is modified, YES is returned.
◆ setConfig:()
Modify player configuration.
- Parameters
-
- See also
- AVPConfig
◆ setLogCallbackInfo:callbackBlock:()
+ (void) setLogCallbackInfo: |
|
(AVPLogLevel) |
logLevel |
callbackBlock: |
|
(void(^)(AVPLogLevel logLevel, NSString *strLog)) |
block |
|
|
| |
Set a log output callback block.
Asynchronous.
- Parameters
-
logLevel | The level of the log. |
callbackBlock | Log output callback block, which can be nil. |
◆ setMpsSource:()
◆ setPlayUrlConvertCallback:()
Set a URL conversion callback.
URL conversion is typically used in P2P broadcasting.
- Parameters
-
callback | The function pointer of the callback. |
◆ setStsSource:()
◆ setThumbnailUrl:()
- (void) setThumbnailUrl: |
|
(NSString *) |
URL |
|
Specify a thumbnail image URL.
- Parameters
-
URL | The specified thumbnail image URL. |
◆ setTraceID:()
- (void) setTraceID: |
|
(NSString *) |
traceID |
|
Set a trace ID for debugging.
- Parameters
-
traceID | The specified client connection trace ID. |
◆ setUrlSource:()
◆ snapShot()
Snapshot.
AVPImage: For a Mac platform, NSImage is returned. For an iOS platform, UIImage is returned.
◆ start()
◆ stop()
◆ autoPlay
Enable or disable autoplay.
KVO is supported.
◆ bufferedPosition
- (int64_t) bufferedPosition |
|
readnonatomicassign |
Query the buffered position.
KVO is supported.
◆ currentPosition
- (int64_t) currentPosition |
|
readnonatomicassign |
Query the current playback position.
KVO is supported.
◆ delegate
◆ duration
Query the length of the video.
KVO is supported.
◆ enableHardwareDecoder
- (BOOL) enableHardwareDecoder |
|
readwritenonatomicassign |
Enable or disable hardware decoding.
KVO is supported.
◆ enableLog
Enable or disable logging.
- See also
- Use setLogCallbackInfo.
◆ height
Query the height of the video.
KVO is supported.
◆ loop
Enable or disable loop playback.
KVO is supported.
◆ mirrorMode
◆ muted
Mute or unmute the player.
KVO is supported.
◆ playerView
Set a player view (playerView).
AVPView: Mac platform: NSOpenGLView. iOS platform: UIView.
◆ rate
Set the playback speed.
Valid values: 0.5 to 2.0. Value 1 indicates normal speed. KVO is supported.
◆ rotateMode
◆ rotation
Query the rotate angle of the video, which is retrieved from the video metadata.
KVO is supported.
◆ scalingMode
◆ volume
Query or set the volume of the player.
KVO is supported.
◆ width
Query the width of the video.
KVO is supported.
The documentation for this class was generated from the following file: