65 lines
2.2 KiB
JavaScript
65 lines
2.2 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Config = void 0;
|
|
var Config = /** @class */ (function () {
|
|
function Config() {
|
|
}
|
|
Config.DefalutOptionParams = {
|
|
el: '#app',
|
|
url: 'http://demo-videos.qnsdk.com/movies/qiniu.mp4',
|
|
title: '欢迎使用 AVideo 播放器!',
|
|
layout: 'DefaultLayout',
|
|
width: '100%',
|
|
height: '400px',
|
|
autoplay: false,
|
|
muted: false,
|
|
volume: 1,
|
|
poster: '',
|
|
playList: [{ title: '1', url: '222' }],
|
|
controls: {
|
|
image: true,
|
|
setting: true,
|
|
rotate: true,
|
|
play: true,
|
|
loop: true,
|
|
speed: true,
|
|
FullScreen: true,
|
|
down: true,
|
|
PictureInPicture: true,
|
|
memory: true,
|
|
ScreenShot: true,
|
|
theme: true,
|
|
progressMarkers: [],
|
|
vip: {},
|
|
},
|
|
paused: function (video) { },
|
|
play: function (video) { },
|
|
finish: function (video) { },
|
|
error: function (video) { },
|
|
timeupdate: function (video) { },
|
|
};
|
|
Config.IconConfig = {
|
|
topIcon: [
|
|
{ title: '下载', icon: 'icon-down1', key: 'down' },
|
|
{ title: '列表', icon: 'icon-liebiao', key: 'playList' },
|
|
{ title: '设置', icon: 'icon-setting', key: 'setting' },
|
|
],
|
|
leftIcon: [
|
|
{ title: '播放', icon: 'icon-bofang', key: 'play' },
|
|
{ title: '循环播放', icon: 'icon-xunhuan', key: 'loop' },
|
|
],
|
|
rightIcon: [
|
|
{ title: '皮肤', icon: 'icon-jingzi', key: 'theme' },
|
|
{ title: '高清', icon: 'icon-huaban-', key: 'high' },
|
|
{ title: '旋转', icon: 'icon-xuanzhuan1', key: 'rotate' },
|
|
{ title: '镜像', icon: 'icon-jingxiang2', key: 'image' },
|
|
{ title: '截图', icon: 'icon-jietu_huaban', key: 'ScreenShot' },
|
|
{ title: '倍速', icon: 'icon-suduspeed8', key: 'speed' },
|
|
{ title: '画中画', icon: 'icon-ai223', key: 'PictureInPicture' },
|
|
{ title: '全屏', icon: 'icon-quanping_huaban', key: 'FullScreen' },
|
|
]
|
|
};
|
|
return Config;
|
|
}());
|
|
exports.Config = Config;
|