remove field observer on video.position
This commit is contained in:
parent
d3d8a1e60c
commit
78a7061c14
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user