--- title: Media elements slug: /develop/api-reference/media --- # Media elements It's easy to embed images, videos, and audio files directly into your Streamlit apps. screenshot

Image

Display an image or list of images. ```python st.image(numpy_array) st.image(image_bytes) st.image(file) st.image("https://example.com/myimage.jpg") ```
screenshot

Audio

Display an audio player. ```python st.audio(numpy_array) st.audio(audio_bytes) st.audio(file) st.audio("https://example.com/myaudio.mp3", format="audio/mp3") ```
screenshot

Video

Display a video player. ```python st.video(numpy_array) st.video(video_bytes) st.video(file) st.video("https://example.com/myvideo.mp4", format="video/mp4") ```
screenshot

Streamlit Webrtc

Handling and transmitting real-time video/audio streams with Streamlit. Created by [@whitphx](https://github.com/whitphx). ```python from streamlit_webrtc import webrtc_streamer webrtc_streamer(key="sample") ```
screenshot

Drawable Canvas

Provides a sketching canvas using [Fabric.js](http://fabricjs.com/). Created by [@andfanilo](https://github.com/andfanilo). ```python from streamlit_drawable_canvas import st_canvas st_canvas(fill_color="rgba(255, 165, 0, 0.3)", stroke_width=stroke_width, stroke_color=stroke_color, background_color=bg_color, background_image=Image.open(bg_image) if bg_image else None, update_streamlit=realtime_update, height=150, drawing_mode=drawing_mode, point_display_radius=point_display_radius if drawing_mode == 'point' else 0, key="canvas",) ```
screenshot

Image Comparison

Compare images with a slider using [JuxtaposeJS](https://juxtapose.knightlab.com/). Created by [@fcakyon](https://github.com/fcakyon). ```python from streamlit_image_comparison import image_comparison image_comparison(img1="image1.jpg", img2="image2.jpg",) ```
screenshot

Streamlit Cropper

A simple image cropper for Streamlit. Created by [@turner-anderson](https://github.com/turner-anderson). ```python from streamlit_cropper import st_cropper st_cropper(img, realtime_update=realtime_update, box_color=box_color, aspect_ratio=aspect_ratio) ```
screenshot

Image Coordinates

Get the coordinates of clicks on an image. Created by [@blackary](https://github.com/blackary/). ```python from streamlit_image_coordinates import streamlit_image_coordinates streamlit_image_coordinates("https://placekitten.com/200/300") ```
screenshot

Streamlit Lottie

Integrate [Lottie](https://lottiefiles.com/) animations inside your Streamlit app. Created by [@andfanilo](https://github.com/andfanilo). ```python lottie_hello = load_lottieurl("https://assets5.lottiefiles.com/packages/lf20_V9t630.json") st_lottie(lottie_hello, key="hello") ```