1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Merge remote-tracking branch 'movie-web/dev'

This commit is contained in:
Cooper Ransom 2024-03-16 14:14:36 -04:00
commit 0b2729a850
3 changed files with 10 additions and 2 deletions

View file

@ -84,7 +84,7 @@ export const locales = {
ko,
sl,
ta,
"zh-HANT": zhhant,
"zh-Hant": zhhant,
is,
ru,
gl,

View file

@ -32,6 +32,9 @@ export function MediaSession() {
const updatePositionState = useCallback(
(position: number) => {
// If the browser doesn't support setPositionState, return
if (typeof navigator.mediaSession.setPositionState !== "function") return;
// If the updated position needs to be buffered, queue an update
if (position > data.progress.buffered) {
shouldUpdatePositionState.current = true;

View file

@ -1,5 +1,10 @@
{
"routes": [{ "src": "/[^.]+", "dest": "/", "status": 200 }],
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
],
"headers": [
{
"source": "/(.*)",