-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix quality component hiding issue (#342)
* 修复清晰度组件在ios设备上点击不隐藏问题 * chore: make it easier to import development script in demo files --------- Co-authored-by: ji <[email protected]>
- Loading branch information
1 parent
46986ed
commit bdabffa
Showing
9 changed files
with
52 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="IE=edge" > | ||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/> | ||
<title>Aliplayer Functions</title> | ||
<link rel="stylesheet" href="https://g.alicdn.com/apsara-media-box/imp-web-player/2.27.1/skins/default/aliplayer-min.css" /> | ||
<script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/apsara-media-box/imp-web-player/2.27.1/aliplayer-min.js"></script> | ||
<!-- 请下载之后使用 --> | ||
<script src="./aliplayercomponents.js"></script> | ||
</head> | ||
<body> | ||
<div id="player-con"></div> | ||
<script> | ||
var player = new Aliplayer({ | ||
id: "player-con", | ||
source: JSON.stringify({"HD":"//player.alicdn.com/resource/player/qupai.mp4", "SD":"//player.alicdn.com/video/editor.mp4"}), | ||
width: "100%", | ||
autoSize: true, | ||
clickPause: true, | ||
components: [{ | ||
name: 'QualityComponent', | ||
type: AliPlayerComponent.QualityComponent, | ||
args: [function(definition,desc) { | ||
console.log(definition + '-----' + desc) | ||
}] | ||
}] | ||
}, function(player) { | ||
console.log("The player is created"); | ||
|
||
/* Register the sourceloaded of the player, query the resolution of the video, invoke the resolution component, and call the setCurrentQuality method to set the resolution. */ | ||
player.on('sourceloaded', function(params) { | ||
var paramData = params.paramData | ||
var desc = paramData.desc | ||
var definition = paramData.definition | ||
player.getComponent('QualityComponent').setCurrentQuality(desc, definition) | ||
}) | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
1 change: 1 addition & 0 deletions
1
customComponents/dist/aliplayer-components/aliplayercomponents-1.1.4.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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