welcomeVideo

功能描述

APP启动欢迎页视频广告,用例见 welcomeVideo.html

快速使用

下载插件文件中的welcomeVideo.html到项目根目录,修改文件里面的视频文件, 或者使用image/example.mp4示例文件

可以使用插件文件包里面的index.html进行测试

root页面进行下面监听,视频播放完或者用户点击跳过都会进入该事件的回调方法

api.addEventListener({
    name: 'welcomeVideo'
}, function(ret, err) {
    alert('结束视频,进入首页');
});

然后打开welcomeVideo.html

api.openFrame({
    name: 'main',
    url: 'welcomeVideo.html',
    bounces: false,
    rect: {
        x: 0,
        y: 0,
        w: 'auto',
        h: 'auto',
    }
});
是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24