Skip to content

Commit

Permalink
Enable fmp4 by default for native player
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Nov 8, 2024
1 parent 5ebf8e4 commit 462340d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions stores/SettingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class SettingStore {
/**
* Is fMP4 enabled for the native video player
*/
isFmp4Enabled = false;
isFmp4Enabled = true;

/**
* EXPERIMENTAL: Is the native audio player enabled
Expand All @@ -85,7 +85,7 @@ export default class SettingStore {
this.systemThemeId = null;
this.isSystemThemeEnabled = false;
this.isNativeVideoPlayerEnabled = false;
this.isFmp4Enabled = false;
this.isFmp4Enabled = true;

this.isExperimentalNativeAudioPlayerEnabled = false;
this.isExperimentalDownloadsEnabled = false;
Expand Down
8 changes: 4 additions & 4 deletions stores/__tests__/SettingStore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('SettingStore', () => {
expect(store.isSystemThemeEnabled).toBe(false);
expect(store.theme).toBe(Themes.dark);
expect(store.isNativeVideoPlayerEnabled).toBe(false);
expect(store.isFmp4Enabled).toBe(false);
expect(store.isFmp4Enabled).toBe(true);
expect(store.isExperimentalDownloadsEnabled).toBe(false);
});

Expand Down Expand Up @@ -88,7 +88,7 @@ describe('SettingStore', () => {
store.systemThemeId = 'dark';
store.isSystemThemeEnabled = true;
store.isNativeVideoPlayerEnabled = true;
store.isFmp4Enabled = true;
store.isFmp4Enabled = false;
store.isExperimentalDownloadsEnabled = true;

expect(store.activeServer).toBe(99);
Expand All @@ -100,7 +100,7 @@ describe('SettingStore', () => {
expect(store.isSystemThemeEnabled).toBe(true);
expect(store.theme).toBe(Themes.dark);
expect(store.isNativeVideoPlayerEnabled).toBe(true);
expect(store.isFmp4Enabled).toBe(true);
expect(store.isFmp4Enabled).toBe(false);
expect(store.isExperimentalDownloadsEnabled).toBe(true);

store.reset();
Expand All @@ -114,7 +114,7 @@ describe('SettingStore', () => {
expect(store.isSystemThemeEnabled).toBe(false);
expect(store.theme).toBe(Themes.dark);
expect(store.isNativeVideoPlayerEnabled).toBe(false);
expect(store.isFmp4Enabled).toBe(false);
expect(store.isFmp4Enabled).toBe(true);
expect(store.isExperimentalDownloadsEnabled).toBe(false);
});
});

0 comments on commit 462340d

Please sign in to comment.