parse static method

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

Parse playlist based on type of stream.

Implementation

static Future<BetterPlayerAsmsDataHolder> parse(
    String data, String masterPlaylistUrl) async {
  return isDataSourceDash(masterPlaylistUrl)
      ? BetterPlayerDashUtils.parse(data, masterPlaylistUrl)
      : BetterPlayerHlsUtils.parse(data, masterPlaylistUrl);
}