TuSDKMediaPlayer Protocol Reference

Conforms to NSObject
Declared in TuSDKMediaPlayer.h

Overview

多媒体播放器接口

  volume required method

播放器的音频播放量,从0.0到1.0的线性范围。

@property (nonatomic) float volume

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– load required method

加载播放器

- (void)load

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– play required method

开始播放

- (void)play

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– pause required method

暂停播放

- (void)pause

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– stop required method

停止播放

- (void)stop

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– currentTime required method

获取已播放持续时间

- (CMTime)currentTime

Return Value

播放持续时间

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– seekToTime: required method

将当前回放时间设置为指定的时间

- (void)seekToTime:(CMTime)outputTime

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– canSupportedReverse required method

验证当前播放器是否支持倒序播放

- (BOOL)canSupportedReverse

Return Value

true/false

Availability

v3.0

Declared In

TuSDKMediaPlayer.h

– destory required method

销毁播放器并释放持有的资源

- (void)destory

Availability

v3.0.1

Declared In

TuSDKMediaPlayer.h