@24i/smartapps-bigscreen-rnv-build-engine 0.18.2-alpha.2846 → 0.18.2-beta.0
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/dist/src/sdks/sdk-androidtv/sdkAndroidtv.js +0 -5
- package/dist/templates/platforms/androidtv/project/app/build.gradle +1 -3
- package/dist/templates/platforms/androidtv/project/app/src/main/kotlin/com/twentyfouri/tvbridge/configuration/BridgeConfig.kt +0 -1
- package/dist/templates/platforms/androidtv/project/app/src/main/kotlin/com/twentyfouri/tvbridge/global/utils/PlayerFactoryBitmovinCustomized.kt +1 -3
- package/dist/templates/platforms/androidtv/project/app/src/main/kotlin/com/twentyfouri/tvbridge/webview/model/MediaEventType.kt +0 -1
- package/dist/templates/platforms/androidtv/project/app/src/main/kotlin/com/twentyfouri/tvbridge/webview/viewmodel/WebViewModel.kt +0 -11
- package/dist/templates/platforms/vegaos/project/src/messageHandler.ts +1 -0
- package/package.json +1 -1
|
@@ -200,8 +200,6 @@ const configureEntryUrl = (c) => {
|
|
|
200
200
|
const entryUrl = getHostedAppEntryUrl(c);
|
|
201
201
|
const bitmovinLicense = process.env.BITMOVIN_LICENSE
|
|
202
202
|
|| rnv_1.Common.getConfigProp(c, c.platform, 'bitmovinLicense', '');
|
|
203
|
-
const bitmovinAnalytics = process.env.BITMOVIN_ANALYTICS
|
|
204
|
-
|| rnv_1.Common.getConfigProp(c, c.platform, 'bitmovinAnalytics', '');
|
|
205
203
|
const npawAccountCode = process.env.NPAW_ACCOUNT_CODE
|
|
206
204
|
|| rnv_1.Common.getConfigProp(c, c.platform, 'npawAccountCode', '');
|
|
207
205
|
const enableImaSdk = !!rnv_1.Common.getConfigProp(c, c.platform, 'enableImaSdk', false);
|
|
@@ -211,9 +209,6 @@ const configureEntryUrl = (c) => {
|
|
|
211
209
|
}, {
|
|
212
210
|
pattern: '{{BITMOVIN_LICENSE}}',
|
|
213
211
|
override: bitmovinLicense,
|
|
214
|
-
}, {
|
|
215
|
-
pattern: '{{BITMOVIN_ANALYTICS}}',
|
|
216
|
-
override: bitmovinAnalytics,
|
|
217
212
|
}, {
|
|
218
213
|
pattern: '{{NPAW_ACCOUNT_CODE}}',
|
|
219
214
|
override: npawAccountCode,
|
|
@@ -7,13 +7,12 @@ plugins {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
def bitmovinLicense = '{{BITMOVIN_LICENSE}}'
|
|
10
|
-
def bitmovinAnalytics = '{{BITMOVIN_ANALYTICS}}'
|
|
11
10
|
def useBitmovin = bitmovinLicense != ''
|
|
12
11
|
def npawAccountCode = '{{NPAW_ACCOUNT_CODE}}'
|
|
13
12
|
def useNpawPlugin = npawAccountCode != ''
|
|
14
13
|
def useImaSdk = {{ENABLE_IMA_SDK}}
|
|
15
14
|
|
|
16
|
-
def player_version = '0.8.0-alpha.
|
|
15
|
+
def player_version = '0.8.0-alpha.41'
|
|
17
16
|
|
|
18
17
|
android {
|
|
19
18
|
namespace = 'com.twentyfouri.tvbridge'
|
|
@@ -43,7 +42,6 @@ android {
|
|
|
43
42
|
|
|
44
43
|
buildConfigField "String", "APP_URL", '"{{APP_URL}}"'
|
|
45
44
|
buildConfigField "String", "BITMOVIN_LICENSE", "\"$bitmovinLicense\""
|
|
46
|
-
buildConfigField "String", "BITMOVIN_ANALYTICS", "\"$bitmovinAnalytics\""
|
|
47
45
|
buildConfigField "String", "NPAW_ACCOUNT_CODE", "\"$npawAccountCode\""
|
|
48
46
|
buildConfigField "Boolean", "startWithHighVideoQuality", "true"
|
|
49
47
|
}
|
|
@@ -14,6 +14,5 @@ class BridgeConfig {
|
|
|
14
14
|
var customizableUrl: Boolean = BuildConfig.DEBUG
|
|
15
15
|
var startWithHighVideoQuality: Boolean = false
|
|
16
16
|
var bitmovinLicense: String = BuildConfig.BITMOVIN_LICENSE
|
|
17
|
-
var bitmovinAnalytics: String = BuildConfig.BITMOVIN_ANALYTICS
|
|
18
17
|
var npawAccount: String = BuildConfig.NPAW_ACCOUNT_CODE
|
|
19
18
|
}
|
|
@@ -2,7 +2,6 @@ package com.twentyfouri.tvbridge.global.utils
|
|
|
2
2
|
|
|
3
3
|
import android.app.Application
|
|
4
4
|
import com.twentyfouri.player.bitmovin.NpawConfig
|
|
5
|
-
import com.twentyfouri.player.bitmovin.PlayerBitmovin
|
|
6
5
|
import com.twentyfouri.player.bitmovin.PlayerFactoryBitmovin
|
|
7
6
|
import com.twentyfouri.tvbridge.configuration.BridgeConfig
|
|
8
7
|
|
|
@@ -13,7 +12,6 @@ class PlayerFactoryBitmovinCustomized(config: BridgeConfig, application: Applica
|
|
|
13
12
|
NpawConfig(config.npawAccount, application)
|
|
14
13
|
} else {
|
|
15
14
|
null
|
|
16
|
-
}
|
|
17
|
-
config.bitmovinAnalytics.ifEmpty { PlayerBitmovin.ANALYTICS_LICENSE_DEFERRED }
|
|
15
|
+
}
|
|
18
16
|
),
|
|
19
17
|
PlayerFactoryVersion
|
|
@@ -14,7 +14,6 @@ object MediaEventType {
|
|
|
14
14
|
const val LOADEDMETADATA = "loadedmetadata"
|
|
15
15
|
const val LOADEDDATA = "loadeddata"
|
|
16
16
|
const val WAITING = "waiting"
|
|
17
|
-
const val DURATION_CHANGE = "durationchange"
|
|
18
17
|
const val SEEKING = "seeking"
|
|
19
18
|
const val SEEKED = "seeked"
|
|
20
19
|
const val KEY_PRESS = "keypress"
|
|
@@ -29,7 +29,6 @@ import com.twentyfouri.player.base.AudioTrack
|
|
|
29
29
|
import com.twentyfouri.player.base.CanPlayEvent
|
|
30
30
|
import com.twentyfouri.player.base.ChangeAudioTrackEvent
|
|
31
31
|
import com.twentyfouri.player.base.ChangeTextTrackEvent
|
|
32
|
-
import com.twentyfouri.player.base.DurationChangeEvent
|
|
33
32
|
import com.twentyfouri.player.base.EndedEvent
|
|
34
33
|
import com.twentyfouri.player.base.ErrorEvent
|
|
35
34
|
import com.twentyfouri.player.base.Event
|
|
@@ -47,7 +46,6 @@ import com.twentyfouri.player.base.SeekingEvent
|
|
|
47
46
|
import com.twentyfouri.player.base.Source
|
|
48
47
|
import com.twentyfouri.player.base.SourceDrmPlayready
|
|
49
48
|
import com.twentyfouri.player.base.SourceDrmWidevine
|
|
50
|
-
import com.twentyfouri.player.base.SourceImaAds
|
|
51
49
|
import com.twentyfouri.player.base.TextTrack
|
|
52
50
|
import com.twentyfouri.player.base.TimeUpdateEvent
|
|
53
51
|
import com.twentyfouri.player.base.TrackKind
|
|
@@ -180,11 +178,6 @@ class WebViewModel @Inject constructor(
|
|
|
180
178
|
|
|
181
179
|
private fun logSource(source: Source) {
|
|
182
180
|
Log.i("BridgeVideo", "Url: ${source.url}")
|
|
183
|
-
when (val ads = source.ads) {
|
|
184
|
-
is SourceImaAds -> {
|
|
185
|
-
Log.i("BridgeVideo", "Ads: ${ads.url}")
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
181
|
when (val drmModel = source.drm.firstOrNull()) {
|
|
189
182
|
is SourceDrmWidevine -> {
|
|
190
183
|
Log.i("BridgeVideo", "DRM: " + drmModel.packageName)
|
|
@@ -373,10 +366,6 @@ class WebViewModel @Inject constructor(
|
|
|
373
366
|
jsBridge.bridgeAndroidToJavaScript_MediaEvent(MediaEventType.PLAYING)
|
|
374
367
|
}
|
|
375
368
|
|
|
376
|
-
is DurationChangeEvent -> {
|
|
377
|
-
jsBridge.bridgeAndroidToJavaScript_MediaEvent(MediaEventType.DURATION_CHANGE)
|
|
378
|
-
}
|
|
379
|
-
|
|
380
369
|
is SeekingEvent -> {
|
|
381
370
|
jsBridge.bridgeAndroidToJavaScript_MediaEvent(MediaEventType.SEEKING)
|
|
382
371
|
}
|
|
@@ -11,6 +11,7 @@ type WebViewRef = RefObject<WebViewMethods | null>;
|
|
|
11
11
|
export const createMessageHandler =
|
|
12
12
|
(webRef: WebViewRef) => (event: WebViewMessageEvent) => {
|
|
13
13
|
const message = JSON.parse(event.nativeEvent.data);
|
|
14
|
+
|
|
14
15
|
switch (message.type) {
|
|
15
16
|
case 'EXIT_APP':
|
|
16
17
|
BackHandler.exitApp();
|
package/package.json
CHANGED