archiveweb.page icon indicating copy to clipboard operation
archiveweb.page copied to clipboard

Archive of FB video and reels is not playing on https://replayweb.page/

Open tsemachh opened this issue 1 year ago • 2 comments

Recreate the bug: Archive from the chrome extension in facebook either:

  1. Reel - like https://www.facebook.com/reel/261061716437457
  2. Video - like https://www.facebook.com/watch/?v=10225216681907826&ref=sharing

Do not try to replay them on the extension because of extension replay crash chrome bug Instead download them as WACZ and replay them on the https://replayweb.page/

Expected results: Videos are playing good. Actual results: Both videos are not playable.

Attaching few hints why it's not working: bgvideorecord.txt fbvideoconsole.txt fbvideoreplayconsole.txt

bgreelrecord.txt The reel replay is just like the video replay so I guess it's same issue.

I think we have some recursion on the redirect at:(But I am not sure :-))

            async getReplayResponse(t, e) {
                let r = this.getCanonRedirect(t);
                if (r)
                    return r;
                const i = {
                    pageId: t.pageId
                };
                r = await this.store.getResource(t, this.prefix, e, i);
                const {request: n, url: s} = t;
                if (("video" === n.destination || "audio" === n.destination) && "navigate" !== n.mode)
                    for (; r && r.status >= 301 && r.status < 400; ) {
                        const n = new URL(r.headers.get("location"),s);
                        t.url = n.href,
                        console.log(`resolve redirect ${s} -> ${t.url}`),
                        r = await this.store.getResource(t, this.prefix, e, i)
                    }
                return r
            }

tsemachh avatar Jan 07 '24 15:01 tsemachh