Foxit PDF SDK

构造函数 | 所有成员列表
<FSMediaPlayerCallback>协议 参考

继承自 <NSObject> .

## 构造函数
(void) | - close
| A callback function to close the media player. 更多...
(FSMediaSettings *) | - getPlayerSettings
| A callback function to get the media player settings. 更多...
(FSMediaPlayerCallbackJSMediaPlayerState) | - getState
| A callback function to get the media player state. 更多...
(BOOL) | - play
| A callback function to play the media player. 更多...
(BOOL) | - seek:
| A callback function to seek the media player. 更多...
(BOOL) | - stop
| A callback function to stop the media player. 更多...

## 详细描述

This class represents a callback object for performing media player actions. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

## 函数文档

## ◆ close()

- (void) close |  |  |
| required

A callback function to close the media player.

This callback function will be triggered by the javascript method "MediaPlayer.close".

返回
  None.

## ◆ getPlayerSettings()

- (FSMediaSettings*) getPlayerSettings |  |  |
| required

A callback function to get the media player settings.

This callback function will be triggered by the javascript property "MediaPlayer.visible".

返回
  A MediaSettings object.

## ◆ getState()

- (FSMediaPlayerCallbackJSMediaPlayerState) getState |  |  |
| required

A callback function to get the media player state.

This callback function will be triggered by the javascript property "MediaPlayer.isOpen".

返回
  The media player state.

## ◆ play()

- (BOOL) play |  |  |
| required

A callback function to play the media player.

This callback function will be triggered by the javascript method "MediaPlayer.play".

返回
  true means success, while false means failure.

## ◆ seek:()

- (BOOL) seek: |  | (int) | current_pos |
| required

A callback function to seek the media player.

This callback function will be triggered by the javascript method "MediaPlayer.seek".

参数

  [in] | current_pos | Indicate the playback location.

返回
  true means success, while false means failure.

## ◆ stop()

- (BOOL) stop |  |  |
| required

A callback function to stop the media player.

This callback function will be triggered by the javascript method "MediaPlayer.stop".

返回
  true means success, while false means failure.