Video streaming blob URL

115 views
Skip to first unread message

antonio...@quobis.es

unread,
Mar 12, 2015, 10:47:19 AM3/12/15
to kur...@googlegroups.com
Hello there,

I'm not able to obtain the blob URL of a received media streaming from Kurento Media Server. I post the function to let you understand better:

webRtcPeer = kurentoUtils.WebRtcPeer.startRecvOnly(videoElement, onPlayOffer, onError);

with onPlayOffer:

function onPlayOffer(sdpOffer) {
    co(function * () {
        try {
            if (!client) client = yield kurentoClient(args.ws_uri);

            pipeline = yield client.create('MediaPipeline');
            var webRtc = yield pipeline.create('WebRtcEndpoint');
            var player = yield pipeline.create('PlayerEndpoint', { uri: args.file_uri});

            yield player.connect(webRtc);

            var sdpAnswer = yield webRtc.processOffer(sdpOffer);
            webRtcPeer.processSdpAnswer(sdpAnswer);

            yield player.play()

            player.on('EndOfStream', function() {
                stop();
            });

        } catch (e) { onError(e); }
    })();
}

The problem is that I need the blob URL of videoElement, but it doesn't work with URL.createObjectURL();

Can someone helps me?

thank you!

Reply all
Reply to author
Forward
0 new messages