Compare commits

..
Author SHA1 Message Date
dependabot[bot]andGitHub 666838057f Bump actions/checkout from 4 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 05:43:34 +00:00
8 changed files with 14 additions and 50 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ jobs:
name: Build Android Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- name: Install dependencies (bun)
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
name: Build iOS Example App
runs-on: macOS-15
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Bun.js
+1 -1
View File
@@ -381,7 +381,7 @@ function PlayerExample({
isAutoQuality && styles.selectedTrackButtonText,
]}
>
Auto{isAutoQuality && tracks.renditions.find(r => r.selected) ? ` (${tracks.renditions.find(r => r.selected)!.height}p)` : ""}
Auto
</Text>
</Pressable>
{tracks.renditions.length === 0 ? (
+3 -3
View File
@@ -24,9 +24,9 @@
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "20.2.0",
"@react-native-community/cli-platform-android": "20.2.0",
"@react-native-community/cli-platform-ios": "20.2.0",
"@react-native-community/cli": "20.1.0",
"@react-native-community/cli-platform-android": "20.1.0",
"@react-native-community/cli-platform-ios": "20.1.0",
"@react-native/babel-preset": "0.84.1",
"@react-native/eslint-config": "0.84.1",
"@react-native/metro-config": "0.84.1",
-1
View File
@@ -10,7 +10,6 @@
"scripts": {
"dev": "cd example && bun start",
"android": " cd example && bunx react-native run-android --no-packager --port 8082",
"web": "cd example && bun web",
"typecheck": "tsc --noEmit && tsc -p plugin/tsconfig.json --noEmit",
"build:plugin": "tsc -p plugin/tsconfig.json",
"build": "bun run typecheck && bob build && bun run build:plugin",
+7 -41
View File
@@ -1,5 +1,4 @@
import type { VideoPlayerStore } from "@videojs/core/dom";
import type Hls from "hls.js";
import { stateMapper } from "./events.web";
import type {
OmniPlayer,
@@ -18,11 +17,6 @@ export class WebOmniPlayer implements OmniPlayer {
this._store = store;
}
private getHls(): Hls | null {
const media = this._store.target?.media;
return (media?.engine as Hls | undefined) ?? null;
}
source: Source | null = null;
get showNotification(): boolean {
@@ -84,9 +78,7 @@ export class WebOmniPlayer implements OmniPlayer {
}
get isAutoQuality(): boolean {
const hls = this.getHls();
if (!hls) return false;
return hls.autoLevelEnabled;
return true;
}
play(): void {
@@ -120,31 +112,16 @@ export class WebOmniPlayer implements OmniPlayer {
}
get videos(): Track[] {
// hls.js does not support alternative video tracks (e.g. camera angles)
return [];
}
selectVideo(_video: Track): void {
// hls.js does not support alternative video tracks
}
selectVideo(video: Track): void {}
get audios(): Track[] {
const hls = this.getHls();
if (!hls) return [];
const currentTrackId = hls.audioTrack;
return hls.audioTracks.map((track, index) => ({
id: index.toString(),
label: track.name,
language: track.lang,
selected: index === currentTrackId,
}));
return [];
}
selectAudio(audio: Track): void {
const hls = this.getHls();
if (!hls) return;
hls.audioTrack = parseInt(audio.id, 10);
}
selectAudio(audio: Track): void {}
get subtitles(): Track[] {
return this._store.textTrackList
@@ -168,21 +145,10 @@ export class WebOmniPlayer implements OmniPlayer {
}
get rendition(): Rendition[] {
const hls = this.getHls();
if (!hls) return [];
const currentLevel = hls.currentLevel;
return hls.levels.map((level, index) => ({
id: index.toString(),
width: level.width,
height: level.height,
bitrate: level.bitrate,
selected: index === currentLevel,
}));
return [];
}
selectRendition(rendition?: Rendition): void {
const hls = this.getHls();
if (!hls) return;
hls.nextLevel = rendition ? parseInt(rendition.id, 10) : -1;
selectRendition(_rendition?: Rendition): void {
// Auto quality is handled by videojs/HLS
}
}
-1
View File
@@ -24,7 +24,6 @@ export const OmniView = ({
autoPlay={autoplay}
playsInline
crossOrigin="anonymous"
style={{ width: "100%", height: "100%", objectFit: "cover" }}
/>
)}
</VideoPlayer.Container>