Internet Explorer 8 - SCRIPT1010 error with Youtube JSONC AP
Internet Explorer 8 - SCRIPT1010 error with Youtube JSONC API
我正在使用youtube JSONC API从频道获取最新视频。当我尝试获取默认播放器链接时出现问题
"player":{
"default":"https://www.youtube.com/watch?v'u003dhYB0mn5zh2c",
"mobile":"https://m.youtube.com/details?v'u003dhYB0mn5zh2c"
},
该键返回SCRIPT1010错误。有没有办法在IE8中没有问题的情况下调用它?
我最终得到了一个更快的解决方案。由于该对象还具有明显具有相同视频 ID 的移动链接,因此我使用此代码获取视频链接:
var link = news.player.mobile.replace('m.youtube', 'www.youtube').replace('/details?', '/watch?');
希望这将来会有所帮助
相关文章:
- 有可能过滤来自嵌入式YouTube的声音吗
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 是否可以使用iframe API在iOS浏览器上播放youtube视频
- 指令的模板必须只有一个根元素:With restrict E&替换true
- html5视频中的Youtube类型注释
- 链接和youtube的Javascript和regex
- YouTube作为弹出窗口在桌面版本上播放,但不在移动设备上播放
- 使用javascript将视频从我的android应用程序上传到youtube
- Internet Explorer 8 - SCRIPT1010 error with Youtube JSONC AP
- loading youtube iframe api with require.js !async plugin
- Youtube - SecurityError: Blocked a frame with origin "n
- Javascript with Grease Monkey : @grant messes up Youtube API
- Titanium Appcelerator parse Youtube JSON with API
- Google+ API with youtube-api-v3
- iPhone YouTube embed with iframe