video.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <import src="../../../common/head.wxml" />
  2. <import src="../../../common/foot.wxml" />
  3. <view class="container page" data-weui-theme="{{theme}}">
  4. <template is="head" data="{{title: 'video'}}"/>
  5. <view class="page-body">
  6. <view class="page-section tc">
  7. <video
  8. id="myVideo"
  9. src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
  10. binderror="videoErrorCallback"
  11. danmu-list="{{danmuList}}"
  12. enable-danmu
  13. danmu-btn
  14. show-casting-button
  15. show-screen-lock-button
  16. show-center-play-btn='{{false}}'
  17. show-play-btn="{{true}}"
  18. muted="{{true}}" show-mute-btn="{{true}}"
  19. controls
  20. picture-in-picture-mode="{{['push', 'pop']}}"
  21. bindenterpictureinpicture='bindVideoEnterPictureInPicture'
  22. bindleavepictureinpicture='bindVideoLeavePictureInPicture'
  23. enable-auto-rotation="{{enableAutoRotation}}"
  24. ></video>
  25. <view class="auto-rotate-container">
  26. <view>开启自动旋转</view>
  27. <view>
  28. <switch model:checked="{{ enableAutoRotation }}" bindchange="handleSwitchChange" />
  29. </view>
  30. </view>
  31. <view class="weui-cells">
  32. <view class="weui-cell weui-cell_input">
  33. <view class="weui-cell__hd">
  34. <view class="weui-label">弹幕内容</view>
  35. </view>
  36. <view class="weui-cell__bd">
  37. <input bindblur="bindInputBlur" class="weui-input" type="text" placeholder="在此处输入弹幕内容" />
  38. </view>
  39. </view>
  40. </view>
  41. <view class="btn-area">
  42. <button bindtap="bindSendDanmu" class="page-body-button" type="primary" formType="submit">发送弹幕</button>
  43. </view>
  44. <view class="btn-area">
  45. <navigator url="picture-in-picture" hover-class="other-navigator-hover">
  46. <button type="primary" class="page-body-button" bindtap="bindPlayVideo">小窗模式</button>
  47. </navigator>
  48. </view>
  49. </view>
  50. </view>
  51. <template is="foot" />
  52. </view>