junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 134 forks source link

Threads Video Rendering Issue #234

Open sf2288 opened 11 months ago

sf2288 commented 11 months ago

Hi guys, Hi, I want to render Videos in HTML "video" tag from Threads App in my Next.js App, but I am getting a "CORS error". Although, It works in the Browser directly. Any solution or any workaround to this?

FYI, The Images are working fine. Only the issue is with Videos.

Thanks.

aleclarson commented 11 months ago

The only way around CORS is a proxy server

sf2288 commented 11 months ago

@aleclarson I looked into it, but didn't help much, Can you please elaborate on it or send me some examples that show how to render/play Threads Video in my Next.js app? I am still confused, as to why Threads Images are getting displayed but not the Video (.mp4) link in the Video tag.

aleclarson commented 11 months ago

ChatGPT should be able to advise you on it 👍