Inherits <NSObjectAgoraRtcMediaPlayerProtocol>.
◆ openMediaWithSongCode:startPos:
- (NSInteger) openMediaWithSongCode: |
|
(NSInteger) |
songCode |
startPos: |
|
(NSInteger) |
startPos |
|
|
| |
Open a media file with specified parameters.
- Parameters
-
songCode | The identifier of the media file that you want to play. |
startPos | The playback position (ms) of the music file. |
- Returns
- 0: Success.
- < 0: Failure.
◆ setPlayMode:
Set the mode for playing songs. You can call this method to switch from original to accompaniment or lead vocals. If you do not call this method to set the mode, the SDK plays the accompaniment by default.
- Parameters
-
- Returns
- 0: Success.
- < 0: Failure.