andreipitis / ASPVideoPlayer

A simple video player that allow animations to be performed on the view during playback.
MIT License
89 stars 43 forks source link

Resize Button Is Outside of View #52

Closed stephendanielxxx closed 4 years ago

stephendanielxxx commented 4 years ago

Hi thank your for sharing this wonderful library, I tried your library to show video from URL and working great, the only problem is the Fullscreen button is always located outside of the view so I can't clicked it . So is possible to fix the Fullscreen button position? My view looked like this

Resize Button Outside
andreipitis commented 4 years ago

Hi @stephendanielxxx ,

This is a bug, the button should not be visible in this case. I fixed this in the latest release, but you can also fix it by setting videoPlayer.clipsToBounds = true. The resize button should only be visible if you set the resizeClosure on the video player. Here is an example implementation of the resizing.

stephendanielxxx commented 4 years ago

Thank you very much for the information, I will try the solution 👍 :)