Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>video playerNew to Visual Studio Code? Get it now.
video player

video player

Tomas avila

|
3,468 installs
| (0) | Free
Integrate a video or audio player to visual studio code with a friendly and dynamic interface.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Media Player

A Visual Studio Code extension that provides an integrated media player for audio and video files with a modern, accessible interface powered by Plyr.

Features

  • Clean Integration - Seamlessly integrates with VS Code's interface and themes
  • Multiple Format Support:
    • Video: mp4, webm, ogg, mov, avi, mkv, m4v, flv
    • Audio: mp3, wav, ogg, flac, aac, m4a
  • Auto-Play - Automatically opens media player when you select a compatible media file
  • Rich Controls:
    • Play/Pause with large overlay button
    • Volume control with mute toggle
    • Seek controls (10s forward/backward)
    • Interactive progress bar with hover preview
    • Speed controls (0.5x to 2x playback speed)
    • Fullscreen mode for videos
    • Picture-in-Picture support (where available)
  • Accessibility First - Full keyboard navigation and screen reader support
  • Responsive Design - Adapts to different window sizes
  • VS Code Theme Integration - Automatically matches your VS Code theme colors

Installation

  1. Open Visual Studio Code
  2. Go to Extensions tab (Ctrl+Shift+X)
  3. Search for "video player"
  4. Click Install
  5. Ready to use!

Alternatively, install from the VS Code Marketplace.

Usage

Method 1: Auto-Open

  1. Open any supported audio or video file in VS Code
  2. The media player will automatically open in a side panel
  3. Media starts playing automatically

Method 2: Manual Selection

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type "Play Media File" and select the command
  3. Choose your media file in the file picker
  4. Player opens with your selected file

Keyboard Shortcuts

The player supports comprehensive keyboard controls:

  • Space / K: Play/Pause toggle
  • ← / →: Seek backward/forward (default: 10 seconds)
  • ↑ / ↓: Volume up/down
  • M: Mute/Unmute
  • F: Toggle fullscreen (video only)
  • C: Toggle captions (if available)
  • 0-9: Jump to 0%-90% of video duration
  • L: Toggle loop

Supported Formats

Video Files

  • .mp4 - MP4 (H.264/H.265)
  • .webm - WebM
  • .ogg - Ogg Theora
  • .mov - QuickTime
  • .avi - AVI
  • .mkv - Matroska
  • .m4v - MP4 Video
  • .flv - Flash Video

Audio Files

  • .mp3 - MP3
  • .wav - WAV
  • .ogg - Ogg Vorbis
  • .flac - FLAC
  • .aac - AAC
  • .m4a - MPEG-4 Audio

Features in Detail

Plyr Integration

This extension uses Plyr as its media player engine, providing:

  • Accessibility: Full ARIA support and keyboard navigation
  • Customizable: Clean HTML markup and CSS custom properties
  • Cross-browser: Works consistently across modern browsers
  • Lightweight: No framework dependencies

VS Code Integration

  • Theme Aware: Player colors automatically match your VS Code theme
  • Side Panel: Opens in a dedicated panel that doesn't interfere with your coding
  • File Watcher: Automatically detects when media files are opened
  • Resource Management: Efficient handling of media file URIs

Troubleshooting

Media Won't Play

If a file doesn't play:

  1. Ensure the format is supported by modern web browsers
  2. Check file permissions and accessibility
  3. Try using "Play Media File" command instead of direct file opening
  4. Some codecs may not be supported depending on your system

Performance Issues

  • Large video files may take time to load initially
  • Consider using web-optimized formats (MP4 with H.264) for best performance
  • Close other media players if experiencing conflicts
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft