Molybden API
Loading...
Searching...
No Matches
molybden::MediaEvents Class Reference

A class that contains all media events. More...

#include <media_events.hpp>

Inheritance diagram for molybden::MediaEvents:
molybden::Media

Public Attributes

Event< AudioStartedPlayingonAudioStartedPlaying
 Invoked when audio has been started playing on the web page.
 
Event< AudioStoppedPlayingonAudioStoppedPlaying
 Invoked when audio has been stopped playing on the web page.
 

Detailed Description

A class that contains all media events.

Member Data Documentation

◆ onAudioStartedPlaying

Event<AudioStartedPlaying> molybden::MediaEvents::onAudioStartedPlaying

Invoked when audio has been started playing on the web page.

Use the following approach to subscribe to receiving the event:

media->onAudioStartedPlaying += [](const AudioStartedPlaying& event) {};
The MediaEvents::onAudioStartedPlaying event arguments.
Definition media_events.hpp:19

◆ onAudioStoppedPlaying

Event<AudioStoppedPlaying> molybden::MediaEvents::onAudioStoppedPlaying

Invoked when audio has been stopped playing on the web page.

Use the following approach to subscribe to receiving the event:

media->onAudioStoppedPlaying += [](const AudioStoppedPlaying& event) {};
The MediaEvents::onAudioStoppedPlaying event arguments.
Definition media_events.hpp:29

The documentation for this class was generated from the following file: