aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-01Discord activity - show video filenameHEADmainArjun Satarkar
2024-07-29Change video layout, add alignment button for Discord activityArjun Satarkar
The button to snap the video to the left or right instead of the default center is because mobile Discord shows the user's avatar as a little floating window over the activity. This can infringe on the video if we're unlucky vis-a-vis screen aspect ratio and video aspect ratio; in practice we can often save ourselves by changing the video alignment so as to create a greater region of unused space in which the avatar can reside. Making this work required changes to how we set video dimensions. Previously we set the player's container to 100% width and height (technically 100svw and 100svh respectively), let video.js fill the container, and let it draw the actual video in the center of this area by itself. But this gives us no control over where the video is drawn, so we couldn't implement snapping. Any attempt to change this runs into the difficulty that it's really hard to substantively control video.js player dimensions without knowing the aspect ratio, which we don't. (Yes, I tried object-fit: contain; it didn't seem to do anything.) The solution is to default to 100% width and height on page load, and set them to better values once we load enough video metadata to know the aspect ratio. (This is all responsive using CSS media queries.)
2024-07-28RefactorArjun Satarkar
2024-07-28Discord activity: add per-instance room limitArjun Satarkar
We send all rooms for that instance to the client every few, seconds, so we shouldn't let the number grow without bound.
2024-07-28Use textContent instead of innerText to writeArjun Satarkar
2024-07-28Discord activity: reduce code duplicationArjun Satarkar
2024-07-27Discord activity: use mobile safe area insets for layoutArjun Satarkar
2024-07-27Don't use Application.compile_envArjun Satarkar
Everything should be runtime config.
2024-07-27Discord activity: get updated instance room info ASAP on iframe loadArjun Satarkar
2024-07-27Finish Discord activity implementationArjun Satarkar
2024-07-26Add Discord Activity functionality (mostly) + general improvementsArjun Satarkar
2024-07-17Disable seekbar unless we're the hostArjun Satarkar
This is just because it's inelegant to be able to seek and then be immediately reset. There are things it doesn't cover, like picture-in-picture, but that's fine.
2024-07-17Initial commitArjun Satarkar