code: public void setVideoURI(Uri uri, Map<String, String> headers) {
          mUri = uri;
          mHeaders = headers;
          mSeekWhenPrepared = 0;
          openVideo();
          requestLayout();
          invalidate();
      }
docs: Sets video URI using specific headers.
  
  @param uri     the URI of the video.
  @param headers the headers for the URI request.
  Note that the cross domain redirection is allowed by default, but that can be
  changed with key/value pairs through the headers parameter with
  "android-allow-cross-domain-redirect" as the key and "0" or "1" as the value
  to disallow or allow cross domain redirection.