Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-11-03 | Add link to source code | Arjun Satarkar | |
2024-11-02 | Clean up directory structure, improve README | Arjun Satarkar | |
Also this should make GitHub ignore the vendored code for the purpose of detecting programming languages used in the repository. See https://github.com/github-linguist/linguist/blob/main/docs/overrides.md#vendored-code | |||
2024-11-02 | Remove Discord Activity code from this branch | Arjun Satarkar | |
2024-08-01 | Discord activity - show video filenamediscord-activity | Arjun Satarkar | |
2024-07-29 | Change video layout, add alignment button for Discord activity | Arjun 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-28 | Refactor | Arjun Satarkar | |
2024-07-28 | Use textContent instead of innerText to write | Arjun Satarkar | |
2024-07-28 | Discord activity: reduce code duplication | Arjun Satarkar | |
2024-07-27 | Discord activity: use mobile safe area insets for layout | Arjun Satarkar | |
2024-07-27 | Discord activity: get updated instance room info ASAP on iframe load | Arjun Satarkar | |
2024-07-27 | Finish Discord activity implementation | Arjun Satarkar | |
2024-07-26 | Add Discord Activity functionality (mostly) + general improvements | Arjun Satarkar | |
2024-07-17 | Disable seekbar unless we're the host | Arjun 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-17 | Initial commit | Arjun Satarkar | |