public boolean isStreaming(String file){
  if (file.contains("http://") || file.contains("https://") || file.contains("rtsp://")) {
    return true;
  }
 else {
    return false;
  }
}

public boolean isStreaming ( String file ) { if ( file . contains ( "http://" ) || file . contains ( "https://" ) || file . contains ( "rtsp://" ) ) { return true ; } else { return false ; } }
determine if playback file is streaming or local . it is streaming if file name starts with " http : / / "
