IFrame embedding, possibility to only stream audio?

Hello

version: 5.2.780

I am using WebCallServer 5 (hosted on AWS) to embed a live-stream onto a website using an iframe.


I was wondering if there is the ability to tell the iframe to only use audio streaming and doesn't display the video stream?



Best,
Thomas
 

Max

Administrator
Staff member
Good day.
You can play audio only using the following constraints while creating a stream to play
Code:
function playStream(session) {
    var options = {
        name: streamName,
        display: remoteVideo,
        flashShowFullScreenButton: true,
        constraints: {
               video: false,
               audio: true
        }
    };
    ...
    stream = session.createStream(options).on(STREAM_STATUS.PENDING, function(stream) {
    ...
    });
    stream.play();
So you should modify Embed Player or Player code.
 
Top