2 回答

TA貢獻(xiàn)1936條經(jīng)驗(yàn) 獲得超7個(gè)贊
因此,我嘗試在我的 React 應(yīng)用程序(javascript 應(yīng)用程序)上集成 BoxCast 播放器,但我不知道該怎么做。有人知道我能做什么嗎?PS:我的問題是 iframe 沒有響應(yīng),所以我嘗試使用 javascript 。
<div id="boxcast-widget-{video-example}"></div>
<script type="text/javascript"charset="utf-8">
(function (d, s, c, o) { var js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; var h = (("https:" == document.location.protocol) ? "https:" : "http:"); js.src = h + "//js.boxcast.com/v3.min.js"; js.onload = function () { boxcast.noConflict()("#boxcast-widget-" + c).loadChannel(c, o); }; js.charset = "utf-8"; fjs.parentNode.insertBefore(js, fjs); }(document, "script", "{video-example}", { "showTitle": 0, "showDescription": 0, "showHighlights": 0, "showRelated": false, "showCountdown": false, "market": "smb", "showDocuments": false, "showIndex": false, "showDonations": false, "autoplay": "try-muted", "playInline": true, "dvr": false }));
</script>
謝謝!

TA貢獻(xiàn)1877條經(jīng)驗(yàn) 獲得超6個(gè)贊
這看起來并不兼容 React。如果您堅(jiān)持從 React 使用它,則需要集成它。
這可能是一項(xiàng)乏味的工作,我不鼓勵(lì)你這樣做。尋找另一個(gè)聲稱與 React 兼容的提供商。
添加回答
舉報(bào)