How to enable Q&A app on Google Hangouts on air - google-plus

Google Hangouts on air has useful application called Q&A.
It allows watchers to ask speakers with text questions and even vote on these questions. In user interface, you can enable this feature for certain event on your G+ page.
How do I enable Q&A session for Hangouts on Air programmatically?
Currently in my project I launch Google Hangouts using the code described in docs here:
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div id="placeholder-div5"></div>
<script>
gapi.hangout.render('placeholder-div5', {
'topic': 'cats',
'render': 'createhangout',
'hangout_type': 'onair',
'initial_apps': [{'app_id' : '184219133185', 'start_data' : 'dQw4w9WgXcQ', 'app_type' : 'ROOM_APP' }],
'widget_size': 72
});
</script>
Then when I start broadcasting and try to launch Q&A app (clicking its icon at the left side of Hangouts window) it says "This feature is disabled".
Is there any way to do it?

Using the code snippet you provided, I managed to get Q&A working.
When you click the Q&A button, the toggle button changes from off to on for a short while, then flips back. I'm not sure why this is the case, but even though the button changed back to off, Q&A is still enabled. Just start the broadcast, and Q&A will be activated.

If you open the hangout from Google+ Hangout button like the one on your code snipet, the Q&A will not be completly disabled. By that I mean you can enable it by swiching the toggle botton on the top of the app...
But if you start the hangout from the onAir page (https://plus.google.com/hangouts/onair) you will need to you will need to explicitly enable/disable the Q&A app explicitly by clicking on the the app icon...

To disable Hangouts On Air:
Sign in to the Google Admin console.
Click Apps > Additional Google Services > Google+. Where is it?
Click Sharing settings.
In the Organizations section, select the organization for which you want to set the Hangouts On Air option.
If you don't see an Org Settings or Organizations section, you probably have only one organization in your domain and can therefore skip this step.
Select the top-level organization to enforce the same settings for your entire organization. You can also specify different settings for each organizational unit. If you have a lot of organizations, click the + button to expand your options.
In the Hangout options section, select or deselect Allow Hangouts On Air.

Related

Shaka player social share

I'm using shaka player as my html5 DASH player, and i want to allow social network integrations.
For instance, share a clip to whatsapp/facebook or as a link for forums/websites.
Is it possible using Shaka player? (I can easily switch to working with DashJS if that is more flexible)
Sharing the link is pretty much independent from the player itself.
You will have the URL for the video stream already as this is what you will be giving to the player, so you really just need to use the standard social network API's to share this link.
Some players will have this functionality included as an overlay or control on the video, which may be what you mean - however, you can still share the link your self by just adding your own share button below it on your web page.
I'm not aware of any Shaka Plugin to allow it be included in the controls, but if you wanted to add it yourself all the controls are grouped in:
https://github.com/google/shaka-player/blob/7169c7a5902696a42419b67a9c8e091e7f06c95d/demo/common/controls.js
For example you can see how the mute button is handled when it is clicked here:
/** #private */
ShakaControls.prototype.onMuteClick_ = function() {
if (!this.enabled_) return;
this.video_.muted = !this.video_.muted;
};
You could add a control to call the required social network sharing API for your case.

"Start a Hangout on Air" button for Youtube LiveStreaming API

We've been using the as yet un-deprecated "Start a Hangout on Air" button:
https://developers.google.com/+/hangouts/button
to start hangouts on air on our site http://agileventures.org for several years now. Full source code at http://github.com/AgileVentures/WebsiteOne
In the last 24 hours, clicking those buttons now redirects to instructions to manually start a youtube live event:
https://support.google.com/youtube/answer/7083786?visit_id=1-636118907663120157-3101666316&p=live_hoa&hl=en&rd=1
This is a problem as manually started events will not create the hangout app that lets our community know an event is starting and provides us with important telemetry on events.
There is unfortunately no documentation in the youtube live streaming API about how to create a button that will create a youtube live streaming event, or load a plugin into that event:
https://developers.google.com/youtube/v3/live/docs/
We need some code similar to that provided by the hangouts api, e.g.
<script src="https://apis.google.com/js/platform.js" async defer>
</script>
<div class="g-hangout" data-render="createhangout"
data-initial_apps="[{ app_id : '123456789012', start_data : 'dQw4w9WgXcQ', 'app_type' : 'ROOM_APP' }]">
</div>
but that will work with the new youtube streaming api. Any ideas?
The YouTube live documentation talks about being able to create a broadcast, but it seems to be only for custom "streaming" broadcasts and not hangouts:
https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/insert
The new events page allows us to select the "quick" type, which creates a hangout on air (https://www.youtube.com/my_live_events?action_create_live_event=1) so we can create HOAs manually, but not programmatically? We would very much appreciate clarity from Google on this.
It seems that support for Hangout on Air Buttons, creation of HOAs via API has been dropped no?
Note that Google is specifically requesting support questions for the Youtube LiveStream API are posted to StackOverflow:
https://developers.google.com/youtube/v3/live/support
The functionality all started working again after a 3 week break. We're not sure if Google changed anything. There were no changes on our end. Buttons for starting HOA's have been stable now for the last two months or so ...

Display on a website if I'm online for Google Hangouts

Currently I can add a "start hangout" button to my website https://developers.google.com/+/hangouts/button
However, it's kind of a dead button, it just starts hangouts and there's no way to actually see if I'm online of offline.
Is there a way for me to put next to that button whether or not my Google+ account "...#dancourse.co.uk" is online currently so someone could call me (if they had my address)?
An Api?
A Javascript library?
Thanks, DanC

Is there anyway to have hangouts outside google+?

Is there any way by which we can have a hangout session within our webapp, say in an iframe ?
I was about to experiment with hangout api, but going by existing apps on hangout, it seems they can only be viewed and used from within Google+.
Is there a work around where I can make the user feel that hangout is a part of my app rather than my app being part of the hangout ?
There's no way to embed a hangout into your web application, but you can use the hangout button to launch a hangout app. This allows you to integrate features and data from your web application into a hangout.
The hangout button is made up of an image and a hangout launching link. It comes in a few sizes. Here's the code for the smallest size (75x19 px)
<a href="https://plus.google.com/hangouts/_?gid=APP_ID" style="text-decoration:none;">
<img src="https://ssl.gstatic.com/s2/oz/images/stars/hangout/1/gplus-hangout-15x79-normal.png"
alt="Start a Hangout"
style="border:0;width:79px;height:15px;"/>
</a>
In this snippet you must substitute APP_ID with your application's ID from the API console. When you are viewing your project you'll find the application ID at the end of the URL.
Currently, there's no way of embedding a Hangout app in your web application. But, there's an opened issue tracker where you can add your comments about the need of this feature and Google might release it in their future API releases.

Does Chrome or Firefox have an API whereby we can display a badge on the taskbar/dock icon?

I'm working on a web app that does notifications much the same as Twitter, Facebook, and StackOverflow.
When there are async notifications sent to the notification area on these websites, you'll notice that usually the <title> is also updated to reflect the notification.
<title>(3) Twitter / Home</title>
I'm wondering if either Firefox or Chome have a Badge api whereby we can send a badge to the dock/taskbar that sums up all of the notifications (much the same as Apple Mail.app)? I am fairly confident that IE wouldn't have this.
So if the browser has a twitter notification,
It would also have a dock notification
note, these graphics are OS X, but my question is generic... ie: all OS platforms
My personal vision for this would be to add a meta tag to the page when the notification is sent to the client.
<meta notification-badge="3" />
If there is not an API for this, is there a way to swap out the browser icon asynchronously to achieve the same effect?
I didn't realize this was an apple-specific question until I saw the graphic. The answer is "No", browsers do not have Apple OS-specific APIs. You would have to write your own client application to get this effect.