LimeLight

Home/LimeLight
LimeLight 2019-12-05T10:46:54+00:00

Hello World

// Define the RTC configuration var rtcConfig = { app: "limelightlive/sqwaq", host: "rts-edge-17.cdg.llnw.net", streamName: "sjpwebcam1_1800" }; // Define an RTCSubscriber used only for RTC playback // The subscriber uses the WebRTC configuration var rtcSubscriber = new llnwrtssdk.RTCSubscriber(); rtcSubscriber .init(rtcConfig) .then(function(subscriber) { // 'subscriber' is the WebRTC Subscriber instance. return subscriber.subscribe(); }) .then(function(subscriber) { // subscription is complete. // playback should begin immediately due to // declaration of 'autoplay' on the 'video' element. }) .catch(function(error) { // A fault occurred while trying to initialize and // playback the stream. console.error(error) });

 

// Define the RTC configuration var rtcConfig = { app: "limelightlive/sqwaq", host: "rts-edge-17.cdg.llnw.net", streamName: "sjpwebcam1_1800" }; // Define an RTCSubscriber used only for RTC playback // The subscriber uses the WebRTC configuration var rtcSubscriber = new llnwrtssdk.RTCSubscriber(); rtcSubscriber .init(rtcConfig) .then(function(subscriber) { // 'subscriber' is the WebRTC Subscriber instance. return subscriber.subscribe(); }) .then(function(subscriber) { // subscription is complete. // playback should begin immediately due to // declaration of 'autoplay' on the 'video' element. }) .catch(function(error) { // A fault occurred while trying to initialize and // playback the stream. console.error(error) });