switchMediaSource method

void switchMediaSource(
  1. ByteArkPlayerConfig config
)

Switches to a new media source based on the provided configuration.

config contains the new media settings and configurations.

Implementation

void switchMediaSource(ByteArkPlayerConfig config) {
  ByteArkPlayerControllerPlatform.instance.switchMediaSource(config);
}