You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to working with Brightsign widgets. I have gotten the Subtitles widget to work with my video projects, but I would like to change the font size and alignment of the subtitles. Anytime I make a change to the subtitles_widget.brs, subtitles cease to even appear (no rectangle or text). I am not sure what I am doing wrong.
This is what my .brs looks like:
'v.3
Function Custom_Initialize(msgPort As Object, userVariables As Object, bsp as Object)
print "Custom_Initialize - entry"
print "type of msgPort is ";type(msgPort)
print "type of userVariables is ";type(userVariables)
Custom = newCustom(msgPort, userVariables, bsp)
return Custom
End Function
Function newCustom(msgPort As Object, userVariables As Object, bsp as Object)
print "initCustom"
Function Custom_ProcessEvent(event As Object) as boolean
retval = false
print "Custom_ProcessEvent - entry"
print "type of m is ";type(m)
print "type of event is ";type(event)
if type(event) = "roVideoEvent" then
retval = HandleVideoEventPlugin(event, m)
end if
'debug
return retval
End Function
Function HandleVideoEventPlugin(origMsg as Object, Custom as Object) as boolean
if type(origMsg) = "roVideoEvent" then
print "origMsg: ";origMsg.GetInt()
'stop
if origMsg.GetInt() = 3 then
'print"I'm about to go parsing"
Custom.ParseSubs()
else if origMsg.GetInt() = 12 then
id = origMsg.GetData()
'print "TimeCode event Received" id
Custom.DisplaySubs(id)
else if origMsg.GetInt() = 8 then
print "Video End Event Received"
Custom.id = 0
Custom.subItems = 0
endif
end if
End Function
Function DisplaySubs(id as integer)
'print "inside DisplaySubs"
'print "m.id in Display sub is " id
m.text.PushString(m.TheStore.SubtitleArray[id])
m.text.Show()
End Function
Function custom_GetCurrentStateName() as String
'assumes the current state is the main state with video playback
I am new to working with Brightsign widgets. I have gotten the Subtitles widget to work with my video projects, but I would like to change the font size and alignment of the subtitles. Anytime I make a change to the subtitles_widget.brs, subtitles cease to even appear (no rectangle or text). I am not sure what I am doing wrong.
This is what my .brs looks like:
'v.3
Function Custom_Initialize(msgPort As Object, userVariables As Object, bsp as Object)
End Function
Function newCustom(msgPort As Object, userVariables As Object, bsp as Object)
print "initCustom"
End Function
Function GetEOL(file as String)
End Function
Function TimeintoMs(time as string)
End Function
Function ParseSubs()
End Function
Function Custom_ProcessEvent(event As Object) as boolean
End Function
Function HandleVideoEventPlugin(origMsg as Object, Custom as Object) as boolean
End Function
Function DisplaySubs(id as integer)
'print "inside DisplaySubs"
'print "m.id in Display sub is " id
m.text.PushString(m.TheStore.SubtitleArray[id])
m.text.Show()
End Function
Function custom_GetCurrentStateName() as String
'assumes the current state is the main state with video playback
end Function
The text was updated successfully, but these errors were encountered: