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.
@@ -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/AirenSoft/OvenMediaEngine/issues/203
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;