1、修改video標籤:html
公衆號裏使用的是騰訊視頻,因此能夠作到,你本身的視頻沒法解決,稍微好一點的方案是添加x5-video-player-type="h5"web
x5-video-player-fullscreen="false"
至於-webkit-playsinline和playsinline是給iPhone用的,Android中不起做用瀏覽器
非公衆號:ide
<video id="my-video" x-webkit-airplay="allow" webkit-playsinline playsinline x5-video-player-fullscreen="false" poster="background.png" preload="auto" x5-playsinline> </video>
若是使用了qq瀏覽器做爲內核,能夠去掉x5-video-player-type="h5",這樣會默認調用內核內置的原生播放器post
2、設置X5WebView的屬性code
Bundle data = new Bundle();視頻
data.putBoolean("standardFullScreen", true);htm
data.putBoolean("supportLiteWnd", false);get
data.putInt("DefaultVideoScreen", 1);// 1:以頁面內開始播放,2:以全屏開始播放;不設置默認:1it
webView.getX5WebViewExtension().invokeMiscMethod("setVideoParams", data);