Registry / devops / reflex-components-react-player

reflex-components-react-player

JSON →
library0.9.1pypypi✓ verified 88d ago

A Reflex component wrapping react-player for embedding video/audio from YouTube, Vimeo, SoundCloud, etc. Current version 0.9.1, compatible with Reflex >=0.5.0. Released periodically.

pip install reflex-components-react-player
INSTALL
IMPORT
SIG · REFLEX-COMPONENTS-
R
reflex-components-react-player
devopspythonv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReactPlayer
✓ from reflex_components_react_player import react_player
✗ from reflex_components import ReactPlayer
Package exports as a module, not a class. Correct import path includes the package name.

Minimal Reflex app using react-player.

import reflex as rx from reflex_components_react_player import react_player class State(rx.State): pass def index() -> rx.Component: return rx.container( react_player(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ", playing=True, controls=True) ) app = rx.App() app.add_page(index)
Debug
Known issues
gotchaThe component's import is 'react_player' (lowercase, underscore) not 'ReactPlayer'. Many users mistakenly try to import a class named ReactPlayer.
fix
Use: from reflex_components_react_player import react_player
affects: all
breakingReflex 0.5.0 introduced breaking changes to component API. This package requires Reflex >=0.5.0. Older Reflex versions will not work.
fix
Upgrade Reflex to >=0.5.0
affects: <0.5.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'reflex_components_react_player'
Package not installed or installed in wrong environment.
fix
Run: pip install reflex-components-react-player
ImportError: cannot import name 'ReactPlayer' from 'reflex_components_react_player'
Incorrect import of a class name instead of the module.
fix
Change import to: from reflex_components_react_player import react_player
Upgrade
Version history
0.9.1latest on PyPI · released Apr 27, 2026
Audit
Dependencies
reflexrequiredPeer dependency, requires Reflex framework
Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

reflex-components-react-player — pip install reflex-components-react-player · libregistry