Computes the round trip time (RTT) to the RTMP server using a ping request.
If the server has not implemented the ping response, it will hang indefinitely.
Return
the measured Duration, or null if the client is not available, closed, or an error occurred.