isMpegtspackage method
Implementation
Future<bool> isMpegtspackage() async {
bool isMpegts = false;
if (kIsWeb) {
WebBrowserInfo webBrowserInfo =
await DeviceRegistration().getDeviceInfo();
BrowserName browserName = webBrowserInfo.browserName;
String userAgent = webBrowserInfo.userAgent!;
if (userAgent.contains("iPhone") || userAgent.contains("iPad")) {
isMpegts = true;
return isMpegts;
}
if (browserName == BrowserName.safari) {
if (userAgent.contains("Chrome")) {
isMpegts = false;
} else {
isMpegts = true;
}
} else {
isMpegts = false;
}
} else if (Platform.isIOS) {
isMpegts = true;
} else {
isMpegts = false;
}
return isMpegts;
}