【问题标题】:How to active wmode transparent in video player如何在视频播放器中激活 wmode 透明
【发布时间】:2016-09-26 06:58:27
【问题描述】:

我正在尝试在我的视频脚本中激活 wmode。 我不知道怎么做。

下面是我的代码。

<script type="text/javascript">
    TSC.playerConfiguration.setFlashPlayerSwf("demo_controller.swf");
    TSC.playerConfiguration.setMediaSrc("demo.mp4");
    TSC.playerConfiguration.setXMPSrc("demo_config.xml");

    TSC.playerConfiguration.setAutoHideControls(true);
    TSC.playerConfiguration.setBackgroundColor("#000000");
    TSC.playerConfiguration.setCaptionsEnabled(false);
    TSC.playerConfiguration.setSidebarEnabled(false);

    TSC.playerConfiguration.setAutoPlayMedia(false);
    TSC.playerConfiguration.setPosterImageSrc("demo_First_Frame.png");
    TSC.playerConfiguration.setIsSearchable(true);
    TSC.playerConfiguration.setEndActionType("stop");
    TSC.playerConfiguration.setEndActionParam("true");
    TSC.playerConfiguration.setAllowRewind(-1);

    TSC.localizationStrings.setLanguage(TSC.languageCodes.ENGLISH);
    $(document).ready(function (e) {
        TSC.mediaPlayer.init("#tscVideoContent");
    });
</script>

我试过这个 TSC.playerConfiguration.setEndActionParam("wmode":"transparent");

它不工作。 谢谢

【问题讨论】:

标签: php swfobject video-player


【解决方案1】:

我只是在 player-min.js 中做一些更改就得到了解决方案:-

co.wmode = "direct";


Just go to player-min.js and replace "direct" with "transparent"

It will work .


 co.wmode = "transparent";

谢谢。

【讨论】:

    猜你喜欢
    • 2020-06-02
    • 1970-01-01
    • 1970-01-01
    • 2021-04-10
    • 2020-10-13
    • 1970-01-01
    • 1970-01-01
    • 2011-10-23
    • 2015-12-01
    相关资源
    最近更新 更多