Open hangout in new tab

I have enabled the hangout button on my site. When I click on it, a child window opens. Is it possible to open a video call in the current tab or in a new tab (for example, a regular link)?

I looked at the Hangout Button documentation, but did not find anything like it (so far, it seems, I saw it somewhere on the Internet).

Update . There were a few examples of how you can specify a new hangout URL without a Hangout button in responses and comments. But there was no evidence that this was a reliable method, and no documentation was provided on how to specify additional parameters (for example, startDate for a Hangout application).

Update 2 . I found that when creating a new video call application, the Google Develope Console provides a Hangouts link:

enter image description here

with the following URL: https://hangoutsapi.talkgadget.google.com/hangouts?authuser=0&gid=appId . Does it work only for the sandbox? Is there a way to specify other parameters like startData?

+7
google-api hangout
source share
3 answers

I use the following to open a hangout in a new tab

<a target="_blank" href="https://plus.google.com/hangouts/_?gid=<app_id">Start a Hangout</a> 

Use the query parameter gd=somevalue to pass the source dataset to your application

 https://developers.google.com/+/hangouts/running#passing-data 

I send the initial data as follows

 https://plus.google.com/hangouts/_?gid=<app_id">&gd=<start_data> 

as well as

 <script src="https://apis.google.com/js/platform.js" async defer></script> <div id="placeholder-rr"></div> <script> gapi.hangout.render('placeholder-rr', { 'render': 'createhangout', 'initial_apps': [{'app_id' : 'Your app_id', 'start_data' : 'Put your start data here', 'app_type' : 'ROOM_APP' }], 'widget_size': 175 }); </script> 
+6
source share

Check the documentation, it does not seem that the button is for flexibility in customization.


If you are looking for an encoding solution separately than:

  gapi.hangout.render('placeholder-div', { 'render': 'createhangout', 'initial_apps': [{'app_id' : '184219133185', 'start_data' : 'dQw4w9WgXcQ', 'app_type' : 'ROOM_APP' }], 'widget_size': 200 }); 

Deferred execution and language configuration:

  window.___gcfg = { lang: 'zh-CN', parsetags: 'onload' }; 

not much can be done .

In manual mode, holding ⌘ (CTRL on windows) when you click on the button will open the video call in a new tab.

Successfully tested in Chrome and Safari. Unsuccessful on Firefox.

+3
source share

A simple link button is available:

 https://hangoutsapi.talkgadget.google.com/hangouts/_?gid=APP_ID 

You can simply open this link in a new tab:

 <a href="https://hangoutsapi.talkgadget.google.com/hangouts/_?gid=184219133185">Hangout</a> 
+2
source share

All Articles