Skip to content

Intercept live player media streams (IDM-style network sniffing) instead of re-parsing page URL #27

Closed

Description

@iemirakman

User Request

[Feature / Architecture Idea] Intercept live player media streams (IDM-style network sniffing) instead of re-parsing the page URL

Hi! Thanks again for your awesome work on this download manager.

I'd like to share a technical suggestion regarding how the browser extension captures streaming media (especially on sites like YouTube):

The current issue with URL re-parsing:
Right now, when clicking the download button in the extension, the app/parser makes a separate request to fetch video formats from the page URL. On YouTube, repeated external parser requests tied to a logged-in Google account session often trigger shadow throttling / bot detection — resulting in YouTube blocking 1080p/4K DASH streams and returning only the legacy 360p progressive stream (until browser cookies are cleared).

The IDM-style solution (live stream sniffing):
Instead of re-parsing the webpage from scratch, the browser extension (especially in Firefox via webRequest or in Chromium via webRequest passive listeners) can passively monitor the actual media segment/manifest requests (googlevideo.com, .m3u8, .mpd) that the web player already legitimately requested and authenticated while playing the video.

Passing those live, already-authorized video & audio stream URLs directly to the desktop client for downloading and FFmpeg merging would:

  1. Completely avoid YouTube's 360p parser throttling on logged-in accounts.
  2. Allow instant detection of separate video and audio tracks right in the browser popup.
  3. Work seamlessly even on videos requiring login/age verification without risky cookie extraction.

Hope this architectural idea helps make the media capture rock-solid!

Originally posted by @Wind092 in #14


Technical Notes & Scope

  • Use passive (non-blocking) webRequest listeners in the browser extension to stay compatible with both Firefox and Chromium Manifest V3.
  • Capture and deduplicate live media manifests/streams (.m3u8, .mpd, googlevideo.com video/audio tracks) per tab ID and clear cached entries on tab navigation/close.
  • Forward captured stream URLs along with required request headers (Referer, User-Agent, Cookie if needed) to the desktop app for direct download or FFmpeg muxing.

Acceptance Criteria

  • Extension passively detects active video/audio streams per tab without triggering extra page re-parse requests.
  • Detected streams (separate video/audio or HLS/DASH manifests) appear in the extension popup with resolution/format metadata.
  • Forwarding live streams to the desktop client downloads and merges audio+video cleanly via FFmpeg.
  • Works on authenticated/age-restricted sessions without triggering parser throttling.
Pinned by iemirakman

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. added this to the v1.1.0 milestone on Nov 20, 2026
  3. Wind092 commented on Nov 21, 2026

    @Wind092

    Thanks for the quick update! However, the extensions are still not published on the official stores (neither Mozilla Add-ons AMO nor the Chrome Web Store), so users still have to load them manually via developer mode / about:debugging (which resets on reboot in standard Firefox and triggers developer mode warnings in Chromium browsers).

    Publishing the extensions directly to both the official Mozilla Add-ons store and Chrome Web Store (so the installer/app can simply open the store pages for a proper 1-click install) is really the only clean way for everyday users. Just wanted to let you know!

  4. modified the milestones: v1.1.0, , v1.0.1 on Nov 21, 2026
  5. iemirakman commented on Nov 21, 2026

    @iemirakman
    MemberAuthor

    Thanks @Wind092!

    Live player media stream detection (HLS .m3u8, DASH .mpd, and direct streams with page referrer/header forwarding) shipped in v1.0.1.

    We have moved the official store publishing discussion (Chrome Web Store & Mozilla Add-ons AMO) over to #44 so it can be tracked independently. Closing this issue as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions