Assuming you create an observer for the video player like so..
m.video.observeField("state","controlvideoplay")
Then you can have a function like so
sub controlvideoplay()
if (m.video.state = "error")
print errorCode
print errorMsg
print errorStr
end if
end sub