How can I check rtsp video streaming is online?

can get rtsp video streaming with gstreamer videoplayer.
but how can check video streaming is online? (i.e. streaming offline due to network)

probably checking timer with player.isFrameNew(). (I didn’t tried yet)
but is there other way to do that ?