8e60b76530
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2632 af16638f-c34d-0410-8cfa-b39d5352b314
63 lines
2.5 KiB
HTML
63 lines
2.5 KiB
HTML
<html>
|
|
<head>
|
|
<script type="text/javascript" src="/bigbluebutton/js/jquery-1.3.1.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
// alert("Hello world! ");
|
|
$.get("/bigbluebutton/api/conference/create.json", { id: "85115"},
|
|
function(data){
|
|
// alert("Data Loaded: " + data.voiceBridge + " " + data.moderatorToken + " " + data.viewerToken);
|
|
|
|
$("div:first").text(data.moderatorToken);
|
|
$("div:last").text(data.viewerToken);
|
|
$("input:first").val(data.moderatorToken);
|
|
$("input:last").val(data.viewerToken);
|
|
}, "json"
|
|
);
|
|
});
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>BigBlueButton Demo API Page</h1>
|
|
<form action="/bigbluebutton/api/conference/join.html" method="get">
|
|
<!-- IMPORTANT: Make this input the first one as script above relies on it's position to assign the moderatorToken value -->
|
|
<input type="hidden" name="authToken" value="" />
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>Enter your name:</td>
|
|
<td><input type="text" name="fullname" value="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td />
|
|
<td><input type="submit" value="Join as moderator" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
<form action="/bigbluebutton/api/conference/join.html" method="get">
|
|
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>Enter your name:</td>
|
|
<td><input type="text" name="fullname" value="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td />
|
|
<td><input type="submit" value="Join as viewer" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<!-- IMPORTANT: Make this input the last one as script above relies on it's position to assign the viewerToken value -->
|
|
<input type="hidden" name="authToken" value="" />
|
|
</form>
|
|
moderatorToken:<div></div>
|
|
viewerToken:<div></div>
|
|
<p />
|
|
The above tokens were created using a request to /bigbluebutton/api/conference/create.json?id=85115.
|
|
</body>
|
|
</html>
|