Added support for unproxied dash on desktop

This commit is contained in:
WardPearce
2024-05-18 19:00:04 +12:00
parent 6b5c66aea4
commit 1932244bd2
5 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 10
versionName "1.0.10"
versionCode 11
versionName "1.0.11"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Materialious",
"version": "1.0.10",
"version": "1.0.11",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.0.10",
"version": "1.0.11",
"private": true,
"scripts": {
"dev": "vite dev",
+6 -1
View File
@@ -2,6 +2,7 @@
import 'vidstack/bundle';
import { page } from '$app/stores';
import { Capacitor } from '@capacitor/core';
import type { Page } from '@sveltejs/kit';
import { SponsorBlock, type Category } from 'sponsorblock-api';
import { onDestroy, onMount } from 'svelte';
@@ -138,7 +139,11 @@
}
if (get(playerDashStore)) {
src = [{ src: data.video.dashUrl + '?local=true', type: 'application/dash+xml' }];
src = [{ src: data.video.dashUrl, type: 'application/dash+xml' }];
if (Capacitor.getPlatform() !== 'electron' || proxyVideos) {
(src[0] as { src: string }).src += '?local=true';
}
player.addEventListener('dash-can-play', async () => {
await loadPlayerPos();
+1 -1
View File
@@ -5,7 +5,7 @@ import json
import os
import re
LATEST_VERSION = "1.0.10"
LATEST_VERSION = "1.0.11"
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")