Hi John,
The problem still reproduce with the new standalone publisher.
Now it happens if I only create the publisher, without connecting to any subscriber or even no session.
It happens on both firefox and chrome (at least). The trick: you have to create some noise, and you'll hear the feedback...
Since I don't subscribe now, why do I hear this sound?!
This is my publisher creation code:
- Code: Select all
var my = {
publisher: null
}
var newDiv = document.createElement("div");
newDiv.id = "publisher";
document.getElementById("myCam").appendChild(newDiv);
var publish_properties = {
publishAudio : true,
microphoneEnabled : true,
microphoneGain : 100,
publishVideo : true,
mirror : true,
// How my video looks.
width: Drupal.settings.open_tok.my.width,
height: Drupal.settings.open_tok.my.height,
// The resolution of the remote video.
encodedWidth : 320, // 1..640
encodedHeight : 240, // 1..640
wmode : "opaque", // Needed for Faceboook integration
style: {
backgroundImageURI: Drupal.settings.open_tok.my.background_img
}
};
if (true == is_reg) // FIXME - this is a patch due to opentok's bug. When calling session.disconnect, it also kills the publisher.
setState(3);
my.publisher = TB.initPublisher(Drupal.settings.open_tok.api_key, newDiv.id, publish_properties);
if (true == is_reg) {// FIXME - this is a patch due to opentok's bug. When calling session.disconnect, it also kills the publisher.
my.publisher.addEventListener("accessDialogOpened", accessDialogOpenedHandler);
my.publisher.addEventListener("accessDialogClosed", accessDialogClosedHandler);
my.publisher.addEventListener("accessDenied", accessDeniedHandler);
my.publisher.addEventListener("accessAllowed", accessAllowedHandler);
function accessAllowedHandler(event) {
setTimeout('detectDevices()', 2*1000);
}
function detectDevices() {
my.publisher.addEventListener("deviceInactive", deviceDeviceTestInactiveHandler);
my.publisher.addEventListener("devicesDetected", devicesDetectedHandler);
my.publisher.detectDevices();
}