Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Mar 28, 2024
1 parent 72a0b3a commit b61c5fe
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## UnRelease

## [1.2.34-beta.0]

- fix index.ui.js

## [1.2.33]

- pause before source changeing.
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/core",
"version": "1.2.33",
"version": "1.2.34-beta.0",
"description": "Oh! Another HTML5 video player.",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/public/ohls.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@
<body>
<div id="oplayer"></div>

<script src="https://cdn.jsdelivr.net/npm/@oplayer/core@latest/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@oplayer/ui@latest/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@oplayer/[email protected]/dist/index.ui.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@oplayer/[email protected]/dist/airplay.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@oplayer/[email protected]/dist/chromecast.min.js"></script>

Expand Down
1 change: 1 addition & 0 deletions packages/plugins/src/airplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class AirPlay implements PlayerPlugin {

this.player = player

//https://developer.apple.com/documentation/webkitjs/adding_an_airplay_button_to_your_safari_media_controls
player.$video.addEventListener('webkitplaybacktargetavailabilitychanged', (e: any) => {
if (e.availability === 'available') {
this.registerUI()
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/src/chromecast.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Player, { PlayerPlugin, loadSDK, isIOS, Source } from '@oplayer/core'
import type { Player, PlayerPlugin, Source } from '@oplayer/core'
import { loadSDK, isIOS } from '@oplayer/core'

const IS_CHROME = !!globalThis.chrome

Expand Down

0 comments on commit b61c5fe

Please sign in to comment.