Hi Shawn
I am testing the example, but the window video call don´t work. I try on IE 8 and Firefox 18.0.1
My friend heplp me to try, and he use the sample.html from the new sdk jabber for answer my call and neither can see the video.
how can fix it?
this is my complete code
-----------------------
<!DOCTYPE html>
<html>
<head>
<title>Cisco Jabber SDK Demo</title>
<style type="text/css">
body {
font-size: 12px;
}
div#callcontainer {
width:300px;
height:85px;
display:none;
background-color: #F0F8FF;
border:1px solid #aaaaaa;
}
div#callcontainer div.remotename {
float: left;
width: 300px;
height: 30px;
background-color: #D3D3D3;
}
div#callcontainer button.endbtn {
float: right;
}
div#message {
position: absolute;
right: 20px;
top:20px;
font-size: 35px;
color: #0066CC;
}
div#remotevideocontainer {
min-height: 273px;
min-width: 364px;
overflow: hidden;
background-color: #c0c0c0;
resize: both;
padding: 5px;
border: 1px solid #808080;
}
div#remotevideocontainer object {
min-height: 273px;
height: 100%;
width: 100%;
}
</style>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="cwic/cwic.js"></script>
<script src="ciscobase.js"></script>
<script type="text/javascript">
$(document.body).ready(function() {
var videoObj;
$('#container').cwic('init', {
ready: function() {
$('#remotevideocontainer').cwic('createVideoWindow',{
id: 'videoobject',
success: function(pluginid) {
alert("video ok");
//Video object has correctly loaded
videoObj = document.getElementById(pluginid);
}
});
$('#callcontainer').show();
$(this).cwic('registerPhone', {
user: 'user3',
cucm: '192.168.220.15',
password: '12345',
success: function() {
$('#callbtn').attr('disabled', false);
}
});
}
});
$('#callbtn').click(function() {
var num = $('#numtodial').val();
$('#container').cwic('startConversation', {
participant: { recipient: num },
videoDirection: 'SendRecv',
remoteVideoWindow: 'videoobject'
});
});
$('#container').bind('conversationStart.cwic', function(event, conversation) {
$('#callcontainer .remotename').text(conversation.participant.recipient);
$('#callcontainer').show();
$('#container').cwic('updateConversation', {
addRemoteVideoWindow: videoObj
});
});
$('#callcontainer .endbtn').click(function() {
$('#container').cwic('endConversation');
});
$('#container').bind('conversationEnd.cwic', function(event, conversation) {
$('#callcontainer').hide();
});
});
</script>
</head>
<body>
<label for="numtodial">Number to dial:</label>
<input type="text" id="numtodial">
<button type="button" id="callbtn" disabled="true">Make Call</button>
<div id="container">
<div id="callcontainer">
<div class="remotename"></div>
<button type="button" class="endbtn">End Call</button>
<div id="remotevideocontainer">
</div>
</div>
<div id="message">developer.cisco.com/web/jabber-developer/jabber</div>
</body>
</html>