视频组件 编辑器正常,真机出现黑屏(安卓&&ios一样)
编辑器显示:
真机显示:
代码片段
< view class = 'video' > < block wx:for = "{{data.type_Video_List}}" wx:for-item = "item_list" wx:for-index = "index_list" wx:key = "type_key" > < view class = 'video-img' > < image class = 'stop-btn2' wx:if = "{{item_list.isShow}}" data-diyid = "{{data.diy_tem_contid}}" data-vid = "{{item_list.id}}" data-idx = '{{index_list}}' bindtap = 'binplay' src = '{{http_host}}/mini_program/mshop/web/app_images/video_btn.png' ></ image > < image class = 'big-cover' wx:if = "{{item_list.isShow}}" data-diyid = "{{data.diy_tem_contid}}" data-vid = "{{item_list.id}}" data-idx = '{{index_list}}' bindtap = 'binplay' src = "{{http_host}}{{item_list.cover_img}}" mode = "scaleToFill" ></ image > < video id = "{{item_list.id}}" custom-cache = "{{false}}" style = "{{item_list.isShow ? 'display:none;' : ''}}" class = 'video-img1' src = "{{item_list.video_url}}" bindended = "audioPlay" bindplay = "playVideoAgain" ></ video > </ view > <!-- <view class='text-box video_detail' data-postid="{{item_list.id}}" catchtap="onVedioDetailTap"> <view class='video-name'>{{item_list.title}} </view> <view class='video-detail'>{{item_list.introduction}}</view> </view> --> </ block > </ view > |
1 回复
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。