remove field observer on video.position

This commit is contained in:
scattertv 2021-03-06 12:12:38 -05:00
parent d3d8a1e60c
commit 78a7061c14
2 changed files with 0 additions and 12 deletions

View File

@ -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")

View File

@ -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)