fla*_*ash 7 javascript embed wordpress iframe jwplayer
我正在开发一个网站,其中从嵌入按钮复制后没有显示正确的网址.
单击嵌入按钮(如下图所示),我在ifr中获取以下代码,其中src的值不正确.它应该是一个合适的视频网址.
<iframe src="//content.jwplatform.com/players/dalet_clips/35472P.mp4-88sIiZig.html" width="640" height="360" frameborder="0" scrolling="auto"></iframe>
Run Code Online (Sandbox Code Playgroud)
我在jwplatform.js中使用的代码片段是:
"sharing": {
"code": "%3Ciframe%20src%3D%22http%3A//content.jwplatform.com/players/MEDIAID-6gKQPrHW.html%22%20width%3D%22480%22%20height%3D%22270%22%20frameborder%3D%220%22%20scrolling%3D%22auto%22%3E%3C/iframe%3E",
"link": "http://content.jwplatform.com/previews/MEDIAID-6gKQPrHW"
},
Run Code Online (Sandbox Code Playgroud)
问题陈述:
在iframe src里面,我得到以下//content.jwplatform.com/players/dalet_clips/35472P.mp4-88sIiZig.html不正确的代码.它应该是视频的正确网址.我想知道我需要做哪些更改,以便在iframe src中获得完整的视频网址.
尝试将选项中code的属性更改为您想要的确切内容sharingjwplatform.jsencodeURIComponentiframe
示例:
现在你有codeas%3Ciframe%20src%3D%22http%3A//content.jwplatform.com/players/MEDIAID-6gKQPrHW.html%22%20width%3D%22480%22%20height%3D%22270%22%20frameborder%3D%220%22%20scrolling%3D%22auto%22%3E%3C/iframe%3E
现在尝试对其进行解码,decodeURIComponent(code)其计算结果为:
<iframe src="http://content.jwplatform.com/players/MEDIAID-6gKQPrHW.html" width="480" height="270" frameborder="0" scrolling="auto"></iframe>
您应该尝试将code和更改link为您的实际视频链接和代码。只需将您想要的任何内容编码为代码encodeURIComponent或使用 测试当前内容decodeURIComponent,并在属性中保留正确的链接link。
| 归档时间: |
|
| 查看次数: |
286 次 |
| 最近记录: |