evmux-app-framework 0.0.39 → 0.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evmux-app-framework",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,9 +22,92 @@ import {availableRequests} from './AppsObserver'
22
22
  }
23
23
 
24
24
  async listScenes(requestObj) {
25
- return {
26
- userAppInstanceId: "26c6f221-b278-46c8-a69c-ce8379766e24"
27
- }
25
+ return window.mockScenes || [{
26
+ "id": 497,
27
+ "idx": 497,
28
+ "order": 0,
29
+ "name": "New Scene",
30
+ "stingerData": {
31
+ "idx": null,
32
+ "time": null,
33
+ "muted": false,
34
+ "speed": 1,
35
+ "volume": 100,
36
+ "transitionName": null,
37
+ "transitionDuration": 0
38
+ },
39
+ "backgroundColor": null,
40
+ "overWriteBackgroundColor": false,
41
+ "layers": [
42
+ {
43
+ "idx": "e9fe6623-4332-447c-bb1a-ccfe9f794bb3",
44
+ "type": "userapp",
45
+ "name": "TESTAPP",
46
+ "opacity": 100,
47
+ "bounds": {
48
+ "x": 1280,
49
+ "y": 720
50
+ },
51
+ "pos": {
52
+ "rot": 0,
53
+ "top": 8.397612310554674,
54
+ "left": 13.50375337545383,
55
+ "right": 19.829579957879496,
56
+ "bottom": 24.93572102277865
57
+ },
58
+ "crop": {
59
+ "top": 0,
60
+ "left": 0,
61
+ "right": 0,
62
+ "bottom": 0
63
+ },
64
+ "data": {
65
+ "adaptive": false,
66
+ "aspect": true,
67
+ "borderRadius": 0,
68
+ "userAppInstanceId": "4d532c22-363e-4028-824d-7b029f100916",
69
+ "userAppId": "ce5d32b3-7d6c-4e43-be02-4903d6b49acd",
70
+ "fixedSize": true,
71
+ "fixedSizeWidth": 1280,
72
+ "fixedSizeHeight": 720,
73
+ "verticalStreaming": {
74
+ "pos": {
75
+ "rot": 0,
76
+ "top": 35.052083333333336,
77
+ "left": 2.7777777777777777,
78
+ "right": 2.7777777777777857,
79
+ "bottom": 35.05208333333333
80
+ },
81
+ "crop": {
82
+ "top": 0,
83
+ "left": 0,
84
+ "right": 0,
85
+ "bottom": 0
86
+ },
87
+ "borderRadius": 0,
88
+ "aspect": true,
89
+ "bounds": {
90
+ "x": 1020,
91
+ "y": 574
92
+ },
93
+ "customBounds": {
94
+ "x": 1020,
95
+ "y": 574
96
+ },
97
+ "locked": false,
98
+ "hidden": false,
99
+ "fixedSizeWidth": 1020,
100
+ "fixedSizeHeight": 574
101
+ }
102
+ },
103
+ "order": 0
104
+ }
105
+ ],
106
+ "thumbnail": {
107
+ "landscape": "https://files.evmux.com/6/scenes/sc_tmb_4971715842178.jpg?Expires=1715885379&Signature=ORHKomQH7iaugP~fHJFYBgZfwoG2lyQOMORSbRld378vCvudJ5gFapWdQNfE~j97UOKuon0uwZ1F741k2YU3qWIFNklDdqU6zuJgxaDTHPM~~TvG9p-Nl0g4BBzGvlyR-JZbUCbpWtg9DczFnQbeFbWynHFdIOGwwh2OQYXuAHlW0v1UDuOnjGRU87XvZ~ReSCW844TuhaPCBPXoMiSt0MHDC-zk~ggmpb7~eQMPjTF5znOdcDB0DdRJ8j~7EYNCFGYGesErpPqH5kOMRLCwmjmvQ4gFJMkNEfPBGdQclanYiSw5iL7KsOErCUtS447euT7wDnRT1N1wgL0LYgJDdQ__&Key-Pair-Id=APKAJQZJ2AA6OYF4WJHA",
108
+ "portrait": null
109
+ }
110
+ }]
28
111
  }
29
112
 
30
113
  async switchScene(requestObj) {
@@ -55,7 +55,7 @@ export default class EvmuxAppsApiScene {
55
55
  componentId: this.evmuxAppsApi._componentId,
56
56
  data: {
57
57
  paramsObject,
58
- isLiveSide: new URLSearchParams(window.location.search).get("isLive")
58
+ isLiveSide: new URLSearchParams(window.location.search).get("isLive") === 'true'
59
59
  }
60
60
  }
61
61