GithubHelp home page GithubHelp logo

google-plus-hangout-samples's People

Contributors

chirags avatar mimming avatar wolffg avatar

Watchers

 avatar

google-plus-hangout-samples's Issues

simpleHangoutApp.xml uses old api

The simpleHangoutApp.xml sample uses the v1.0 api instead of the latest v1.2. I 
spent half an hour knocking my head against a brick wall wondering why 
getLocalParticipant() and getLocalParticipantId() weren't working. Fix is to 
just change 
https://hangoutsapi.talkgadget.google.com/hangouts/api/hangout.js?v=1.0 to 
https://hangoutsapi.talkgadget.google.com/hangouts/api/hangout.js?v=1.2

Original issue reported on code.google.com by blahblah676 on 11 Dec 2012 at 9:52

Patch for /simple-app/simpleHangoutApp.xml

<?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
-->
  <ModulePrefs title="Hangout Starter">
    <Require feature="rpc" />
    <Require feature="views" />
    <Require feature="locked-domain" />
  </ModulePrefs>
  <Content type="html"><![CDATA[     

<html>
<style type="text/css">
<!--
.button {
  border-radius: 3px;
  -moz-border-radius: 3px;
  background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
  background: -moz-linear-gradient(top, #fff, #ddd);  
  border: 1px solid #bbb;
}

.button:active {
  background: -webkit-gradient(linear, left top, left bottom, from(#aaa), 
to(#333)); 
  background: -moz-linear-gradient(bottom, #ddd, #aaa); }

-->
</style>
<body>

<script src="//plus.google.com/hangouts/_/api/v1/hangout.js"></script>

<h3>Simple Hangout App</h3>

<p>
<input class="button" type="button" value="Show participants!" 
id="showParticipants" 
    style="visibility:hidden;"
    onClick="showParticipants()"/>
</p>

<div id="participantsDiv"></div>

<hr>

<p><a href="http://developers.google.com/+/hangouts/getting-started">Read the 
docs</a> to learn more about developing hangouts!</a></p>

<script>
function showParticipants() {
  var participants = gapi.hangout.getParticipants();

  var retVal = '<p>Participants: </p><ul>';

  for (var index in participants) {
    var participant = participants[index];

    if (!participant.person) {
      retVal += '<li>A participant not running this app</li>';
    }
    retVal += '<li>' + participant.person.displayName + '</li>';
  }

  retVal += '</ul>';

  var div = document.getElementById('participantsDiv');

  div.innerHTML = retVal;
}

function init() {
  // When API is ready...                                                         
  gapi.hangout.onApiReady.add(
      function(eventObj) {
        if (eventObj.isApiReady) {
          document.getElementById('showParticipants')
            .style.visibility = 'visible';
        }
      });
}

// Wait for gadget to load.                                                     

gadgets.util.registerOnLoadHandler(init);
</script>
</body>
]]>
</Content>
</Module>

Original issue reported on code.google.com by arifkhan0171 on 23 Nov 2014 at 8:30

Attachments:

Unable to set Multiple Video Feed

What is the expected output?
I want to access the video canvas, in such a way so that I can create its 
various instances with different size to let my host view multiple video feeds 
of the clients on the main window.  

What do you see instead?
I am accessing only single instance of the video canvas.

What version of the product are you using? On what operating system?
i.1 on Win 7



Original issue reported on code.google.com by [email protected] on 11 Jun 2012 at 10:35

Sample app logs "New count" as pre-incremented value

What steps will reproduce the problem?
1. Open console
2. Run sample app
3. Click "Click me!".  Note that log says "New count is 0", but the count is 
actually 1 and updated on the screen and in the state appropriately.

What is the expected output? What do you see instead?
Should say "New count is 1".  Says "New count is 0"


What version of the product are you using? On what operating system?


Please provide any additional information below.

in app.js in countButtonClick(), just increment value before the console.log 
command.  Then do not increment it in the submitDelta call.  Like this:

....
  value += 1;
  console.log("New count is " + value);
  // Send update to shared space.
  // NOTE:  Only ever send strings as values in the key-value pairs
  gapi.hangout.data.submitDelta({'count': '' + (value)});
....


Original issue reported on code.google.com by [email protected] on 27 Sep 2011 at 9:01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.