2017-04-14 111 views

回答

0

請嘗試更改此內容。

<iframe width="100%" height="221.02" src="https://www.youtube.com/embed/uFyaDBmvR8c?showinfo=0" frameborder="0" allowfullscreen></iframe> 

對此。

<iframe style="width:100%; height:221px;" src="https://www.youtube.com/embed/uFyaDBmvR8c?showinfo=0" frameborder="0" allowfullscreen></iframe> 
0

我有同樣的問題,我加入白名單插件:

<plugin name="cordova-plugin-whitelist" source="npm" spec="*"/> 

然後白名單HTTPS訪問到Youtube:

<allow-navigation href="https://*youtube.com/*"/> 

在config.xml文件中。 現在它正在工作。