feat: VideoPlayer supports controls:false to hide built-in toolbar
This commit is contained in:
parent
761dcb4d6b
commit
bc0bd60e09
@ -60,7 +60,7 @@ struct VideoPlayerControl: View {
|
|||||||
func makeNSView(context: Context) -> NSView {
|
func makeNSView(context: Context) -> NSView {
|
||||||
let view = AVPlayerView()
|
let view = AVPlayerView()
|
||||||
view.player = player
|
view.player = player
|
||||||
view.controlsStyle = .default
|
view.controlsStyle = schema.options.controls == false ? .none : .default
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user