parse static method

Future<PipFlutterPlayerAsmsDataHolder> parse(
  1. String data,
  2. String masterPlaylistUrl
)

Parse playlist based on type of stream.

Implementation

static Future<PipFlutterPlayerAsmsDataHolder> parse(
    String data, String masterPlaylistUrl) async {
  return isDataSourceDash(masterPlaylistUrl)
      ? PipFlutterPlayerDashUtils.parse(data, masterPlaylistUrl)
      : PipFlutterPlayerHlsUtils.parse(data, masterPlaylistUrl);
}