Skip to content

Commit 61f53fc

Browse files
committed
Update code docs
1 parent cc20ca8 commit 61f53fc

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

docs/components_video_VideoPlayerView.bs.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@
367367
sourceNode.unobserveField("buttonSelected")
368368
sourceNode.unobserveField("wasClosed")
369369

370+
session.video.Delete()
370371
m.global.sceneManager.callFunc("popScene")
371372
end sub
372373

@@ -375,13 +376,14 @@
375376
sourceNode.close = true
376377
end sub
377378

378-
sub showPlaybackErrorDialog(errorMessage as string)
379+
sub showPlaybackErrorDialog(errorMessage = "" as string)
379380
dialog = createObject("roSGNode", "Dialog")
380381
dialog.title = tr("Error During Playback")
381382
dialog.buttons = [tr("OK")]
382383
dialog.message = errorMessage
383384
dialog.observeField("buttonSelected", "onPlaybackErrorButtonSelected")
384385
dialog.observeField("wasClosed", "onPlaybackErrorDialogClosed")
386+
385387
m.top.getScene().dialog = dialog
386388
end sub
387389

@@ -647,13 +649,10 @@
647649
m.global.sceneManager.callfunc("popScene")
648650
else
649651
' If an error was encountered, Display dialog
652+
m.top.unobserveField("state")
650653
showPlaybackErrorDialog(tr("Error During Playback"))
651-
session.video.Delete()
652654
end if
653-
654-
655655
else if m.top.state = "playing"
656-
657656
' Check if next episode is available
658657
if isValid(m.top.showID)
659658
if m.top.showID <> "" and not m.checkedForNextEpisode and m.top.content.contenttype = 4
@@ -677,7 +676,6 @@
677676
m.playbackTimer.control = "stop"
678677
ReportPlayback("stop")
679678
m.playReported = false
680-
session.video.Delete()
681679
else if m.top.state = "finished"
682680
m.playbackTimer.control = "stop"
683681
ReportPlayback("finished")
@@ -746,7 +744,6 @@
746744

747745
' Stop playback and exit player
748746
m.top.control = "stop"
749-
session.video.Delete()
750747
end if
751748
end if
752749

docs/module-VideoPlayerView.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/source_api_Items.bs.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
return tmp
134134
else if data.type = "Video"
135135
tmp = CreateObject("roSGNode", "VideoData")
136-
tmp.image = PosterImage(data.id)
137136
tmp.json = data
138137
return tmp
139138
else if data.type = "Trailer"

0 commit comments

Comments
 (0)