【发布时间】:2016-09-26 06:55:31
【问题描述】:
我想通过这个例子使用 Google vrview-web:googlevrview
如何在iframe 标签中设置src 属性?
以下是链接中给出的示例:
<iframe width="100%" scrolling="yes" allowfullscreen src="https://storage.googleapis.com/vrview/examples/video/index.html?video=examples/video/congo_2048.mp4&is_stereo=true"></iframe>
现在我必须在 src 中设置我的视频 URL,如下所示:
<iframe width="100%" scrolling="yes" allowfullscreen src="<?php echo VIDEO_URL.$data["video"]; ?>&is_stereo=true"></iframe>
它不显示视频。
如果我在下面使用iframe 标签:
<iframe width="100%" scrolling="yes" allowfullscreen src="https://storage.googleapis.com/vrview/examples/video/index.html?video=MY_VIDEO&is_stereo=true"></iframe>
不过,它会在我的页面中打印这些数据:
【问题讨论】:
-
生成的 iframe 标记是什么样的
-
正在打印当前页面的整个 HTML
标签: php google-visualization virtual google-vr