UNPKG

@voltra/vue-player

Version:

A Vue port of react-player: components for playing a variety of URLs including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, DailyMotion

32 lines (29 loc) 690 B
import VueTypes from "vue-types"; /** * @type {YoutubeConfig} */ export const youtubeConfigPropsDefaults = { playerVars: { playsinline: 1, showinfo: 0, rel: 0, iv_load_policy: 3, modestbranding: 1 }, embedOptions: {}, onUnstarted: () => {}, }; /** * @type {import("vue-types").VueTypeShape<YoutubeConfig>} */ export const youtubeConfigProps = VueTypes.shape({ playerVars: VueTypes.shape({ playsinline: VueTypes.integer, showinfo: VueTypes.integer, rel: VueTypes.integer, iv_load_policy: VueTypes.integer, modestbranding: VueTypes.integer, }).loose, embedOptions: VueTypes.object, onUnstarted: VueTypes.func, }).loose.def(() => youtubeConfigPropsDefaults);