Skip to content

Add streaming support to uploaded videos #28

Description

@lying-quill

hi, first of all, great project! and thanks for running it for free <3
anyway, one thing i noticed was that, uploaded videos are not streamable.
like, when you tap "play" on a video, you have wait for it to finish downloading
before you can watch it on telegram. that is super annoying.

so, i did a little digging and found out that cobalt adds the streaming flags to the remuxed video,
and uhh, that led me to reading cobold's source code.
i'm not familiar with it, and i just read it for half an hour, but i think adding this line here should do the trick:

 return {
   ...analyzedData,
   fileName: fixedFilename,
+  supportsStreaming: analyzedData.type === "video",
   file,
 }

i haven't tested this, but i believe this should fix it. let me know if you need me to do a pull request.

thanks

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