Skip to content

About

Modern, high-performance Windows desktop video player built with Tauri 2, Rust, React, TypeScript, and libmpv.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Nosved Player Desktop

Nosved Player Desktop is a high-performance, native Windows x64 desktop video player application built with React, TypeScript, Tauri 2, Rust, Vite, Tailwind CSS, and the native libmpv C-ABI rendering engine.

Migration Note: This repository has been fully migrated from Electron to a modern Tauri 2 + Rust native architecture with direct Win32 and libmpv C-ABI integration. Historical commits are fully preserved in Git history.


Key Features

  • Hardware-Accelerated Video Rendering: Direct3D / GPU video output rendered into a native Win32 child window via the high-performance libmpv C-API.
  • Fluid Desktop UI: Modern desktop-first interface styled with Material 3 Expressive tokens and Tailwind CSS.
  • Fullscreen & Auto-Hiding Overlays: Fullscreen mode with high-DPI scaling (window.devicePixelRatio), 5-second cursor inactivity auto-hide, and full video clearance.
  • Gesture & Keyboard Controls: Double-click and double-tap fullscreen toggles, keyboard navigation, scrubbing, volume adjustments, and mute toggle.
  • Persistent Media Library: Embedded SQLite media database (rusqlite with WAL mode) tracking duration, resolution, codecs, frame rate, and playback positions.
  • Playlists & Auto-Advancement: Create, rename, delete, and reorder playlists with seamless EOF auto-advancement to subsequent videos.
  • Offscreen Thumbnail Generation: Automatic background video thumbnail extraction cached deterministically and served via the secure custom protocol.
  • Smart Resume Playback: Remembers your exact playback position across restarts and prompts to resume where you left off.
  • Native Windows Title Bar: Dynamic DWM dark, light, and AMOLED title bar theming integrated with Windows 10/11 system preferences.
  • Strict Tauri 2 Security: Fine-grained capability scopes, sandboxed WebView2 execution, validated IPC handlers, and zero exposure of raw pointers or shell commands.

System Requirements

  • Operating System: Windows 10 or Windows 11 (64-bit / x64)
  • Runtime Dependencies: WebView2 Runtime (pre-installed on Windows 10/11) and Universal C Runtime
  • Node.js (for Development & Building): Node.js 18+ (Node.js 20 or 22 recommended) with npm
  • Rust Toolchain (for Building native backend): Rust 1.77+ with x86_64-pc-windows-msvc target

Native Engine Setup (libmpv)

Nosved Player relies on native Windows x64 libmpv-2.dll located at:

windows/x64/libmpv-2.dll

Because libmpv-2.dll is a large binary (~115MB), it is ignored by Git (*.dll) to keep the repository lightweight. When building from source, verify that windows/x64/libmpv-2.dll exists on disk before running the application.


Getting Started (Development)

1. Install Dependencies

npm install

2. Run the Development Server

Launch the Vite frontend development server and Tauri 2 native shell:

npm run tauri:dev

The desktop window will launch automatically with live reloading for the React renderer and hot-recompile for Rust backend commands.


Production Packaging & Distribution

Nosved Player Desktop is packaged using Tauri's native Windows bundling system targeting Windows x64. The native libmpv-2.dll binary and required runtime dependencies are bundled alongside the executable.

Build Commands

# Validate TypeScript and build production web frontend
npm run build

# Run all Rust unit and integration tests
npm run tauri:test

# Run full JavaScript, packaging, and native smoke test suite
npm test

# Build production Windows x64 NSIS Installer (.exe)
npm run tauri:build:nsis

# Build standalone portable distribution bundle
npm run tauri:build:portable

Generated Artifacts

Release outputs are generated inside src-tauri/target/release/bundle/:

  • NSIS Installer: src-tauri/target/release/bundle/nsis/Nosved Player Desktop_0.1.0_x64-setup.exe
    • Installs to the per-user AppData directory (no administrator privileges required).
    • Creates Start Menu and Desktop shortcuts.
    • Safe uninstaller preserves user library databases and thumbnail caches.
  • Portable Distribution Bundle: src-tauri/target/release/bundle/portable/
    • Standalone release folder containing nosved-player-desktop.exe, libmpv-2.dll, and runtime assets ready for distribution.

Desktop User Guide

Opening Videos

  1. Click Open Video File on the main player screen, or use the sidebar navigation to import media.
  2. Select any supported video format (.mp4, .mkv, .webm, .avi, .mov, .flv, .ts, .m4v, .wmv).
  3. Hardware-accelerated playback starts immediately.

Keyboard & Mouse Shortcuts

Key / Action Function
Space Toggle Play / Pause (or Replay from beginning if finished)
F Toggle Fullscreen mode
Esc Exit Fullscreen or dismiss resume prompt
Double Click / Double Tap Toggle Fullscreen on video surface
Left Arrow Seek backward 5 seconds
Right Arrow Seek forward 5 seconds
Up Arrow Increase volume by 5%
Down Arrow Decrease volume by 5%
M Toggle Mute

Fullscreen Experience

  • When entering Fullscreen (F or double-clicking the video), the video expands to fill your screen.
  • Controls automatically hide after 5 seconds of cursor inactivity.
  • Moving your mouse or touching the screen instantly reveals the translucent playback controls overlay.
  • High-DPI displays (125%, 150%, 200%) are natively scaled without offset margins or black borders.

Playlists

  1. Navigate to the Playlists tab in the sidebar.
  2. Click New Playlist to create a named playlist.
  3. Open a playlist and click Add Media to add videos from your library.
  4. Drag and drop or use the reorder options to adjust playback sequence.
  5. Playing a video from a playlist will automatically play the next video in order upon reaching the end.

Library & History

  • The Library tab catalogs imported media with extracted metadata (resolution, codecs, FPS, duration) and generated thumbnails.
  • The Recent tab displays your watch history. Clicking any recent item will resume playback from your last saved position.

Persistent Application Data

All user data is stored safely in your standard Windows User Profile directory and is never overwritten during application updates or uninstalls:

  • Database: %APPDATA%\nosved-player-desktop\nosved_media.db
  • Thumbnails: %APPDATA%\nosved-player-desktop\thumbnails\

Security Architecture

Nosved Player Desktop enforces strict desktop security boundaries:

  • Sandboxed WebView2 Renderer: The React frontend runs in a sandboxed Microsoft Edge WebView2 control with zero direct Node.js or OS primitives.
  • Type-Safe Tauri API: All communication is handled via strongly-typed Tauri invoke() commands and bounded event listeners.
  • Strict Capabilities: Tauri capability configurations restrict IPC invocation only to explicitly declared commands and approved origins.
  • Navigation Lock: All external web navigations and popup windows are blocked at the native webview layer.
  • Safe Path Validation: Every file path passed to the backend is validated against canonical Windows absolute path rules to prevent directory traversal.

Known Limitations & Current Status

  • Target Platform: Windows 10 and Windows 11 (64-bit / x64).
  • Native Runtime Binary: libmpv-2.dll (~115MB) is bundled via Tauri packaging in release installers/portable bundles or supplied locally in windows/x64/ for source builds.
  • Hardware Acceleration: Requires Direct3D 11 compatible graphics hardware/drivers for optimal zero-copy rendering.

License

Private / Proprietary. All rights reserved.

About

Modern, high-performance Windows desktop video player built with Tauri 2, Rust, React, TypeScript, and libmpv.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages