Demo for using OBS WHIP to publish a stream to the TRTC(Tencent Real-Time Communication) service.
OBS includes WHIP support, which allows you to do many interesting things by combining the powers of both OBS and WHIP.
WHIP is a standard protocol that lets you use HTML5 and different clients to publish and play live streams. Plus, you can use open-source tools to build your own live streaming platform.
You can also use TRTC (Tencent Real-Time Communication) cloud services with OBS WHIP support for a streaming platform. This is a great option if you don’t want to build your own platform or need a more reliable and stable platform with dedicated support.
Additionally, TRTC (Tencent Real-Time Communication) provides a free trial that includes a specific amount of streaming time, making it super easy for you to try out.
If you need help or run into any problems, don’t hesitate to contact us on Discord.
Before you move forward, double-check that you’ve got these necessary items ready:
Note: Currently, OBS WHIP has been merged into the master branch but has not been released yet. You can login GitHub and download OBS 30+ from here.
Next, you need to create a TRTC application and generate a Bearer Token for WHIP.
Please follow the steps below to create a TRTC application:
After the application is created, you can view the SDKAppID and SDKSecretKey on the application details page.
2000xxxx
yyyyyy
Following that, you must generate a Bearer Token for WHIP, which will be utilized in OBS.
You can directly visit https://tencent-rtc.github.io/obs-trtc/bearer.html
to create a WHIP Bearer Token. Ensure that use the appid with your own SDKAppID
and
secret with your own SDKSecretKey
, then click the Generate Bearer Token
button.
Note: You can also access the url
https://tencent-rtc.github.io/obs-trtc/bearer.html?appid=2000xxx&secret=yyyyyy
to setup the parameters.
Next, use the generated WHIP Bearer Token to configure OBS.
In the OBS WHIP
section, you will find the generated WHIP Server
and Bearer Token
for configuring OBS.
Please follow the steps below to configure OBS:
WHIP
for Service.Server
and Bearer Token
accurately.At this point, the stream is streaming to the TRTC service.
Open the previous webpage, go to the WHEP Player
section,
and click Play Stream to play the stream via WHEP.
Another option is go to the TRTC Room
section, and click Join Room to access the TRTC room
and watch the stream via TRTC, or you can utilize the TRTC mobile SDK to join the room and view
the stream.
Since both WHIP and WHEP are standard protocols, you can utilize any client that supmv ports them to play the stream.
We looked into using TRTC (Tencent Real-Time Communication) cloud services to make a stronger streaming platform and the steps needed to create a TRTC app with OBS WHIP. These tools make it easier to provide real-time live streaming experiences for different situations, with the power of OBS.
If you require assistance or encounter any difficulties, please feel free to reach out to us via Discord.
In the future, we will further investigate specific use cases and technologies associated with OBS WHIP and TRTC integration.
We deploy this tool on the server https://tencent-rtc.github.io/obs-trtc/bearer.html for your convenience.
Alternatively, you can operate your own server to produce the token by utilizing the following command line to generate a WHIP Bearer Token.
git clone https://github.com/Tencent-RTC/obs-trtc.git
cd obs-trtc
open index.html
The other steps are the same as the previous section.
If you want to configur1e OBS in real-time mode, please follow the steps below:
Advanced
for Output Mode.1 s
.veryfast
for CPU Usage Preset.baseline
for Profile.zerolatency
for Tune.The other steps are the same as the previous section.
If you need to create a Bearer Token in a real-world setting, check out the UserSig link for more information.
If you require assistance or encounter any difficulties, please feel free to reach out to us via Discord.