cameranames not working

8 views
Skip to first unread message

kevin beovides

unread,
May 8, 2015, 4:38:51 PM5/8/15
to myproje...@googlegroups.com
Hi,

I'm implementing a video-chat. For some reason the cameraNames property is returning null. Please help.

function onCreationComplete(event) {
var obj = getFlashMovie(event.objectID);
if (event.objectID == "video0") {
obj.setProperty('src', 'rtmp://myliveres.com/rtmp/rtmplite?play=<?php if ($users[0] == $user->id) { echo $users[1]."_".$file_time; } else { echo $users[0]."_".$file_time; } ?>');
obj.setProperty('controls', true);
}
else {
obj.setProperty('src', 'rtmp://myliveres.com/rtmp/rtmplite?publish=<?php echo $user->id."_".$file_time; ?>&record=true&cameraQuality=90');
obj.setProperty('controls', false);
}
alert(getFlashMovie('video1').getProperty('cameraNames'));
};


best regards
kevin
Reply all
Reply to author
Forward
0 new messages