- Run
npm install
. - Edit
samplertcservice.js
. FindicsREST.API.init
, replace service ID, service key and REST server URL with the correct values. - Copy your SSL server certificate to cert/certificate.pfx.
- Run
initcert.js
to generate a keystore file which contains encrypted SSL server's passphase. - Run
node samplertcservice.js
to start conference sample. By default, it listens on port 3001(insecure) and 3004(secure). - Open a browser and navigate to http://hostname:3001/ or https://hostname:3004/.
public\scripts\quic.js
was added to create QUIC connections between client and server. After navigating to https://hostname:3004/quic.html?publish=false, the page automatically creates a SendStream
for publishing. It also listens to stream-added
message and creates new ReceiveStream
for subscribing. It doesn't subscribe streams published before joining. Please try to modify quic.js
if you want to try other QUIC features.
本工程基于OWT https://github.com/open-webrtc-toolkit/owt-server/releases/tag/v5.0.1 的示例程序修改