diff --git a/docs/api/components_ItemGrid_ItemGrid.bs.html b/docs/api/components_ItemGrid_ItemGrid.bs.html index b863644de..fe921ead8 100644 --- a/docs/api/components_ItemGrid_ItemGrid.bs.html +++ b/docs/api/components_ItemGrid_ItemGrid.bs.html @@ -304,7 +304,7 @@ { "Title": tr("TITLE"), "Name": "SortName" }, { "Title": tr("IMDB_RATING"), "Name": "CommunityRating" }, { "Title": tr("DATE_ADDED"), "Name": "DateCreated" }, - { "Title": tr("DATE_PLAYED"), "Name": "DatePlayed" }, + { "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed" }, { "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" }, { "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" }, { "Title": tr("Random"), "Name": "Random" }, diff --git a/docs/api/components_video_VideoPlayerView.bs.html b/docs/api/components_video_VideoPlayerView.bs.html index 54fd53c4a..ac764c940 100644 --- a/docs/api/components_video_VideoPlayerView.bs.html +++ b/docs/api/components_video_VideoPlayerView.bs.html @@ -11,6 +11,7 @@ m.top.getScene().findNode("overhang").visible = false userSettings = m.global.session.user.settings m.currentItem = m.global.queueManager.callFunc("getCurrentItem") + m.originalClosedCaptionState = invalid m.top.id = m.currentItem.id m.top.seekMode = "accurate" @@ -463,7 +464,12 @@ availableSubtitleTrackIndex = availSubtitleTrackIdx(selectedSubtitle.Track.TrackName) if availableSubtitleTrackIndex <> -1 if not selectedSubtitle.IsEncoded - m.top.globalCaptionMode = "On" + if selectedSubtitle.IsForced + ' If IsForced, make sure to remember the Roku global setting so we + ' can set it back when the video is done playing. + m.originalClosedCaptionState = m.top.globalCaptionMode + m.top.globalCaptionMode = "On" + end if m.top.subtitleTrack = m.top.availableSubtitleTracks[availableSubtitleTrackIndex].TrackName end if end if @@ -699,6 +705,12 @@ m.bufferCheckTimer.duration = 30 end if + if (state = "stop" or state = "finished") and m.originalClosedCaptionState <> invalid + m.log.debug("ReportPlayback() setting", m.top.globalCaptionMode, "back to", m.originalClosedCaptionState) + m.top.globalCaptionMode = m.originalClosedCaptionState + m.originalClosedCaptionState = invalid + end if + ' Report playstate via worker task playstateTask = m.global.playstateTask playstateTask.setFields({ status: state, params: params })