Dani
Member
I have this function but when it fails - it doesn't reach the first console.log and I can't tell why it's failing.
how can I debug this ?
session = Flashphoner.getSessions()[0];
session.createStream(optionsStreamVid).on(STREAM_STATUS.PUBLISHING, function (streamOutV) {
streamOutVid = streamOutV;
console.log("PUBLISHING streamingVideo - streamOutVidName show: " + streamOutName);
mediaSessionId = streamOutV.id();
console.log("mediaSessionId: " + mediaSessionId);
}).
on(STREAM_STATUS.UNPUBLISHED, function () {
console.log("UNPUBLISHED startStreaming");
}).on(STREAM_STATUS.FAILED, function () {
console.log("FAILED startStreaming ");
}).publish();
how can I debug this ?
session = Flashphoner.getSessions()[0];
session.createStream(optionsStreamVid).on(STREAM_STATUS.PUBLISHING, function (streamOutV) {
streamOutVid = streamOutV;
console.log("PUBLISHING streamingVideo - streamOutVidName show: " + streamOutName);
mediaSessionId = streamOutV.id();
console.log("mediaSessionId: " + mediaSessionId);
}).
on(STREAM_STATUS.UNPUBLISHED, function () {
console.log("UNPUBLISHED startStreaming");
}).on(STREAM_STATUS.FAILED, function () {
console.log("FAILED startStreaming ");
}).publish();