Videogular – How to change video to fullscreen when switching to landscape mode

I want to view the video in fullscreen mode when I change to landscape mode on my mobile device.

I know there is a method API.toggleFullScreen() but it’s not working.
Instead I get the following error message in console:
“Failed to execute ‘requestFullscreen’ on ‘Element’: API can only be initiated by a user gesture.”

Anybody also faced this issue?

Thanks

Source: AngularJS