簡體   English   中英

如何將視頻頁面鏈接放在 jwplayer 上的 iframe 文本中

[英]How can I put the video page link in the text of the iframe on the jwplayer

在我的視頻播放器中,我在網絡上放了一個分享按鈕,嵌入視頻 如何將視頻的私人頁面鏈接放入嵌入文本中

 <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>

我想你的意思是你想把它放在視頻菜單中。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM