BackgroundMediaPolicy

How a CefriumView reacts to the host lifecycle for INLINE MEDIA. The default (PAUSE_ON_STOP) is what most apps want: a video/audio inside the page stops when the host is backgrounded (HOME / recents) and resumes on return. Pick another policy -- or pass onHostLifecycle to CefriumView for full control -- if you need different behavior (e.g. a music player that keeps playing).

Entries

Link copied to clipboard

Pause media + hide page on ON_STOP (backgrounded); resume on ON_START. Default.

Link copied to clipboard

Pause already on ON_PAUSE (partially obscured, e.g. a dialog); resume on ON_RESUME.

Link copied to clipboard

Only mute audio on ON_STOP (media keeps decoding/advancing); unmute on ON_START.

Link copied to clipboard

Do nothing -- the host manages media itself (e.g. background audio playback).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.