Skip to content

API Reference

Playerify Component

The main media player component.

Props

PropTypeDefaultDescription
playliststring[] | PlaylistItem[][]Array of playlist items - either URLs (string[]) or objects
coverImageString''Default cover image URL (falls back to playlist item cover)
coverImageOriginalSizeBooleantrueUse original cover image size (false scales to frame dimensions)
typeString'video''audio' or 'video'
hideAllControlsBooleanfalseHide all controls
hideProgressBooleanfalseHide progress bar
hideMainControlsBooleanfalseHide main controls (play, volume)
hideExtraControlsBooleanfalseHide extra controls (playlist, settings, fullscreen)
hidePlayButtonBooleanfalseHide play/pause button
hideVolumeButtonBooleanfalseHide volume button
hidePlaylistButtonBooleanfalseHide playlist button
hidePlaybackRateButtonBooleanfalseHide playback rate option in extras menu
hideExtrasButtonBooleanfalseHide extras menu button
hideFullscreenButtonBooleanfalseHide fullscreen button
hideFileNameBooleanfalseHide filename
hideDurationBooleanfalseHide time/duration
hidePlaylistBooleanfalseHide playlist
playlistVariantString'elevated'Playlist variant (text, flat, elevated, tonal, outlined)
playlistButtonColorString'default'Vuetify color for playlist button
frameWidthString'100%'Frame width
frameHeightString''Frame height
playButtonColorString'default'Vuetify color for play button
pauseButtonColorString'default'Vuetify color for pause button
volumeButtonColorString'default'Vuetify color for volume button
volumeOffButtonColorString'default'Vuetify color for muted volume button
playbackRateButtonColorString'default'Vuetify color for playback rate button
extrasButtonColorString'default'Vuetify color for extras button
fullscreenButtonColorString'default'Vuetify color for fullscreen button
btnRoundedString'sm'Button roundness (none, sm, md, lg, xl, pill, circle)
progressRoundedString'sm'Progress bar roundness
progressSliderColorString'primary'Progress slider color
volumeSliderColorString'primary'Volume slider color
defaultRewindNumber10Seconds to skip on left/right arrow keys (1-60)
defaultVolumeNumber0.8Initial volume (0-1)
progressColorString'primary'Progress bar color
bufferColorString'secondary'Buffer bar color
fileNameString''Custom file name to display (falls back to source URL basename)
permanentVolumeSliderBooleantrueAlways show volume slider
debugBooleanfalseShow debug YAML output

Note: hideAllControls="true" is intended for video content only.
It overrides all other hide-* props — they will all be hidden regardless of their individual values.

Playlist Item Type

Import the type from the package:

typescript
import type { PlaylistItem, controlActionMenuItem } from 'playerify'

const playlist: PlaylistItem[] = [
  { src: 'https://example.com/audio.mp3', name: 'Audio', cover: 'https://example.com/cover.jpg' },
  { src: 'https://example.com/video.mp4', name: 'Video', cover: 'https://example.com/poster.jpg' },
]

You can also use a simple array of URLs:

typescript
const playlist: string[] = [
  'https://example.com/audio.mp3',
  'https://example.com/video.mp4',
]

controlActionMenuItem Type

Used for extras menu items (Loop, Picture in Picture):

typescript
type controlActionMenuItem = {
  title: string
  value: any
  icon?: string
  active?: boolean
}

PlayerType Enum

typescript
enum PlayerType {
  AUDIO = 'audio',
  VIDEO = 'video'
}

Released under the MIT License.