成都网站建设设计

将想法与焦点和您一起共享

创新互联百度小程序教程:swan.createAnimationVideo

  • swan.createAnimationVideo
    • 方法参数
      • 返回值
    • 示例
      • 图片示例
      • 代码示例

    swan.createAnimationVideo

    解释: 创建并返回 animation-video 上下文animationVideo对象。通过 animationVideoId 跟一个 animation-video 组件绑定,通过它可以操作一个 animation-video 组件。
    Web 态说明:详见 animation-video 组件 Web 态说明。

    方法参数

    String animationVideoId

    返回值

    AnimationVideo

    示例

    跳转编辑工具

    在开发者工具中打开

    在 WEB IDE 中打开

    扫码体验

    代码示例

    请使用百度APP扫码

    图片示例

    代码示例

    • SWAN
    • JS
    • CSS
     
     
     
    1. id="myAnimationVideo"
    2. path="{{path}}"
    3. loop="{{loop}}"
    4. resource-width="800"
    5. resource-height="400"
    6. canvas-style="width:200px;height:200px"
    7. autoplay="{{autoplay}}"
    8. bindstarted="started"
    9. bindended="ended">

    网站题目:创新互联百度小程序教程:swan.createAnimationVideo
    网站网址:https://chengdu.cdxwcx.cn/article/coceids.html