Detecting end of video in FF mode

We cannot find a way to detect when video reaches the end if the user presses FF button.
The video marked reaches the end of the progress bar and we start receaivnt invalid messages

The Video is in HLS format, 10 second segments, mp4.
Video Screen used - roVideoScreen.


        screen = CreateObject("roVideoScreen") 
	port = CreateObject("roMessagePort") 

         while true
		msg = wait(1500, screen.GetMessagePort()) 
		
		if type(msg) = "roVideoScreenEvent" then
                       if msg.isStreamStarted()
				print "IsStreamStarted: GetIndex:"; msg.GetIndex(); " Bitrate:"; msg.GetInfo().StreamBitrate
			else if msg.isPaused() then
				print "Stream paused"
			else if msg.isResumed() then
				print "Stream resumed"
			else if msg.isPlaybackPosition() then
                               print  "is Play Possition"
                      end if
               else if msg = invalid then
                   print "Message is invalid"
                   'FIRED AFTER END OF VIDEO IN FF MODE !!!!
               end if
           end while