Add a watchdog to the stream startup. If the stream doesn't start to play within 30 seconds (by default), signal AS_ERR_OPEN.
In this way we can make sure that the stream doesn't get stuck forever to the buffering state for instance due to network errors.