Module mod_audio

Audio support for Zotonic.

Copyright © 2020 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Audio support for Zotonic.

Function Index

audio_info/1
observe_media_upload_props/3Set medium properties from the uploaded file.
observe_media_upload_rsc_props/3Set resource properties from the medium properties.
observe_media_viewer/2Return the media viewer for the audio.

Function Details

audio_info/1

audio_info(Path) -> any()

observe_media_upload_props/3

observe_media_upload_props(Media_upload_props, Medium, Context) -> any()

Set medium properties from the uploaded file.

observe_media_upload_rsc_props/3

observe_media_upload_rsc_props(Media_upload_rsc_props, Props, Context) -> any()

Set resource properties from the medium properties

observe_media_viewer/2

observe_media_viewer(Media_viewer::#media_viewer{}, Context::z:context()) -> undefined | {ok, template_compiler:render_result()}

Return the media viewer for the audio


Generated by EDoc