Capture errors during playback
Display Dialog when error occurs during playback
This commit is contained in:
parent
5993ee7d36
commit
c18f6fb9ce
|
@ -9,12 +9,25 @@ end sub
|
|||
sub onState(msg)
|
||||
|
||||
' When buffering, start timer to monitor buffering process
|
||||
if m.top.state = "buffering" then
|
||||
|
||||
if m.top.state = "buffering" and m.bufferCheckTimer <> invalid then
|
||||
|
||||
' start timer
|
||||
m.bufferCheckTimer = m.top.findNode("bufferCheckTimer")
|
||||
m.bufferCheckTimer.control = "start"
|
||||
m.bufferCheckTimer.ObserveField("fire", "bufferCheck")
|
||||
else if m.top.state = "error" then
|
||||
|
||||
' If an error was encountered, Display dialog
|
||||
dialog = createObject("roSGNode", "Dialog")
|
||||
dialog.title = tr("Error During Playback")
|
||||
dialog.buttons = [tr("OK")]
|
||||
dialog.message = tr("An error was encountered while playing this item.")
|
||||
dialog.observeField("buttonSelected", "dialogClosed")
|
||||
m.top.getScene().dialog = dialog
|
||||
|
||||
' Stop playback and exit player
|
||||
m.top.control = "stop"
|
||||
m.top.backPressed = true
|
||||
end if
|
||||
|
||||
end sub
|
||||
|
|
|
@ -214,6 +214,30 @@
|
|||
<translation>Server</translation>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Error Retrieving Content</source>
|
||||
<translation>Error Retrieving Content</translation>
|
||||
<extracomment>Dialog title when unable to load Content from Server</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Error During Playback</source>
|
||||
<translation>Error During Playback</translation>
|
||||
<extracomment>Dialog title when error occurs during playback</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>There was an error retrieving the data for this item from the server.</source>
|
||||
<translation>There was an error retrieving the data for this item from the server.</translation>
|
||||
<extracomment>Dialog detail when unable to load Content from Server</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>An error was encountered while playing this item.</source>
|
||||
<translation>An error was encountered while playing this item.</translation>
|
||||
<extracomment>Dialog detail when error occurs during playback</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Loading Channel Data</source>
|
||||
<translation>Loading Channel Data</translation>
|
||||
|
@ -228,6 +252,5 @@
|
|||
<source>Unable to load Channel Data from the server</source>
|
||||
<translation>Unable to load Channel Data from the server</translation>
|
||||
</message>
|
||||
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -220,12 +220,24 @@
|
|||
<extracomment>Dialog title when unable to load Content from Server</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Error During Playback</source>
|
||||
<translation>Error During Playback</translation>
|
||||
<extracomment>Dialog title when error occurs during playback</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>There was an error retrieving the data for this item from the server.</source>
|
||||
<translation>There was an error retrieving the data for this item from the server.</translation>
|
||||
<extracomment>Dialog detail when unable to load Content from Server</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>An error was encountered while playing this item.</source>
|
||||
<translation>An error was encountered while playing this item.</translation>
|
||||
<extracomment>Dialog detail when error occurs during playback</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Loading Channel Data</source>
|
||||
<translation>Loading Channel Data</translation>
|
||||
|
@ -240,6 +252,5 @@
|
|||
<source>Unable to load Channel Data from the server</source>
|
||||
<translation>Unable to load Channel Data from the server</translation>
|
||||
</message>
|
||||
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -220,11 +220,24 @@
|
|||
<extracomment>Dialog title when unable to load Content from Server</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Error During Playback</source>
|
||||
<translation>Error During Playback</translation>
|
||||
<extracomment>Dialog title when error occurs during playback</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>There was an error retrieving the data for this item from the server.</source>
|
||||
<translation>There was an error retrieving the data for this item from the server.</translation>
|
||||
<extracomment>Dialog detail when unable to load Content from Server</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>An error was encountered while playing this item.</source>
|
||||
<translation>An error was encountered while playing this item.</translation>
|
||||
<extracomment>Dialog detail when error occurs during playback</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Loading Channel Data</source>
|
||||
<translation>Loading Channel Data</translation>
|
||||
|
|
Loading…
Reference in New Issue
Block a user