Change prerollactive function name
This commit is contained in:
parent
3b1207dc2f
commit
519a804403
|
@ -17,7 +17,7 @@ sub loadItems()
|
||||||
m.top.isIntro = false
|
m.top.isIntro = false
|
||||||
|
|
||||||
' Only show preroll once per queue
|
' Only show preroll once per queue
|
||||||
if m.global.queueManager.callFunc("prerollActive")
|
if m.global.queueManager.callFunc("isPrerollActive")
|
||||||
' Prerolls not allowed if we're resuming video
|
' Prerolls not allowed if we're resuming video
|
||||||
if m.global.queueManager.callFunc("getCurrentItem").startingPoint = 0
|
if m.global.queueManager.callFunc("getCurrentItem").startingPoint = 0
|
||||||
preRoll = GetIntroVideos(m.top.itemId)
|
preRoll = GetIntroVideos(m.top.itemId)
|
||||||
|
|
|
@ -12,7 +12,7 @@ sub init()
|
||||||
m.originalQueue = []
|
m.originalQueue = []
|
||||||
m.queueTypes = []
|
m.queueTypes = []
|
||||||
' Preroll videos only play if user has cinema mode setting enabled
|
' Preroll videos only play if user has cinema mode setting enabled
|
||||||
m.prerollActive = (get_user_setting("playback.cinemamode") = "true")
|
m.isPrerollActive = (get_user_setting("playback.cinemamode") = "true")
|
||||||
m.position = 0
|
m.position = 0
|
||||||
m.shuffleEnabled = false
|
m.shuffleEnabled = false
|
||||||
end sub
|
end sub
|
||||||
|
@ -21,7 +21,7 @@ end sub
|
||||||
sub clear()
|
sub clear()
|
||||||
m.queue = []
|
m.queue = []
|
||||||
m.queueTypes = []
|
m.queueTypes = []
|
||||||
m.prerollActive = (get_user_setting("playback.cinemamode") = "true")
|
m.isPrerollActive = (get_user_setting("playback.cinemamode") = "true")
|
||||||
setPosition(0)
|
setPosition(0)
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
|
@ -144,14 +144,14 @@ sub pop()
|
||||||
m.queueTypes.pop()
|
m.queueTypes.pop()
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' Return prerollActive status
|
' Return isPrerollActive status
|
||||||
function prerollActive()
|
function isPrerollActive() as boolean
|
||||||
return m.prerollActive
|
return m.isPrerollActive
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' Set prerollActive status
|
' Set prerollActive status
|
||||||
sub setPrerollStatus(newStatus)
|
sub setPrerollStatus(newStatus)
|
||||||
m.prerollActive = newStatus
|
m.isPrerollActive = newStatus
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' Push new items to the play queue
|
' Push new items to the play queue
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
<function name="getQueueUniqueTypes" />
|
<function name="getQueueUniqueTypes" />
|
||||||
<function name="getUnshuffledQueue" />
|
<function name="getUnshuffledQueue" />
|
||||||
<function name="hold" />
|
<function name="hold" />
|
||||||
|
<function name="isPrerollActive" />
|
||||||
<function name="moveBack" />
|
<function name="moveBack" />
|
||||||
<function name="moveForward" />
|
<function name="moveForward" />
|
||||||
<function name="peek" />
|
<function name="peek" />
|
||||||
<function name="playQueue" />
|
<function name="playQueue" />
|
||||||
<function name="pop" />
|
<function name="pop" />
|
||||||
<function name="prerollActive" />
|
|
||||||
<function name="push" />
|
<function name="push" />
|
||||||
<function name="resetShuffle" />
|
<function name="resetShuffle" />
|
||||||
<function name="set" />
|
<function name="set" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user