Browse Source

install ffmpeg

Daniel Zlotin 7 years ago
parent
commit
ee85c77b6d
2 changed files with 1 additions and 1 deletions
  1. 1
    0
      .travis.yml
  2. 0
    1
      scripts/test.e2e.ios.js

+ 1
- 0
.travis.yml View File

20
       before_install:
20
       before_install:
21
         - source ./scripts/env/env.ios.sh
21
         - source ./scripts/env/env.ios.sh
22
       script:
22
       script:
23
+        - brew install ffmpeg --with-ffplay
23
         # - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
24
         # - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
24
         - ./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"
25
         - ./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"
25
 
26
 

+ 0
- 1
scripts/test.e2e.ios.js View File

16
 }
16
 }
17
 
17
 
18
 function startRecording() {
18
 function startRecording() {
19
-  exec.execSync(`ffmpeg -f avfoundation -list_devices true -i ""`);
20
   const screenId = exec.execSyncRead(`ffmpeg -f avfoundation -list_devices true -i "" 2>&1 | grep "Capture screen 0" | sed -e "s/.*\\[//" -e "s/\\].*//"`);
19
   const screenId = exec.execSyncRead(`ffmpeg -f avfoundation -list_devices true -i "" 2>&1 | grep "Capture screen 0" | sed -e "s/.*\\[//" -e "s/\\].*//"`);
21
   exec.execAsync(`ffmpeg -f avfoundation -i "${screenId}:none" out.avi`);
20
   exec.execAsync(`ffmpeg -f avfoundation -i "${screenId}:none" out.avi`);
22
 }
21
 }