diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..b881a01d --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @cloudinary/video diff --git a/.github/workflows/release-edge.yml b/.github/workflows/release-edge.yml index 113ab2e2..cfebfb56 100644 --- a/.github/workflows/release-edge.yml +++ b/.github/workflows/release-edge.yml @@ -4,6 +4,7 @@ on: push: branches: - 'edge' + workflow_dispatch: jobs: release: @@ -30,6 +31,7 @@ jobs: uses: google-github-actions/release-please-action@v3 id: release with: + token: ${{ secrets.BOT_TOKEN }} release-type: node release-as: ${{ steps.calculate-edge-version.outputs.next-edge }} default-branch: ${{ github.ref_name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fd63f6c..41db39b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ jobs: uses: google-github-actions/release-please-action@v3 id: release with: + token: ${{ secrets.BOT_TOKEN }} release-type: node default-branch: ${{ github.ref_name }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 11734ebf..39f9aa25 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -20,6 +20,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Build + run: npm run build-all + - name: Unit tests run: npm run test:unit diff --git a/CHANGELOG.md b/CHANGELOG.md index e39a52a4..1a354c00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -596,4 +596,4 @@ Other changes * Set seekThumbnails to false by default * Generate https sources by default * Move expose-loader to dev dependencies -* Update dependencies +* Update dependencies \ No newline at end of file diff --git a/babel.config.js b/babel.config.js index 8d3706cf..c2c621b3 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,14 @@ module.exports = { - presets: ['@babel/preset-env'], + presets: [ + [ + '@babel/preset-env', + { + targets: { + browsers: ['>0.25%', 'not ie 11', 'not op_mini all'] + } + } + ] + ], env: { test: { plugins: ['@babel/plugin-transform-runtime'] diff --git a/docs/360.html b/docs/360.html index 348092ef..a0a7e0fb 100644 --- a/docs/360.html +++ b/docs/360.html @@ -10,8 +10,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/_template.html b/docs/_template.html index 7d3533ea..af95fd85 100644 --- a/docs/_template.html +++ b/docs/_template.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/adaptive-streaming.html b/docs/adaptive-streaming.html index 32cada44..487d32d4 100644 --- a/docs/adaptive-streaming.html +++ b/docs/adaptive-streaming.html @@ -19,8 +19,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + diff --git a/docs/analytics.html b/docs/analytics.html index bce11f55..d4d51c99 100644 --- a/docs/analytics.html +++ b/docs/analytics.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/api.html b/docs/api.html index bd59b22a..3bf6bc8f 100644 --- a/docs/api.html +++ b/docs/api.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/audio.html b/docs/audio.html index 058fb2a7..d59fe58a 100644 --- a/docs/audio.html +++ b/docs/audio.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/autoplay-fallback.html b/docs/autoplay-fallback.html index 8c1e6928..0ae89504 100644 --- a/docs/autoplay-fallback.html +++ b/docs/autoplay-fallback.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/autoplay-on-scroll.html b/docs/autoplay-on-scroll.html index f92fb99b..ca115618 100644 --- a/docs/autoplay-on-scroll.html +++ b/docs/autoplay-on-scroll.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> diff --git a/docs/chapters.html b/docs/chapters.html index f715978e..5fba7bfc 100644 --- a/docs/chapters.html +++ b/docs/chapters.html @@ -17,8 +17,8 @@ We're loading scripts & style dynamically for development/testing. Real-world usage would look like this: - - + + --> @@ -33,14 +33,12 @@ chapters: { url: 'https://res.cloudinary.com/tsachi/raw/upload/tests/snow_horses_chapters_k1e1ff.vtt' }, + chaptersButton: true }); const playerSourceConf = cloudinary.videoPlayer('player-config', { cloud_name: 'demo', - controlBar: { - pictureInPictureToggle: false, - chaptersButton: true - }, + chaptersButton: true }); playerSourceConf.source('snow_horses', { @@ -150,14 +148,12 @@
- Playlist by tag documentation -
- --- - <video - id="player" - controls - autoplay - muted - class="cld-video-player" - width="500"> - </video> - -
-- - var player = cloudinary.videoPlayer('player', { cloud_name: 'demo' }) - - var sorter = function(a, b) { - if (a.publicId < b.publicId) return 1; - if (a.publicId > b.publicId) return -1; - return 0; - }; - - // Fetch playlist by tag. Since this operation involves an API call - // the function returns a Promise when the operation completes. - // The return value is 'player'. - player.playlistByTag('video_race', { - sorter: sorter, - autoAdvance: true, - repeat: true, - presentUpcoming: false - }).then(function() { - var divElem = document.querySelector("#playlist-data"); - var list = player.playlist().list().map(function(source) { - return source.publicId() - }).join(', '); - - divElem.innerText = "Playlist: " + list - }); - -
-