[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


I made a website where you can upload content.
Today I coded it so that you can embed the posted content on Discord.
For image threads it works fine, but video threads were more difficult.
I got it to work for 1.0MB videos or smaller. Any video larger than that will not show up on Discord, just the link.
What causes this limitation? My server or Discord?
>>
oh, apparently it was because hadnt defined the dimensions of the video
echo "<meta property='og:video:width' content='$width' />";
echo "<meta property='og:video:height' content='$height' />";

Now the limit is about 5 mb.
I guess my server is so slow that it takes Discord too long to get the video and it just gives up



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.