Closed mikbuch closed 2 years ago
@kapsa :)
For example, given that you have an URI: https://letsmeet.no/test-edumeet-recorder
git clone https://github.com/edumeet/edumeet-recorder.git
cd edumeet-recorder
docker build -t edumeet-recorder .
docker run -v /tmp:/records --rm -it --network=host edumeet-recorder
curl
-i \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{"type":"uri", \
"data":{"encoder":"h264", \
"bitrate":6000, \
"uri":"https://letsmeet.no/test-edumeet-recorder?headless=true&displayName=recorder", \
"stream_uri":"","mode":"record"}}' \
-X POST http://127.0.0.1:34568/api/start
curl stop
to stop recording:
curl
-i \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{"id":1}' \
-X POST http://127.0.0.1:34568/api/stop
Notes:
headless=true
-- no need to stuck on the login/user/landing screen (temporary hack for eduMeet)Window 1:
➜ edumeet-recorder git:(cef) docker run -v /tmp:/records --rm -it --network=host edumeet-recorder
Listening for requests at: http://localhost:34568/api
Window 2:
➜ ~ curl \
-i \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{"type":"uri", \
"data":{"encoder":"h264", \
"bitrate":6000, \
"uri":"https://letsmeet.no/test-edumeet-recorder?headless=true&displayName=recorder", \
"stream_uri":"","mode":"record"}}' \
-X POST http://127.0.0.1:34568/api/start
curl: (7) Failed to connect to 127.0.0.1 port 34568: Connection refused
➜ ~
Do not mix bugs.
<-- a clear and concise summary of the bug. -->
<-- What did you expect to happen -->
<-- What actually happened -->
<-- please fill in exact steps which reproduce the bug on your system, for example: -->
command
<-- The reproducibility of the bug is Always/Intermittent/Only once after doing a very specific set of steps-->
<-- Any other information such as logs. Make use of
Please, add the complete instruction on how to run this example to the README?
And, what then? In a demo I saw a "recorder" user connected to the session. How to add link for the "recorder" / docker image?