Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在微信浏览器中,安卓手机视频播放控件设置z-index无效 #22

Closed
stonemakers opened this issue Jun 28, 2018 · 10 comments
Closed
Assignees

Comments

@stonemakers
Copy link

在微信浏览器中,试了小米 MIX2s , 乐视Pro3 都不行, 所有的安卓手机,视频都被置顶

@yandeqiang
Copy link
Contributor

你可能对部分厂商,包括微信在内的一些浏览器,不太了解,这块会有播放器劫持现象。设置 z-index 是无效的
可以先看看文章 https://github.com/Chimeejs/chimee-mobile-player/blob/master/doc/dev.md

@stonemakers
Copy link
Author

@yandeqiang 按照方案里的说明,在初始化chimeeMobilePlayer的时候,添加一个 x5VideoPlayerType 属性就能自动添加 x5-video-player-type="h5" 属性。但是实际测试,组件初始化后,没有给video标签添加这个属性,怎么回事

@yandeqiang
Copy link
Contributor

可以看下配置吗? 你也可以对照这里看下 https://github.com/Chimeejs/chimee/blob/master/doc/zh-cn/api/plugin-api.md#videoconfig

@stonemakers
Copy link
Author

stonemakers commented Jun 28, 2018

@yandeqiang

<template>
  <section class="x-video" :class="{suspend: isSuspend}">
    <div id="wrapper">
    </div>
  </section>
</template>
this.chimee = new ChimeeMobilePlayer({
        wrapper: '#wrapper',
        src: (我的视频地址),
        autoplay: false,
        controls: true,
        playsInline: true,
        preload: 'auto',
        x5VideoPlayerFullscreen: true,
        x5VideoPlayerType: 'h5',
        x5VideoOrientation: 'landscape|portrait',
        xWebkitAirplay: true,
        muted: true,
        // 使用插件
        plugin: [
          {
            name: chimeePluginMobileControlbar.name,
            majorColor: '#0076ff'
          }
        ]
      })

@yandeqiang
Copy link
Contributor

@toxic-johann 这个属性值没有赋值上去 。 我看是有多次赋值。 除了第一次为 h5 , 剩下均为 undefined。 在 pc 上试的

@toxic-johann
Copy link
Member

ok。今晚看看

@toxic-johann
Copy link
Member

chimee 0.10.5 已修复

@stonemakers
Copy link
Author

@yandeqiang @toxic-johann 请问有修复chimee-mobile-player这个项目中的问题么?

@toxic-johann
Copy link
Member

chimee-mobile-player @yandeqiang 同步升级即可。

@yandeqiang
Copy link
Contributor

已更新 chimee-mobile-player@0.2.7 @stonemakers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants