-
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 audio track default display issue (#338)
* fix: default audio track is not displayed * feat:新增音轨组件的md说明 * chore: build assets for 1.1.3 --------- Co-authored-by: ji <[email protected]>
- Loading branch information
1 parent
95c63b9
commit d36757d
Showing
7 changed files
with
83 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!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-1.1.2.js"></script> | ||
</head> | ||
<body> | ||
<div id="player-con"></div> | ||
<script> | ||
/* Make sure that the source video has multiple audio tracks */ | ||
var player = new Aliplayer({ | ||
id: "player-con", | ||
source: "https://vod.h5video.vip/e7feffa0d46471edbfc00675a0ec0102/multiple.m3u8", | ||
width: "100%", | ||
height: "500px", | ||
autoplay: true, | ||
isLive: false, | ||
controlBarVisibility: 'always', | ||
components: [{ | ||
name: 'TrackComponent', | ||
type: AliPlayerComponent.TrackComponent, | ||
args: [] | ||
}] | ||
}, function (player) { | ||
console.log("The player is created"); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
1 change: 1 addition & 0 deletions
1
customComponents/dist/aliplayer-components/aliplayercomponents-1.1.3.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Playback speed component | ||
|
||
Other Languages: [简体中文](https://github.com/aliyunvideo/AliyunPlayer_Web/blob/master/customComponents/src/components/TrackComponent/README.zh_CN.md) | ||
|
||
The Audio Track Switching component is used to switch the audio track language of the video | ||
|
||
### Usage | ||
|
||
Reference this component and add the following code to the player configuration: | ||
|
||
```js | ||
components: [{ | ||
name: 'TrackComponent', | ||
type: AliPlayerComponent.TrackComponent | ||
}] | ||
``` | ||
|
||
**After the Audio Track speed component is added, the Audio Track speed setting in the player is hidden.** | ||
|
18 changes: 18 additions & 0 deletions
18
customComponents/src/components/TrackComponent/README.zh_CN.md
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,18 @@ | ||
## 倍速播放组件 | ||
|
||
其他语言: [English](https://github.com/aliyunvideo/AliyunPlayer_Web/blob/master/customComponents/src/components/TrackComponent/README.md) | ||
|
||
音轨切换组件是用来切换视频的音轨语言 | ||
|
||
### 使用方法 | ||
|
||
引用当前组件, 播放器配置中添加如下代码: | ||
|
||
```js | ||
components: [{ | ||
name: 'TrackComponent', | ||
type: AliPlayerComponent.TrackComponent | ||
}] | ||
``` | ||
|
||
**添加音轨播放组件之后, 播放器的设置里面的音轨选项会被隐藏** |
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