File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
packages/video_player/video_player_avfoundation/ios/Classes Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -621,14 +621,13 @@ - (FLTTextureMessage *)create:(FLTCreateMessage *)input error:(FlutterError **)e
621
621
assetPath = [_registrar lookupKeyForAsset: input.asset];
622
622
}
623
623
@try {
624
- player = [[FLTVideoPlayer alloc ] initWithAsset: assetPath
625
- frameUpdater: frameUpdater
626
- playerFactory: _playerFactory];
627
- return [self onPlayerSetup: player frameUpdater: frameUpdater];
628
- }
629
- @catch (NSException *exception) {
630
- *error = [FlutterError errorWithCode: @" video_player" message: exception.reason details: nil ];
631
- return nil ;
624
+ player = [[FLTVideoPlayer alloc ] initWithAsset: assetPath
625
+ frameUpdater: frameUpdater
626
+ playerFactory: _playerFactory];
627
+ return [self onPlayerSetup: player frameUpdater: frameUpdater];
628
+ } @catch (NSException *exception) {
629
+ *error = [FlutterError errorWithCode: @" video_player" message: exception.reason details: nil ];
630
+ return nil ;
632
631
}
633
632
} else if (input.uri ) {
634
633
player = [[FLTVideoPlayer alloc ] initWithURL: [NSURL URLWithString: input.uri]
You can’t perform that action at this time.
0 commit comments