From 46f9f2b3c904e53c5035e04799c0a887d347c6c6 Mon Sep 17 00:00:00 2001 From: Arthur Jamet Date: Thu, 8 Aug 2024 14:32:29 +0200 Subject: [PATCH] Front: CI: rename workflow --- .github/actions/cache-front/action.yml | 3 +++ .github/workflows/front.yml | 4 ++-- front/composables/player/context.ts | 5 ++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/actions/cache-front/action.yml b/.github/actions/cache-front/action.yml index 5c70813..84efe52 100644 --- a/.github/actions/cache-front/action.yml +++ b/.github/actions/cache-front/action.yml @@ -3,6 +3,9 @@ description: 'Cache for Front' runs: using: "composite" steps: + - name: Add build dependencies to container + shell: sh + run: apk add --update --no-progress tar - name: Cache uses: actions/cache@v3 with: diff --git a/.github/workflows/front.yml b/.github/workflows/front.yml index 4c0b234..3d1f0aa 100644 --- a/.github/workflows/front.yml +++ b/.github/workflows/front.yml @@ -1,4 +1,4 @@ -name: "Front (Vue)" +name: "Front" on: pull_request: branches: [ main ] @@ -54,7 +54,7 @@ jobs: - uses: ./.github/actions/cache-front - run: yarn - name: Check format - run: yarn run prettier --check + run: yarn run prettier --check . Lint: if: ${{ needs.changes.outputs.front == 'true' && github.event_name == 'pull_request' }} runs-on: ubuntu-latest diff --git a/front/composables/player/context.ts b/front/composables/player/context.ts index c8f668c..8129754 100644 --- a/front/composables/player/context.ts +++ b/front/composables/player/context.ts @@ -2,7 +2,7 @@ import Hls from "hls.js"; import { API } from "~/api/api"; import type { File } from "~/models/domain/file"; import type { FileInfo } from "~/models/domain/file-info"; -import { v4 as uuidv4 } from 'uuid'; +import { v4 as uuidv4 } from "uuid"; const canBePlayedNatively = (info: FileInfo, videoRef: HTMLVideoElement) => { const codec = info.mimeCodec; @@ -69,8 +69,8 @@ export const usePlayerContext = (props: { player.error?.code == MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED ) { - console.log("Moving to transcoding"); playMode.value = "hls"; + playHls(); } console.error(error); }; @@ -86,7 +86,6 @@ export const usePlayerContext = (props: { player.onended = props.onEnd; }; const playDirectVideo = () => { - console.log(canBePlayedNatively(i, player)) if (!canBePlayedNatively(i, player)) { playMode.value = "hls"; playHls();