mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Merge remote-tracking branch 'movie-web/dev'
This commit is contained in:
commit
0b2729a850
3 changed files with 10 additions and 2 deletions
|
@ -84,7 +84,7 @@ export const locales = {
|
|||
ko,
|
||||
sl,
|
||||
ta,
|
||||
"zh-HANT": zhhant,
|
||||
"zh-Hant": zhhant,
|
||||
is,
|
||||
ru,
|
||||
gl,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"routes": [{ "src": "/[^.]+", "dest": "/", "status": 200 }],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"destination": "/"
|
||||
}
|
||||
],
|
||||
"headers": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
|
|
Loading…
Reference in a new issue