Audio only videos
Allows playback of audio-only streams. To fill the video area in the player’s playback view, the preview image defined in the video manifest’s metadata is used. The preview image is a mandatory element of the video manifest, so if it is not defined, the plugin will generate an exception.
To use this plugin you need to have the audio canvas plugin activated.
supported formats are those that the browser can play natively.
Configuration
Section titled “Configuration”To recognise audio-only videos, you need to activate the plugin in the settings.
{ "plugins": { ... "es.upv.paella.audioVideoFormat": { "enabled": true, "order": 3 }, ... }}If there is more than one stream type in a stream within the video manifest that is compatible with the current configuration, the plugin whose value in the order attribute is lower will be used. For more information, see the video format plugins documentation.
Video manifest format
Section titled “Video manifest format”{ ... "streams": [ { "sources": { "audio": [ { "src": "audio/file/url.mp3" } ] }, "role": "mainAudio", "content": "presenter", "canvas": ["audio"] } ]}- Due to the
paella-corespecifications, an audio-only stream must necessarily have themainAudiorole. Theroleproperty is not mandatory, but you should check the document about the Stream Provider to make sure that the stream will be chosen as the main audio stream. - For the same reason as the above, the video manifest can only contain one audio-only stream.
- The
contentof the stream can be any that match the video layout plugins configuration. - The canvas must be compatible with audio only streams. There is a predefined audio canvas in
paella-corethat can manageaudiocanvas, but you must be sure that it is enabled in the configuration. The default canvas used bypaella-coreis not compatible with audio only streams, so thecanvasproperty is mandatory in audio only streams.