inbasic / media-player

A simple yet powerful media player for browser built on top of video.js
https://webextension.org/listing/the-media-player.html
37 stars 27 forks source link

[Feature Request / Question] Natively playback video files opened from URL #41

Open ScrewTSW opened 1 year ago

ScrewTSW commented 1 year ago

Would it be possible to hijack the chrome native player and run the extension whenever a video from web URL is opened in a tab?

Currently Google Chrome has issues with playback even with it's supposedly natively supported formats: Screenshot_20230417_113727 Screenshot_20230417_113711

They simply do not load. It would be awesome if this player could replace the native chromium player in the tab.

Google Chrome info:

Google Chrome | 112.0.5615.49 (Official Build) (64-bit)
Revision | bd2a7bcb881c11e8cfe3078709382934e3916914-refs/branch-heads/5615@{#936}
OS | Linux
JavaScript | V8 11.2.214.9

Video info:

ffprobe version 5.1.3 Copyright (c) 2007-2022 the FFmpeg developers built with gcc 12 (GCC)
Input #0, matroska,webm, from '/home/tdancs/Downloads/output.webm':
  Metadata:
    ENCODER         : Lavf58.29.100
  Duration: 00:02:26.50, start: 0.000000, bitrate: 93 kb/s
  Stream #0:0: Video: vp9 (Profile 1), gbrp(pc, gbr/unknown/unknown), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn (default)
    Metadata:
      ENCODER         : Lavc58.54.100 libvpx-vp9
      DURATION        : 00:02:26.500000000