An Android WebView with full screen video ability
Add this to your main project gradle file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Then add this to your app/module gradle dependencies
dependencies {
compile 'com.github.ravindu1024:video-webview:1.0.0'
}
- Basic:
<com.rw.videowebview.VideoWebview
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
VideoWebview videoWebview = (VideoWebview)findViewById(R.id.webview);
videoWebview.getWebView().loadUrl("http://vimeo.com");
- Setting a custom full screen view
videoWebview.setFullScreenView(getSupportActionBar(), (FrameLayout) findViewById(R.id.fullscreen_view));