-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update chromecast.ts * try fix chromecast
- Loading branch information
Showing
8 changed files
with
193 additions
and
158 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
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 |
---|---|---|
|
@@ -212,8 +212,8 @@ | |
<div id="oplayer"></div> | ||
|
||
<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].2/dist/airplay.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@oplayer/[email protected].2/dist/chromecast.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@oplayer/[email protected].3/dist/airplay.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@oplayer/[email protected].3/dist/chromecast.min.js"></script> | ||
|
||
<script> | ||
var hlsScriptCdn = 'https://cdn.jsdelivr.net/npm/@oplayer/hls@latest/dist/index.hls.js' | ||
|
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,19 @@ | ||
## Chromecast | ||
|
||
```shell | ||
npm i @oplayer/plugins | ||
``` | ||
|
||
```js | ||
import { AirPlay } from '@oplayer/plugins' | ||
|
||
Player.make('#oplayer').use([new AirPlay()]).create() | ||
``` | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/airplay.min.js"></script> | ||
|
||
<script> | ||
Player.make('#oplayer').use([new OAirPlay()]).create() | ||
</script> | ||
``` |
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
Oops, something went wrong.