File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ description: 'Cache for Front'
3
3
runs :
4
4
using : " composite"
5
5
steps :
6
+ - name : Add build dependencies to container
7
+ shell : sh
8
+ run : apk add --update --no-progress tar
6
9
- name : Cache
7
10
uses : actions/cache@v3
8
11
with :
Original file line number Diff line number Diff line change 1
- name : " Front (Vue) "
1
+ name : " Front"
2
2
on :
3
3
pull_request :
4
4
branches : [ main ]
54
54
- uses : ./.github/actions/cache-front
55
55
- run : yarn
56
56
- name : Check format
57
- run : yarn run prettier --check
57
+ run : yarn run prettier --check .
58
58
Lint :
59
59
if : ${{ needs.changes.outputs.front == 'true' && github.event_name == 'pull_request' }}
60
60
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Hls from "hls.js";
2
2
import { API } from "~/api/api" ;
3
3
import type { File } from "~/models/domain/file" ;
4
4
import type { FileInfo } from "~/models/domain/file-info" ;
5
- import { v4 as uuidv4 } from ' uuid' ;
5
+ import { v4 as uuidv4 } from " uuid" ;
6
6
7
7
const canBePlayedNatively = ( info : FileInfo , videoRef : HTMLVideoElement ) => {
8
8
const codec = info . mimeCodec ;
@@ -69,8 +69,8 @@ export const usePlayerContext = (props: {
69
69
player . error ?. code ==
70
70
MediaError . MEDIA_ERR_SRC_NOT_SUPPORTED
71
71
) {
72
- console . log ( "Moving to transcoding" ) ;
73
72
playMode . value = "hls" ;
73
+ playHls ( ) ;
74
74
}
75
75
console . error ( error ) ;
76
76
} ;
@@ -86,7 +86,6 @@ export const usePlayerContext = (props: {
86
86
player . onended = props . onEnd ;
87
87
} ;
88
88
const playDirectVideo = ( ) => {
89
- console . log ( canBePlayedNatively ( i , player ) )
90
89
if ( ! canBePlayedNatively ( i , player ) ) {
91
90
playMode . value = "hls" ;
92
91
playHls ( ) ;
You can’t perform that action at this time.
0 commit comments