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:
commit
0b2729a850
3 changed files with 10 additions and 2 deletions
|
@ -84,7 +84,7 @@ export const locales = {
|
||||||
ko,
|
ko,
|
||||||
sl,
|
sl,
|
||||||
ta,
|
ta,
|
||||||
"zh-HANT": zhhant,
|
"zh-Hant": zhhant,
|
||||||
is,
|
is,
|
||||||
ru,
|
ru,
|
||||||
gl,
|
gl,
|
||||||
|
|
|
@ -32,6 +32,9 @@ export function MediaSession() {
|
||||||
|
|
||||||
const updatePositionState = useCallback(
|
const updatePositionState = useCallback(
|
||||||
(position: number) => {
|
(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 the updated position needs to be buffered, queue an update
|
||||||
if (position > data.progress.buffered) {
|
if (position > data.progress.buffered) {
|
||||||
shouldUpdatePositionState.current = true;
|
shouldUpdatePositionState.current = true;
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{
|
{
|
||||||
"routes": [{ "src": "/[^.]+", "dest": "/", "status": 200 }],
|
"rewrites": [
|
||||||
|
{
|
||||||
|
"source": "/(.*)",
|
||||||
|
"destination": "/"
|
||||||
|
}
|
||||||
|
],
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"source": "/(.*)",
|
"source": "/(.*)",
|
||||||
|
|
Loading…
Reference in a new issue