Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can streamlit-webrtc use rtsp camera? #1283

Open
Kerry678231 opened this issue Jun 16, 2023 · 1 comment
Open

can streamlit-webrtc use rtsp camera? #1283

Kerry678231 opened this issue Jun 16, 2023 · 1 comment

Comments

@Kerry678231
Copy link

can streamlit-webrtc use rtsp camera? and how to config it?

@whitphx
Copy link
Owner

whitphx commented Aug 18, 2023

Yes, this example may help:

"url": "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",

def create_player():
if "local_file_path" in media_file_info:
return MediaPlayer(str(media_file_info["local_file_path"]))
else:
return MediaPlayer(media_file_info["url"])

player_factory=create_player,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants