'use strict';

require('../../../utils/index.js');
require('../../audio-player/index.js');
var runtime = require('../../../utils/props/runtime.js');
var audioPlayer = require('../../audio-player/src/audio-player.js');

"use strict";
const videoFormat = [
  "MP4",
  "WebM",
  "OGG",
  "MOV",
  "AVI",
  "WMV",
  "FLV",
  "MKV"
];
const videoPlayerProps = runtime.buildProps({
  src: {
    type: String,
    required: true
  },
  // 视频封面图像 URL
  poster: {
    type: String,
    default: ""
  },
  // 页面加载后自动播放视频
  autoplay: {
    type: Boolean,
    default: false
  },
  // 视频循环播放
  loop: {
    type: Boolean,
    default: false
  },
  // 预加载设置
  preload: {
    type: String,
    default: "auto",
    values: audioPlayer.preloadLoad
  },
  // 静音
  muted: {
    type: Boolean,
    default: false
  },
  // 显示视频控制界面
  controls: {
    type: Boolean,
    default: true
  },
  width: {
    type: [String, Number],
    default: "100%"
  },
  height: {
    type: [String, Number],
    default: "auto"
  },
  format: {
    type: String,
    default: "MP4",
    values: videoFormat
  }
});

exports.videoFormat = videoFormat;
exports.videoPlayerProps = videoPlayerProps;
//# sourceMappingURL=video-player.js.map
