forked from videojs/video.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from edirub/update-8.4.1
Update 8.4.1
- Loading branch information
Showing
427 changed files
with
20,893 additions
and
16,430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Browsers that we support | ||
|
||
last 3 major versions | ||
Firefox ESR | ||
Chrome >= 53 | ||
not dead | ||
not ie 11 | ||
not baidu 7 | ||
not and_qq 11 | ||
not and_uc 12 | ||
not kaios 2 | ||
not op_mini all | ||
not op_mob 64 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: General issue | ||
description: Report a general issue with Video.js | ||
labels: "needs: triage" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for using Video.js and contributing by opening an issue. Before you start, please check this list: | ||
* If you are not reporting a bug, but want to ask a general question, use [discussions](https://github.com/videojs/video.js/discussions) instead. | ||
* Check the [FAQ](https://videojs.com/guides/faqs) and [troubleshooting guides](https://videojs.com/guides/troubleshooting). | ||
* If there is an existing open issue for exactly the same problem, comment there instead. | ||
* However, be careful not to comment on old and closed issues. Your new comment is unlikely to be noticed. | ||
* Take care to make sure it is really the exact same issue. Conflating tangentially related issues is counterproductive. If in doubt, open as a new issue. | ||
* Add useful new information, such as a new reproducible case to help narrow down the issue. | ||
* If the issue is with a specific plugin, it's generally better to open an issue on the plugin repository instead. | ||
* Please do take the time to give detailed information, and include a test case. A detailed issue with actionable information will get a better response than a vague anecdote. | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: | | ||
Please give a detailed description of the issue. | ||
What did you expect to happen, and what happened? | ||
validations: | ||
required: true | ||
- type: input | ||
id: testcase | ||
validations: | ||
required: true | ||
attributes: | ||
label: Reduced test case | ||
description: | | ||
Please add a URL to a [reduced test case](https://stackoverflow.com/help/minimal-reproducible-example) where the issue can be observed. We have a [starter template](https://codepen.io/gkatsev/pen/GwZegv?editors=1000#0) on Codepen. | ||
**Without a test case** it's unlikely your issue can be actioned. | ||
For a playback problem, including the stream URL is _essential._ | ||
placeholder: https:// | ||
- type: textarea | ||
id: str | ||
attributes: | ||
label: Steps to reproduce | ||
description: Detailed steps to reproduce the issue. | ||
value: | | ||
1. | ||
2. | ||
3. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: errors | ||
attributes: | ||
label: Errors | ||
description: If there is an error displayed in the player or in the console, please include them here. | ||
- type: input | ||
id: version | ||
attributes: | ||
label: What version of Video.js are you using? | ||
description: Please include all relevant versions. If not using the latest version, explain why not in the description above. | ||
placeholder: e.g. vX.Y.Z | ||
validations: | ||
required: true | ||
- type: input | ||
id: plugins | ||
attributes: | ||
label: Video.js plugins used. | ||
- type: input | ||
id: browser | ||
attributes: | ||
label: What browser(s) including version(s) does this occur with? | ||
placeholder: e.g. Chrome 100 | ||
validations: | ||
required: true | ||
- type: input | ||
id: os | ||
attributes: | ||
label: What OS(es) and version(s) does this occur with? | ||
placeholder: e.g. Windows 11 | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
should-skip: | ||
continue-on-error: true | ||
runs-on: ubuntu-latest | ||
# Map a step output to a job output | ||
outputs: | ||
should-skip-job: ${{steps.skip-check.outputs.should_skip}} | ||
steps: | ||
- id: skip-check | ||
uses: fkirc/[email protected] | ||
with: | ||
github_token: ${{github.token}} | ||
|
||
ci: | ||
needs: should-skip | ||
if: ${{needs.should-skip.outputs.should-skip-job != 'true' || github.ref == 'refs/heads/main'}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
test-type: [unit, coverage] | ||
env: | ||
BROWSER_STACK_USERNAME: ${{secrets.BROWSER_STACK_USERNAME}} | ||
BROWSER_STACK_ACCESS_KEY: ${{secrets.BROWSER_STACK_ACCESS_KEY}} | ||
CI_TEST_TYPE: ${{matrix.test-type}} | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: read node version from .nvmrc | ||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
id: nvm | ||
|
||
- name: update apt cache on linux w/o browserstack | ||
run: sudo apt-get update | ||
|
||
- name: install ffmpeg/pulseaudio for firefox on linux w/o browserstack | ||
run: sudo apt-get install ffmpeg pulseaudio | ||
|
||
- name: start pulseaudio for firefox on linux w/o browserstack | ||
run: pulseaudio -D | ||
|
||
- name: setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{steps.nvm.outputs.NVMRC}}' | ||
cache: npm | ||
|
||
# turn off the default setup-node problem watchers... | ||
- run: echo "::remove-matcher owner=eslint-compact::" | ||
- run: echo "::remove-matcher owner=eslint-stylish::" | ||
- run: echo "::remove-matcher owner=tsc::" | ||
|
||
- name: npm install | ||
run: npm i --prefer-offline --no-audit | ||
|
||
- name: run npm test | ||
uses: coactions/setup-xvfb@v1 | ||
with: | ||
run: npm run test | ||
|
||
- name: coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
files: './test/dist/coverage/coverage-final.json' | ||
fail_ci_if_error: true | ||
if: ${{startsWith(env.CI_TEST_TYPE, 'coverage')}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Lock Threads' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 1 * * 1,4' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
|
||
concurrency: | ||
group: lock | ||
|
||
jobs: | ||
action: | ||
if: ${{ github.repository_owner == 'videojs' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v4 | ||
with: | ||
issue-inactive-days: '60' | ||
process-only: 'issues' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
# match semver versions | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
# match semver pre-releases | ||
- "v[0-9]+.[0-9]+.[0-9]+-*" | ||
jobs: | ||
release: | ||
env: | ||
NETLIFY_BASE: 'videojs-preview.netlify.app' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# We need to fetch the entire history as conventional-changelog needs | ||
# access to any number of git commits to build the changelog. | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: read node version from .nvmrc | ||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
id: nvm | ||
|
||
- name: setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{steps.nvm.outputs.NVMRC}}' | ||
cache: npm | ||
# this line is required for the setup-node action to be able to run the npm publish below. | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: npm install | ||
run: npm i --prefer-offline --no-audit | ||
|
||
# publish runs build for us via a prepublishOnly script | ||
- name: npm release | ||
run: npm publish --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: get current changelog | ||
run: node -e "console.log(require('./build/current-changelog.js')())" > CHANGELOG-LATEST.md | ||
|
||
- name: get dashed package version for netlify | ||
run: echo "VERSION=$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")" >> $GITHUB_OUTPUT | ||
id: get-version | ||
shell: bash | ||
if: env.NETLIFY_BASE != '' | ||
|
||
- name: add netlify preview to release notes | ||
run: | | ||
echo "" >> CHANGELOG-LATEST.md | ||
echo "[netlify preview for this version](https://v${{steps.get-version.outputs.VERSION}}--${{env.NETLIFY_BASE}})" >> CHANGELOG-LATEST.md | ||
if: env.NETLIFY_BASE != '' | ||
|
||
- name: Create Github release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: CHANGELOG-LATEST.md | ||
token: ${{github.token}} | ||
prerelease: true | ||
files: dist/*.zip | ||
discussion_category_name: Releases | ||
|
||
deploy: | ||
needs: release | ||
runs-on: ubuntu-latest | ||
environment: Deploy | ||
env: | ||
VJS_VERSION: ${{ github.event.head_commit.message }} | ||
S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
S3_ACCESS: ${{ secrets.AWS_S3_ACCESS }} | ||
S3_KEY: ${{ secrets.AWS_S3_KEY }} | ||
steps: | ||
- name: setup node | ||
uses: actions/setup-node@v3 | ||
|
||
- name: npm install video.js | ||
run: npm install "video.js@$VJS_VERSION" | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET }} | ||
aws-region: us-east-1 | ||
|
||
- name: Copy files to the CDN with the AWS CLI | ||
run: | | ||
aws s3 cp node_modules/video.js/dist s3://${S3_BUCKET}/${S3_KEY}/${VJS_VERSION}/ --acl ${S3_ACCESS} --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.