Skip to content
Advertisement

Videogular 2 onChangeFullscreen event

I need to know how do I use the VgFullscreenAPI. The official documentation doesn’t help.

This is what I have:

JavaScript

I have tried using the output event emitter (onChangeFullscreen) on vg-plater, vg-fullscreen, and video tags.

Documentation

Advertisement

Answer

The event is provided by the VgFullscreenAPI service inside VgPlayer, you can access it like this inside your component class:

JavaScript

Don’t really know why they made it an EventEmitter inside the service. Doesn’t seem like they really understand the new angular version yet 🙂

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement