Hi, after update to v.0.5.28.2753-5.2.133 of WCS, It stopped working.
I found on Javascript that stream.getRecordInfo() returns undefined on publishLocalMedia function.
Before update the version, was working fine.
I need to get strem file name on this point.
Can you help me?
//publish local video
function publishLocalMedia(room) {
var constraints = {
audio: true,
video: true
};
var display = document.getElementById("localDisplay");
if (Browser.isSafariWebRTC()) {
Flashphoner.playFirstVideo(display, true);
}
room.publish({
display: display,
constraints: constraints,
record: true,
receiveVideo: false,
receiveAudio: false
}).on(STREAM_STATUS.FAILED, function (stream) {
console.warn("Local stream failed!");
setStatus("#localStatus", stream.status());
onMediaStopped(room);
}).on(STREAM_STATUS.PUBLISHING, function (stream) {
setStatus("#localStatus", stream.status());
onMediaPublished(stream);
var filename = stream.getRecordInfo();
alert(filename );
// my function continues here...
}).on(STREAM_STATUS.UNPUBLISHED, function(stream) {
setStatus("#localStatus", stream.status());
onMediaStopped(room);
});
}
I found on Javascript that stream.getRecordInfo() returns undefined on publishLocalMedia function.
Before update the version, was working fine.
I need to get strem file name on this point.
Can you help me?
//publish local video
function publishLocalMedia(room) {
var constraints = {
audio: true,
video: true
};
var display = document.getElementById("localDisplay");
if (Browser.isSafariWebRTC()) {
Flashphoner.playFirstVideo(display, true);
}
room.publish({
display: display,
constraints: constraints,
record: true,
receiveVideo: false,
receiveAudio: false
}).on(STREAM_STATUS.FAILED, function (stream) {
console.warn("Local stream failed!");
setStatus("#localStatus", stream.status());
onMediaStopped(room);
}).on(STREAM_STATUS.PUBLISHING, function (stream) {
setStatus("#localStatus", stream.status());
onMediaPublished(stream);
var filename = stream.getRecordInfo();
alert(filename );
// my function continues here...
}).on(STREAM_STATUS.UNPUBLISHED, function(stream) {
setStatus("#localStatus", stream.status());
onMediaStopped(room);
});
}