ovenplayer 0.10.46 → 0.10.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +22 -22
- package/dist/ovenplayer.js +1 -1
- package/dist/ovenplayer.js.map +1 -1
- package/package.json +4 -4
- package/src/js/api/Configurator.js +272 -270
- package/src/js/api/caption/Loader.js +67 -67
- package/src/js/api/caption/Manager.js +143 -141
- package/src/js/api/constants.js +622 -621
- package/src/js/api/provider/html5/Provider.js +570 -563
- package/src/js/api/provider/html5/providers/WebRTCLoader.js +1 -1
- package/src/js/view/components/controls/settingPanel/captionPanel.js +42 -42
- package/src/js/view/components/controls/settingPanel/main.js +321 -321
- package/src/js/view/components/helpers/contextPanel.js +44 -38
- package/src/js/view/components/helpers/contextPanelTemplate.js +19 -9
|
@@ -341,7 +341,7 @@ const WebRTCLoader = function (provider,
|
|
|
341
341
|
if (checkOpusIsStereo(sdp.sdp, opusFormatNumber)) {
|
|
342
342
|
|
|
343
343
|
//If offer has opus and if it is stereo, munge local sdp to force stereo=1
|
|
344
|
-
//Thanks to community https://github.com/
|
|
344
|
+
//Thanks to community https://github.com/OvenMediaLabs/OvenMediaEngine/issues/203
|
|
345
345
|
desc.sdp = mungeSdpForceStereoOpus(desc.sdp, opusFormatNumber);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by hoho on 2018. 7. 26..
|
|
3
|
-
*/
|
|
4
|
-
import OvenTemplate from 'view/engine/OvenTemplate';
|
|
5
|
-
import PanelManager from "view/global/PanelManager";
|
|
6
|
-
import LA$ from 'utils/likeA$';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const CaptionPanel = function($container, api, data){
|
|
10
|
-
const $root = LA$(api.getContainerElement());
|
|
11
|
-
let panelManager = PanelManager();
|
|
12
|
-
|
|
13
|
-
data.setFront = function(isFront){
|
|
14
|
-
if(isFront){
|
|
15
|
-
$root.find("#"+data.id).removeClass("background");
|
|
16
|
-
}else{
|
|
17
|
-
$root.find("#"+data.id).addClass("background");
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const onRendered = function($current, template){
|
|
21
|
-
//Do nothing
|
|
22
|
-
};
|
|
23
|
-
const onDestroyed = function(template){
|
|
24
|
-
//Do nothing
|
|
25
|
-
};
|
|
26
|
-
const events = {
|
|
27
|
-
"click .op-setting-item": function (event, $current, template) {
|
|
28
|
-
event.preventDefault();
|
|
29
|
-
let value = LA$(event.currentTarget).attr("op-data-value");
|
|
30
|
-
api.setCurrentCaption(parseFloat(value));
|
|
31
|
-
panelManager.clear();
|
|
32
|
-
},
|
|
33
|
-
"click .op-setting-title" : function(event, $current, template){
|
|
34
|
-
event.preventDefault();
|
|
35
|
-
panelManager.removeLastItem();
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return OvenTemplate($container, "CaptionPanel", api.getConfig(), data, events, onRendered, onDestroyed );
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by hoho on 2018. 7. 26..
|
|
3
|
+
*/
|
|
4
|
+
import OvenTemplate from 'view/engine/OvenTemplate';
|
|
5
|
+
import PanelManager from "view/global/PanelManager";
|
|
6
|
+
import LA$ from 'utils/likeA$';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const CaptionPanel = function($container, api, data){
|
|
10
|
+
const $root = LA$(api.getContainerElement());
|
|
11
|
+
let panelManager = PanelManager();
|
|
12
|
+
|
|
13
|
+
data.setFront = function(isFront){
|
|
14
|
+
if(isFront){
|
|
15
|
+
$root.find("#"+data.id).removeClass("background");
|
|
16
|
+
}else{
|
|
17
|
+
$root.find("#"+data.id).addClass("background");
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const onRendered = function($current, template){
|
|
21
|
+
//Do nothing
|
|
22
|
+
};
|
|
23
|
+
const onDestroyed = function(template){
|
|
24
|
+
//Do nothing
|
|
25
|
+
};
|
|
26
|
+
const events = {
|
|
27
|
+
"click .op-setting-item": function (event, $current, template) {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
let value = LA$(event.currentTarget).attr("op-data-value");
|
|
30
|
+
api.setCurrentCaption(parseFloat(value));
|
|
31
|
+
panelManager.clear();
|
|
32
|
+
},
|
|
33
|
+
"click .op-setting-title" : function(event, $current, template){
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
panelManager.removeLastItem();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return OvenTemplate($container, "CaptionPanel", api.getConfig(), data, events, onRendered, onDestroyed );
|
|
40
|
+
|
|
41
|
+
};
|
|
42
|
+
|
|
43
43
|
export default CaptionPanel;
|