Skip to content

Commit 9e77817

Browse files
committed
ran format command
1 parent 5f1564b commit 9e77817

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,13 @@ - (FLTTextureMessage *)create:(FLTCreateMessage *)input error:(FlutterError **)e
621621
assetPath = [_registrar lookupKeyForAsset:input.asset];
622622
}
623623
@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;
632631
}
633632
} else if (input.uri) {
634633
player = [[FLTVideoPlayer alloc] initWithURL:[NSURL URLWithString:input.uri]

0 commit comments

Comments
 (0)