Skip to content

tabCapture with MV3 #137

Open
Open
@aeharding

Description

@aeharding

Will #134 mean that audio/video capture will be restored in an "event" page? (Example: tabCapture API.)

(Since audio/video capture is completely unsupported in service workers: https://developer.chrome.com/docs/extensions/mv3/migrating_to_service_workers/#audio_vidio)

If so - I don't understand the limitation of 5 minutes for a maximum lifetime of the event page.

Right now, with MV2, I capture Blobs via MediaRecorder in the background page. Chrome is smart about managing those Blobs with memory/disk, as I need to temporarily store them before they can be transmitted over the network to the server.

In MV3's event page proposal from #134, at least I'll be able to access the tabCapture API (supposedly). But because event pages are still ephemeral, does that mean I'll have to serialize and deserialize multiple megabytes of video capture as base64 strings and store them in chrome.storage every couple seconds as new blobs come in (since even pages have a 5 minute lifetime)?

Isn't that really CPU intensive versus just leaving a persistent background page open?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions