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't play x-vlc format... #79

Closed
stakutis opened this issue Nov 21, 2017 · 6 comments
Closed

Can't play x-vlc format... #79

stakutis opened this issue Nov 21, 2017 · 6 comments

Comments

@stakutis
Copy link

Browsers don't seem to like that format now and it seems support has been removed from Chrome/others.

I can use the API to display a single image but I want to display live video/stream. How do I encode the html with that URI?

@agsh
Copy link
Owner

agsh commented Nov 28, 2017

Sure, you can use different solutions like Flussonic or Kurento.
Or maybe https://github.com/mpromonet/webrtc-streamer or https://github.com/agsh/rtsp-ffmpeg

@stakutis
Copy link
Author

stakutis commented Nov 28, 2017 via email

@hawkeye64
Copy link
Contributor

@stakutis Not sure if you've solved your situation yet. I have just added a getSnapshot() function into the media.js file which may help you. You can find the PR here: #81

@KDWangBoss
Copy link

KDWangBoss commented Nov 12, 2018

请问要怎么使用它呢?api里面写的是getSnapshotUri不是getSnapshot,参数具体定义是啥?

@Venryx
Copy link

Venryx commented Jun 17, 2020

I can confirm that using rtsp-ffmpeg works fine for playback in the browser.

Installation

Unlike webrtc-streamer, the only external/manual dependency it needs within your electron app or nodejs server, is the ffmpeg binaries -- though you could probably automate this as well by bundling it with your app's install.

Usage

My program is in electron, so my UI code is able to read the frame data returned by rtsp-ffmpeg directly, and then draw it to a canvas.

If you're instead using a regular webpage (ie. in Chrome) with a NodeJS backend, the approach used in the sample should work: https://github.com/agsh/rtsp-ffmpeg#sample

@chriswiggins
Copy link
Collaborator

Closing out old issue

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

6 participants