index.wxml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <xr-demo-viewer
  2. title="加载案例"
  3. intro="点击按钮进行对应资源的加载与使用。(目前视频纹理属于beta状态,真机情况下,多张视频纹理不可以同时加载与渲染,但是可以取消一份后渲染另外一份)"
  4. code=""
  5. showBackBtn="{{showBackBtn}}"
  6. >
  7. <xr-template-featherVideo
  8. disable-scroll
  9. id="main-frame"
  10. width="{{renderWidth}}"
  11. height="{{renderHeight}}"
  12. gltfListRaw="{{gltfList}}"
  13. imageListRaw="{{imageList}}"
  14. videoListRaw="{{videoList}}"
  15. style="width:{{width}}px;height:{{height}}px;top:{{top}}px;left:{{left}}px;display:block;"
  16. />
  17. <view class="xr-res-panel">
  18. <view class="res-row">
  19. </view>
  20. <view class="res-row">
  21. <view class="res-btn {{onFlags ? 'on': ''}}"
  22. bindtap="tapResBtn"
  23. data-index="0"
  24. data-type="video"
  25. data-src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/videos/paris.mp4"
  26. >巴黎路边</view>
  27. </view>
  28. </view>
  29. </xr-demo-viewer>