observe_media_viewer/2

Request to generate a HTML media viewer for a resource. The HTML data can not contain any Javascript, as it might be serialized. This could happen if the correct cookies are not yet set or if the media viewer is part of a direct DOM update.

Type:

first

Return:

{ok, Html} or undefined

#media_viewer{} properties:

  • id: unknown
  • props: z_media_identify:media_info()
  • filename: union
  • options: list

Edit on GitHub

Observed by

Modules

mod_audio

Adds support for viewing and handling audio medium items.

Modules

mod_video_embed

This module, if activated, checks the pasted URLs in the create media / page dialog of the admin. It will show an embed option for Youtube and Vimeo URLs. It…

Modules

mod_oembed

Makes media resources from embeddable URLs through the OEmbed protocol.

Modules

mod_video

Adds support for viewing and handling video medium items.