没有iframe、three.js和A-frame的Youtube视频

没有iframe、three.js和A-frame的Youtube视频,youtube,youtube-api,aframe,webvr,Youtube,Youtube Api,Aframe,Webvr,是否可以在没有IFRAME和播放器的情况下播放youtube视频 我想能够在视频纹理上播放视频 你看,我在这里已经做到了: http://dev3.garyconstable.co.uk/ 这是将播放我自己的mp4的代码 <a-scene> <a-assets> <video id="video" autobuffer height="240" width="360" autoplay loop="true" crossorigin="anonymou

是否可以在没有IFRAME和播放器的情况下播放youtube视频

我想能够在视频纹理上播放视频

你看,我在这里已经做到了:

http://dev3.garyconstable.co.uk/
这是将播放我自己的mp4的代码

<a-scene>
  <a-assets>
    <video id="video" autobuffer height="240" width="360" autoplay loop="true" crossorigin="anonymous" webkit-playsinline>
      <source src="media/videos_s_7.mp4">
    </video>
  </a-assets>
  <a-videosphere id="vid-sphere"  autopla="true"></a-videosphere>
</a-scene>

有可能吗?我有什么选择?youtube是否为其他功能提供付费服务?

最好不要为这份工作考虑任何播放器

注意:

JW Player uses the official iFrame player API from YouTube to play a video inside of JW Player. 
原因:

  • youtube.com将不接受这些服务器上的跨域
您需要为web应用添加服务器部件。我使用nodejs

这是一个程序:


  ----> Use classic google , youtube APi login/search
  ----> Make search and collect search result data (Most important is `videoId` )
  ----> Save to your own server 
  ----> Call from web app your new route.

现在你想做什么就做什么

直接演示链接:

完整解决方案位于:

请参见

  ----> Use classic google , youtube APi login/search
  ----> Make search and collect search result data (Most important is `videoId` )
  ----> Save to your own server 
  ----> Call from web app your new route.