import '../../../utils/index.mjs';
import '../../audio-player/index.mjs';
import { buildProps } from '../../../utils/props/runtime.mjs';
import { preloadLoad } from '../../audio-player/src/audio-player.mjs';

"use strict";
const videoFormat = [
  "MP4",
  "WebM",
  "OGG",
  "MOV",
  "AVI",
  "WMV",
  "FLV",
  "MKV"
];
const videoPlayerProps = 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: 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
  }
});

export { videoFormat, videoPlayerProps };
//# sourceMappingURL=video-player.mjs.map
