0
我只是想添加一個基本的環聊按鈕組件,該組件會發起Google的環聊。我下面的Google Developer提到的步驟,但所有的努力後,我掙扎着爬周圍的以下問題:無法在我的信息頁中使用API添加環聊按鈕
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').(anonymous function) @ core:rpc:shindig.random:shindig.sha1.js?c=2:838
3cb=gapi.loaded_0:112 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').(anonymous function) @ cb=gapi.loaded_0:112
這裏是我使用的開發頁面的視頻羣聊按鈕的代碼片段:
<script src="https://apis.google.com/js/platform.js"></script>
<div id="placeholder-div"></div>
<script>
window.____gcfg = {
lang: 'en-US',
parsetags: 'onload'
};
gapi.hangout.render('placeholder-div', {
'render': 'createhangout',
'initial_apps': [{'app_id' : '902502537504'}],
'widget_size': 175
});
</script>
我也能使用https://console.developers.google.com/project/grabhouseportal/apiui/apiview/plusHangouts/overview
任何幫助表示讚賞我的谷歌+的視頻羣聊服務。