IONIC 2 - Jwplayer集成和全屏模式

时间:2017-05-25 10:04:48

标签: ionic-framework ionic2 jwplayer

我正在尝试在我的IONIC 2应用程序中实现JwPlayer。

它可以工作,但当我切换到全屏模式时,滚动条和导航栏仍然可见。当我切换到横向模式时,玩家会略微收缩。

所以我尝试使用CSS,但它不是很干净

请有人帮助我吗?

我的模板

<ion-content>
    <ion-grid>
        <ion-row>
            <ion-col col-12>
                <ion-card>
                    <ion-card-content>
                        <div id="playerVideo"></div>
                    </ion-card-content>
                </ion-card>
            </ion-col>
        </ion-row>
    </ion-grid>
</ion-content>

**我服务的一部分**

jwplayer("playerVideo").setup({
    "file": replayData[0].file[0]['_'],
    "image": replayData[0].picture[0],
    "width": "100%",
    "volume": 50,
    "aspectratio": "16:9"
});

0 个答案:

没有答案