收藏
回答

scroll-view容器滑动到视频,点击全屏播放,退出全屏容器自动滚动到顶部?如何定位到视频?

<scroll-view style="height: 100vh;" scroll-y="{{ true }}">
  <view style="display: flex;flex-direction: column;align-items: center;">
    <block wx:for="123456787667" wx:key="*this">
    <view style="height: 200rpx">test word</view>
  </block>
  <video 
      id="myVideo" 
      direction="0"
      src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" 
      show-center-play-btn='{{false}}' 
      controls
    ></video>
    <block wx:for="1234" wx:key="*this">
      <view style="height: 200rpx">test word</view>
    </block>
  </view>
</scroll-view>
回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容