@24i/smartapps-bigscreen-rnv-build-engine 0.18.2-alpha.2845 → 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/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
|
@@ -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