From 78a7061c14f97409dfe2f925e0d99b5027b1f5ee Mon Sep 17 00:00:00 2001 From: scattertv Date: Sat, 6 Mar 2021 12:12:38 -0500 Subject: [PATCH] remove field observer on video.position --- source/Main.brs | 11 ----------- source/ShowScenes.brs | 1 - 2 files changed, 12 deletions(-) diff --git a/source/Main.brs b/source/Main.brs index 1bb4d661..d527fbbb 100644 --- a/source/Main.brs +++ b/source/Main.brs @@ -415,17 +415,6 @@ sub Main() changeSubtitleDuringPlayback(trackSelected) end if end if - else if isNodeEvent(msg, "position") - video = msg.getRoSGNode() - if video.position >= video.duration and not video.content.live then - stopPlayback() - if video.showID = invalid then - RemoveCurrentGroup() - else - MarkItemWatched(video.id) - autoPlayNextEpisode(video.id, video.showID) - end if - end if else if isNodeEvent(msg, "fire") ReportPlayback(group, "update") else if isNodeEvent(msg, "state") diff --git a/source/ShowScenes.brs b/source/ShowScenes.brs index a9f7cb65..225a73d6 100644 --- a/source/ShowScenes.brs +++ b/source/ShowScenes.brs @@ -385,7 +385,6 @@ function CreateVideoPlayerGroup(video_id, audio_stream_idx = 1) video.observeField("backPressed", m.port) video.observeField("selectSubtitlePressed", m.port) video.observeField("state", m.port) - video.observeField("position", m.port) timer.control = "start" timer.observeField("fire", m.port)