Media: video, audio, files
meya.video
Outputs an inline video of the video specified in the url. Renders as a playable video.
Property | Description | |
---|---|---|
url | the url of the video to play | Required |
Example: A video card defined in the flow definition and called from a custom component.
component: meya.video
properties:
url: "https://s3.amazonaws.com/meya-static/aurora-borealis.mp4"
from meya.cards import Video
video_card = Video(url="https://s3.amazonaws.com/meya-static/aurora-borealis.mp4")
meya.audio
Outputs an inline audio clip of the audio specified in the url. Renders as a playable audio clip.
Property | Description | |
---|---|---|
url | the url of the audio to play | Required |
Example: An audio card defined in the flow definition and called from a custom component.
component: meya.audio
properties:
url: "https://s3.amazonaws.com/meya-static/rooster.mp3"
from meya.cards import Audio
audio_card = Audio(url="https://s3.amazonaws.com/meya-static/rooster.mp3")
meya.file
Outputs a message with a clickable downloadable file link with the file specified from the url.
Property | Description | |
---|---|---|
url | the url of the file | Required |
Example: A file card defined in the flow definition and called from a custom component.
component: meya.file
properties:
url: "https://s3.amazonaws.com/meya-static/roosters.pdf"
from meya.cards import File
file_card = File(url="https://s3.amazonaws.com/meya-static/roosters.pdf")
Updated over 6 years ago