getMediaPlayer abstract method

FutureOr<RTCMediaPlayer?> getMediaPlayer(
  1. int playerId
)

Valid since v3.56.1

Creates a media player instance.

playerId: Media player id. The range is [0, 3]. You can create up to 4 instances at the same time. If it exceeds the range, nullptr will be returned.

Return value: A media player instance.

Implementation

FutureOr<RTCMediaPlayer?> getMediaPlayer(int playerId);