SvenTiigi / YouTubePlayerKit

A Swift Package to easily play YouTube videos 📺
https://sventiigi.github.io/YouTubePlayerKit/
MIT License
714 stars 64 forks source link

Is there any way to disable context menu? #62

Closed Cyantou closed 1 year ago

Cyantou commented 1 year ago

Is your feature request related to a problem?

When I do action long press on View. The context menu will be shown like this: context_menu

What solution would you like?

Is there any option to disable display of that menu?

What alternatives have you considered?

I tried to using .highPriorityGesture() on outside VStack. However, gesture still trigger on to YouTubePlayerView.

Any additional context?

No response

SvenTiigi commented 1 year ago

Hi @Cyantou,

This overlay is shown and controlled by the underlying YouTube iFrame JavaScript API. Sadly the YouTube iFrame JavaScript API doesn't provide a configuration parameter to disable this overlay menu when the user long presses the view.