🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

streamlit-cld-video-player

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-cld-video-player

Load and play videos hosted on Cloudinary using the player

0.1.0
PyPI
Maintainers
1

streamlit_cld_video_player

Embed Cloudinary's video player as a component in Streamlit applications.

Installation instructions

pip install streamlit_cld_video_player

Usage instructions

import streamlit as st

from streamlit_cld_video_player import cld_video_player

value = cld_video_player(
    cloud_name='demo', # your environment name on Cloudinary
    public_id='dog' # name of a video file on Cloudinary
)

st.write(value)

Detailed Usage

Upload widget is the tool used for embedding Cloudinary's Upload Widget into your application. The widget has quite a few customization parameters. This python module exposes the following options:

Video player widget is a tool used for embedding Cloudinary's Video Player widget into your applications. The widget has 4 types of configuration parameters listed on the Video Player API reference page. However, for this python implementation, we can configure the following parameters:

ParameterPurposeDefault Value
cloud_nameName of your Cloudinary product environmentNone. Required value
public_idName of your video.None. Required value
aiHighlightsGraphShow an AI-generated visual representation of the highlights of a videoFALSE
bigPlayButtonShow a larger central play button when the video is paused.FALSE
controlsDisplay the video player controlsTRUE
loopPerform standard HTML5 video looping.FALSE
mutedStart the video muted.TRUE
playsinlineRelevant for iOS only. Whether the video should be prevented from entering fullscreen mode automatically when playback begins.FALSE
fluidWhether to activate fluid layout mode, which dynamically adjusts the player size to fit its container or window.TRUE
showinfoDisplay the video information like the title and subtitle of the video. The values are provided with the parameters "title" and "subtitle"TRUE
showLogoShow a clickable logo within the player.TRUE
startAtTime at which to start the video playback.0
autoplayApply standard HTML5 autoplay.FALSE
autoplayModeThe autoplay mode to use for the player. Similar to the default HTML5 autoplay parameter, but with the addition of on-scroll support.on-scroll
pictureInPictureToggleShow the picture in picture toggle button.FALSE
titleTitle to be displayed for the videoNONE
subtitleSubtitle to be displayed for the videoNONE
skinUse the 'light' or 'dark' mode.dark'

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts