mirror of
https://github.com/alfg/ffmpegd.git
synced 2025-09-26 19:41:15 +08:00
chore: update readme.
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
[](https://goreportcard.com/report/github.com/alfg/ffmpegd)
|
[](https://goreportcard.com/report/github.com/alfg/ffmpegd)
|
||||||
[](https://hub.docker.com/r/alfg/ffmpegd/)
|
[](https://hub.docker.com/r/alfg/ffmpegd/)
|
||||||
[](https://hub.docker.com/r/alfg/ffmpegd/builds/)
|
[](https://hub.docker.com/r/alfg/ffmpegd/builds/)
|
||||||
|
[](https://github.com/alfg/ffmpegd/actions/workflows/docker.yml)
|
||||||
|
[](https://github.com/alfg/ffmpegd/actions/workflows/release.yml)
|
||||||
|
|
||||||
## How It Works
|
## How It Works
|
||||||
`ffmpegd` connects [FFmpeg Commander](https://alfg.github.io/ffmpeg-commander) to [ffmpeg](https://www.ffmpeg.org/) by providing a websocket server to send encode tasks and receive realtime progress updates back to the browser. This allows using `ffmpeg-commander` as a GUI for `ffmpeg`.
|
`ffmpegd` connects [FFmpeg Commander](https://alfg.github.io/ffmpeg-commander) to [ffmpeg](https://www.ffmpeg.org/) by providing a websocket server to send encode tasks and receive realtime progress updates back to the browser. This allows using `ffmpeg-commander` as a GUI for `ffmpeg`.
|
||||||
|
@@ -1,5 +1,9 @@
|
|||||||
# WebSocket Client Demo
|
# WebSocket Client Demo
|
||||||
To run this demo, start `ffmpegd` and load `http://localhost:8080/demo` in your browser.
|
To run this demo, build and start `ffmpegd` and load `http://localhost:8080/demo` in your browser.
|
||||||
|
|
||||||
|
```
|
||||||
|
go build -v && ./ffmpegd
|
||||||
|
```
|
||||||
|
|
||||||
http://localhost:8080/demo/
|
http://localhost:8080/demo/
|
||||||
|
|
||||||
|
@@ -101,7 +101,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onMessage(evt) {
|
function onMessage(evt) {
|
||||||
writeToScreen('<span style="color: blue;">RESPONSE: ' + evt.data+'</span>');
|
writeToScreen('<span style="color: blue;">RESPONSE: ' + evt.data + '</span>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function onError(evt) {
|
function onError(evt) {
|
||||||
|
Reference in New Issue
Block a user