TTVideoEngineVidSource.init constructor
TTVideoEngineVidSource.init({
- required String? vid,
- required String? playAuthToken,
- TTVideoEngineResolutionType? resolution,
- String? drmLicenseAuthToken,
- Uint8List? certData,
Implementation
factory TTVideoEngineVidSource.init(
{required String? vid, required String? playAuthToken, TTVideoEngineResolutionType? resolution,
String? drmLicenseAuthToken, Uint8List? certData}) {
if (vid == null || vid.isEmpty || playAuthToken == null || playAuthToken.isEmpty) {
throw Exception('vid/playAuthToken must be valid');
} else {
return TTVideoEngineVidSource(vid: vid, playAuthToken: playAuthToken, resolution: resolution, drmLicenseAuthToken: drmLicenseAuthToken, certData: certData);
}
}