TUIPusher
and TUIPlayer
are our web-based open-source components for interactive live streaming (UI included). You can use them together with our basic SDKs such as TRTC and Chat to quickly equip your live streaming applications (corporate live streaming, live shopping, vocational training, remote teaching, etc.) with web-based publishing and playback capabilities.TUIPusher
and TUIPlayer
at the same time. TUIPusher
featuresTUIPlayer
featuresTUIPusher
and TUIPlayer
are based on TRTC and Chat. Make sure you use the same SDKAppID
for your TRTC and Chat applications so that they can share your account and authentication information.UserSig
calculation is for development and local debugging only and not for official launch. The correct UserSig
distribution method is to integrate the calculation code of UserSig
into your server and provide an application-oriented API. When UserSig
is needed, your application can send a request to your server for a dynamic UserSig
. For more information, see Generating UserSig.SDKAppID
.
SDKAppID
, creation time, and expiration time of the application created. Note down the SDKAppID
.TUIPusher
and TUIPlayer
at GitHub.TUIPusher
and TUIPlayer
.cd Web/TUIPushernpm installcd Web/TUIPlayernpm install
SDKAppID
and the secret key to the specified locations below in the TUIPusher/src/config/basic-info-config.js
and TUIPlayer/src/config/basic-info-config.js
files.TUIPusher
and TUIPlayer
in a local development environment.cd Web/TUIPushernpm run servecd Web/TUIPlayernpm run serve
http://localhost:8080
and http://localhost:8081
to try out the features of TUIPusher
and TUIPlayer
.TUIPusher/src/config/basic-info-config.js
and TUIPlayer/src/config/basic-info-config.js
, but make sure the room and anchor information is consistent in the two files.TUIPusher
and TUIPlayer
for ultra-low-latency live streaming. If you want to support high-speed and standard live streaming too, see Step 3. Enable relay to CDN.UserSig
is for development and local debugging only and not for official launch. If your SECRETKEY
is leaked, attackers will be able to steal your Tencent Cloud traffic.UserSig
distribution method is to integrate the calculation code of UserSig
into your server and provide an application-oriented API. When UserSig
is needed, your application can send a request to your server for a dynamic UserSig
. For more information, see Calculating UserSig on the server.TUIPusher
and TUIPlayer
are powered by CSS, you need to enable relay to CDN to use these features.TUIPlayer/src/config/basic-info-config.js
.TUIPusher
and TUIPlayer
, including ultra-low-latency live streaming, high-speed live streaming, and standard live streaming.TUIPusher
and TUIPlayer
to a production environment, in addition to integrating them into your project, you also need to do the following:UserSig
on your serverUserSig
is generated on the client based on the SDKAppID
and secret key you provide. The secret key may be easily decompiled and reversed, and if your key is disclosed, attackers will be able to steal your traffic. Therefore, this method is for local debugging only.UserSig
distribution method is to integrate the calculation code of UserSig
into your server and provide an application-oriented API. When UserSig
is needed, your application can send a request to your server for a dynamic UserSig
. For more information, see How do I calculate UserSig during production?.SDKAppID
, and UserSig
to store
of vuex
for global storage, as shown in TUIPusher/src/pusher.vue
and TUIPlayer/src/player.vue
. Then you will be able to use all publishing and playback features of the two components. The diagram below shows the workflow in detail:
userDefineRecordId
when calling the TRTC.createClient API.Operating System | Browser | Required Version | TUIPlayer | TUIPusher | TUIPusher Screen Sharing |
macOS | Safari | 11+ | Supported | Supported | Supported (on Safari 13+) |
macOS | Chrome | 56+ | Supported | Supported | Supported (on Chrome 72+) |
macOS | Firefox | 56+ | Supported | Supported | Supported (on Firefox 66+) |
macOS | Edge | 80+ | Supported | Supported | Supported |
macOS | WeChat built-in browser | - | Supported | Not supported | Not supported |
macOS | WeCom built-in browser | - | Supported | Not supported | Not supported |
Windows | Chrome | 56+ | Supported | Supported | Supported (on Chrome 72+) |
Windows | QQ Browser (WebKit core) | 10.4+ | Supported | Supported | Not supported |
Windows | Firefox | 56+ | Supported | Supported | Supported (on Firefox 66+) |
Windows | Edge | 80+ | Supported | Supported | Supported |
Windows | WeChat built-in browser | - | Supported | Not supported | Not supported |
Windows | WeCom built-in browser | - | Supported | Not supported | Not supported |
iOS | WeChat built-in browser | - | Supported | Not supported | Not supported |
iOS | WeCom built-in browser | - | Supported | Not supported | Not supported |
iOS | Safari | - | Supported | Not supported | Not supported |
iOS | Chrome | - | Supported | Not supported | Not supported |
Android | WeChat built-in browser | - | Supported | Not supported | Not supported |
Android | WeCom built-in browser | - | Supported | Not supported | Not supported |
Android | Chrome | - | Supported | Not supported | Not supported |
Android | QQ Browser | - | Supported | Not supported | Not supported |
Android | Firefox | - | Supported | Not supported | Not supported |
Android | UC Browser | - | Supported (only standard live streaming) | Not supported | Not supported |
TUIPusher
and TUIPlayer
. Therefore, please use the HTTPS protocol for the web page of your application in production environments.http://localhost
for local development.Scenario | Protocol | TUIPlayer | TUIPusher | TUIPusher Screen Sharing | Remarks |
Production | HTTPS | Supported | Supported | Supported | Recommended |
Production | HTTP | Supported | Not supported | Not supported | - |
Local development | http://localhost | Supported | Supported | Supported | Recommended |
Development | http://127.0.0.1 | Supported | Supported | Supported | - |
Local development | http://[local IP address] | Supported | Not supported | Not supported | - |
Was this page helpful?