montpetit@gmail.com
|
My favorites
▼
|
Profile
|
Sign out
hangout-iframe-experiment
Experimental Hangout iframing
Project Home
Downloads
Wiki
Issues
Source
Repository:
default
wiki
Checkout
Browse
Changes
Clones
Source path:
hg
/
basicApp.html
Edit file
‹53848d0b1d1b
da38fe151d1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License
-->
<html>
<script src="//hangoutsapi.talkgadget.google.com/talkgadget/apps/gadgets/js/rpc.js"></script>
<script src="//hangoutsapi.talkgadget.google.com/hangouts/api/hangout.js?v=0.2"></script>
<div id="apiStatus"><p>No API Status</p></div>
<div id="participants"><p>No idea who is in this hangout</p></div>
<script>
var apiStatusDiv = document.getElementById("apiStatus");
var participantsDiv = document.getElementById("participants");
console.log("Setup stuff.")
function updateParticipants() {
try {
var retVal = "<ul>";
var participants = gapi.hangout.getParticipants();
for ( var index in participants ) {
var part = participants[index];
retVal += "<li>" + part.person.displayName + "</li>";
}
retVal += "</ul>"
participantsDiv.innerHTML = retVal;
}
catch (e) {
console.log( e );
}
}
function init() {
apiStatusDiv.innerHTML = "Init";
gapi.hangout.av.onVolumesChanged.add(function(eventObj) {
updateParticipants();
});
updateParticipants();
}
/** Called when jsclient has fully loaded; sets API key */
function onClientReady() {
init();
}
</script>
<script src="https://apis.google.com/js/client.js?onload=onClientReady"></script>
</html>
Show details
Hide details
Change log
172bb184c15f
by wo...@google.com on Feb 28, 2012
Diff
Update to v0.2
Go to:
/basicApp.html
Older revisions
53848d0b1d1b
by Daniel 'Wolff' Dobson <wo...@google.com> on Jan 27, 2012
Diff
Initial checkin
All revisions of this file
File info
Size: 1824 bytes, 71 lines
View raw file
Powered by
Google Project Hosting