livekit test scripts by ZYF
./run_livekit_server.sh
Refer to: https://github.com/livekit/cli
On macOS, you can install livekit-cli via homebrew:
brew install livekit-cli
./create_token_by_lkcli.sh
./create_room_by_lkcli.sh
./list_rooms_by_lkcli.sh
./delete_room_by_lkcli.sh
./join_room_and_publish_demo_by_lkcli.sh
- Install redis and start redis-server:
brew intall redis
bash redis-server
- Start livekit-server with support of redis and ingress, refer to: server-config.yaml and run
bash run_livekit_server.sh
- Install and run livekit-ingress:
- Install livekit-ingress, refer to: https://github.com/livekit/ingress
- Start ingress service:
bash ./run_ingress_service.sh
edit ingress-create-rtmp.json and then run:
./create_ingress_rtmp_by_lkcli.sh
edit ingress-create-whip.json and then run:
./create_ingress_whip_by_lkcli.sh
./list_ingress_by_lkcli.sh
results like:
+-----------------+-------------+---------+--------------+-----------------------------+-------------------+-------+
| INGRESSID | NAME | ROOM | STREAMKEY | URL | STATUS | ERROR |
+-----------------+-------------+---------+--------------+-----------------------------+-------------------+-------+
| IN_sHrVgLb57vk8 | my-ingress2 | my-room | w43uem8YewYJ | https://localhost:8080/whip | ENDPOINT_INACTIVE | |
| IN_3HoKaTLkPqVY | my-ingress | my-room | Ypf9Y7BZVGUK | rtmps://localhost:1935/live | ENDPOINT_INACTIVE | |
+-----------------+-------------+---------+--------------+-----------------------------+-------------------+-------+
./delete_ingress_by_lkcli.sh <INGRESSID>
With .flv format:
./ffmpeg_stream_flv_to_ingress.sh <STREAMKEY> <video_path>
pip install livekit-api livekit
git clone https://github.com/livekit/python-sdks livekit-python-sdks
./run_python_examples.sh livekit-python-sdks/examples/<xxx>.py