Skip to content

Commit

Permalink
hls js as part of OvenPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
dygy committed Oct 5, 2023
1 parent 1d86437 commit efb26fa
Show file tree
Hide file tree
Showing 7 changed files with 1,505 additions and 138 deletions.
1,311 changes: 1,311 additions & 0 deletions demo/test.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ovenplayer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ovenplayer.js.map

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const player = OvenPlayer.create('player_id', options)

You can use OvenPlayer as a reusable [Vue.js](https://vuejs.org/) component.

```javascript
```vue
<script setup>
import OvenPlayerVue3 from "ovenplayer-vue3";
</script>
Expand Down Expand Up @@ -319,9 +319,7 @@ You need to place the `dash.js` first, and then `ovenplayer.js` as shown below:

### Initialize for HLS

If you want to play HLS, you need the [hls.js](https://github.com/video-dev/hls.js).

You need to place the `hls.js` first, and then `ovenplayer.js` as shown below:
OvenPlayer will use third party to initialize HLS [hls.js](https://github.com/video-dev/hls.js).

```markup
<!DOCTYPE html>
Expand All @@ -338,9 +336,6 @@ You need to place the `hls.js` first, and then `ovenplayer.js` as shown below:
<!-- OvenPlayer will be initialized inside this element -->
<div id="player_id"></div>
<!-- You need hls.js to play HLS. -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest/dist/hls.min.js"></script>
<!-- Load OvenPlayer via CDN -->
<script src="https://cdn.jsdelivr.net/npm/ovenplayer/dist/ovenplayer.js"></script>
Expand Down
Loading

0 comments on commit efb26fa

Please sign in to comment.