Extension to Android VideoView. Adding session cookie header to request.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs
res/values
src/com/bangtoven/cookievideoview
.gitignore
AndroidManifest.xml
LICENSE
README.md
proguard-project.txt
project.properties

README.md

CookieVideoView

Extension to Android VideoView. Adding session cookie header to request.

Features

  • Add cookie header to the request which VideoView makes. (Native Android VideoView doesn't do this.)
  • Find proper cookie value based on requesting URI's domain.

Notice!!

  • This library requires Android Asynchronous Http Client by James Smith.
  • You have to maintain cookies with com.loopj.android.http.PersistentCookieStore class.
  • Or you can try my fork of Android Asynchronous Http Client.

Usage

  • (in java) Import com.bangtoven.cookievideoview.CookieVideoView
  • (in java) Change VideoView to CookieVideoView
  • (in xml) Change VideoView to com.bangtoven.cookievideoview.CookieVideoView
  • That's it!