【问题标题】:How can I put the video page link in the text of the iframe on the jwplayer如何将视频页面链接放在jwplayer上的iframe文本中
【发布时间】:2020-04-30 20:21:20
【问题描述】:

在我的视频播放器中,我在网络上放了一个分享按钮,嵌入视频 如何将视频的私页链接放入嵌入文本中

<div id="player" >
</div>
<script src="https://cdn.jwplayer.com/libraries/8ygHoiAH.js"></script>
<script>
jwplayer('player').setup({
			file: 'https://www.w3schools.com/tags/mov_bbb.mp4',
            sharing: {
            code:'<iframe src="link-page-Video" width="480" height="270" frameborder="0" scrolling="auto"></iframe>',
    sites:["facebook","twitter"]
},
			
	    });	
</script>

【问题讨论】:

    标签: javascript video embed blogger jwplayer


    【解决方案1】:

    我想你的意思是你想把它放在视频菜单中。

    JWPlayer 在其在线文档中提供了一些关于设置共享链接的信息。

    一个快速参考的例子:

    jwplayer("myElement").setup({
      playlist: "http://cdn.jwplayer.com/media/1234abcD",
      sharing: {
        sites: ["facebook","twitter","email","linkedin","pinterest"]
      },
      intl: {
        en: {
          sharing: {
            heading: "Share this awesome video"
          }
        }
      }
    });
    

    更多详情:https://developer.jwplayer.com/jwplayer/docs/jw8-enable-viewers-to-share-your-content

    【讨论】:

      猜你喜欢
      • 2012-06-13
      • 2014-01-18
      • 1970-01-01
      • 1970-01-01
      • 2012-10-12
      • 2014-11-13
      • 2012-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多