VideoView with Cookies (or Headers)
问题 I am trying to use android.widget.VideoView to stream content. I need to ensure that when using setVideoURI(Uri) that VideoView will include Cookies from prior HttpClient calls. I see in the source that there is setVideoUri(Uri,Headers) but this has a @hide JavaDoc annotation and won't compile. So, anyway to pass cookies or headers with the HTTP requests made by VideoView? Thanks. 回答1: Extract classes VideoView and Metadata from SDK. Then, you will be able to call setVideoURI(Uri uri, Map