Loading core/java/android/webkit/HTML5VideoViewProxy.java +5 −2 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ class HTML5VideoViewProxy extends Handler private static final int PAUSED = 203; private static final String COOKIE = "Cookie"; private static final String HIDE_URL_LOGS = "x-hide-urls-from-log"; // Timer thread -> UI thread private static final int TIMEUPDATE = 300; Loading Loading @@ -184,11 +185,13 @@ class HTML5VideoViewProxy extends Handler mVideoView.setMediaController(new MediaController(proxy.getContext())); String cookieValue = CookieManager.getInstance().getCookie(url); Map<String, String> headers = null; Map<String, String> headers = new HashMap<String, String>(); if (cookieValue != null) { headers = new HashMap<String, String>(); headers.put(COOKIE, cookieValue); } if (mCurrentProxy.getWebView().isPrivateBrowsingEnabled()) { headers.put(HIDE_URL_LOGS, "true"); } mVideoView.setVideoURI(Uri.parse(url), headers); mVideoView.setOnCompletionListener(proxy); Loading Loading
core/java/android/webkit/HTML5VideoViewProxy.java +5 −2 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ class HTML5VideoViewProxy extends Handler private static final int PAUSED = 203; private static final String COOKIE = "Cookie"; private static final String HIDE_URL_LOGS = "x-hide-urls-from-log"; // Timer thread -> UI thread private static final int TIMEUPDATE = 300; Loading Loading @@ -184,11 +185,13 @@ class HTML5VideoViewProxy extends Handler mVideoView.setMediaController(new MediaController(proxy.getContext())); String cookieValue = CookieManager.getInstance().getCookie(url); Map<String, String> headers = null; Map<String, String> headers = new HashMap<String, String>(); if (cookieValue != null) { headers = new HashMap<String, String>(); headers.put(COOKIE, cookieValue); } if (mCurrentProxy.getWebView().isPrivateBrowsingEnabled()) { headers.put(HIDE_URL_LOGS, "true"); } mVideoView.setVideoURI(Uri.parse(url), headers); mVideoView.setOnCompletionListener(proxy); Loading