File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
flutter_vlc_player/ios/Classes Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ public class VLCViewBuilder: NSObject, VlcPlayerApi{
55 var players = [ Int: VLCViewController] ( )
66 private var registrar : FlutterPluginRegistrar
77 private var messenger : FlutterBinaryMessenger
8+ private var options : [ String ]
89
910 init ( registrar: FlutterPluginRegistrar ) {
1011 self . registrar = registrar
1112 self . messenger = registrar. messenger ( )
13+ options = [ ]
1214 super. init ( )
1315 //
1416 VlcPlayerApiSetup ( messenger, self )
@@ -55,12 +57,14 @@ public class VLCViewBuilder: NSObject, VlcPlayerApi{
5557 isAssetUrl = false
5658 }
5759
60+ options = input. options as? [ String ] ?? [ ]
61+
5862 player? . setMediaPlayerUrl (
5963 uri: mediaUrl,
6064 isAssetUrl: isAssetUrl,
6165 autoPlay: input. autoPlay? . boolValue ?? true ,
6266 hwAcc: input. hwAcc? . intValue ?? HWAccellerationType . HW_ACCELERATION_AUTOMATIC. rawValue,
63- options: input . options as? [ String ] ?? [ ]
67+ options: options
6468 )
6569 }
6670
@@ -97,7 +101,7 @@ public class VLCViewBuilder: NSObject, VlcPlayerApi{
97101 isAssetUrl: isAssetUrl,
98102 autoPlay: input. autoPlay? . boolValue ?? true ,
99103 hwAcc: input. hwAcc? . intValue ?? HWAccellerationType . HW_ACCELERATION_AUTOMATIC. rawValue,
100- options: [ ]
104+ options: options
101105 )
102106 }
103107
You can’t perform that action at this time.
0 commit comments