forked from PearInc/PearPlayer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
谢庭
authored and
谢庭
committed
Nov 28, 2017
1 parent
ad8a57c
commit 2043cb9
Showing
5 changed files
with
19 additions
and
11 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
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/pearplayer@latest"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/pearplayer@2.4.0"></script> | ||
<video id="video" controls></video> | ||
<script> | ||
var player = new PearPlayer('#video', { | ||
src: 'https://qq.webrtc.win/tv/Pear-Demo-Yosemite_National_Park.mp4' | ||
}); | ||
if (PearPlayer.isSupported()) { | ||
var player = new PearPlayer('#video', { | ||
src: 'https://qq.webrtc.win/tv/Pear-Demo-Yosemite_National_Park.mp4' | ||
}); | ||
} else { | ||
alert('PearPlayer is not supported'); | ||
} | ||
</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