WEBPlayer

Android için mp3, mp4, m3u8 ve daha fazla formatları destekleyen kolay video player.

Hızlı Kurulum

1. Implementation build.gradle
implementation 'net.webilisim.webplayer:webplayer:1.0.11'
2. XML'ye WEBPlayer'ı ekleme
<LinearLayout
android:layout_width="match_parent"
android:layout_height="200dp">
<net.webilisim.webplayer.WEBPlayerStd
android:id="@+id/webplayer"
android:layout_width="match_parent"
android:layout_height="200dp" />
</LinearLayout>
3. Video Player'ı çalıştırma
WEBPlayerStd webPlayerStd = findViewById(R.id.webplayer);
webPlayerStd.setUp("VİDEO ADRESİN", "VİDEO BAŞLIĞIN");
webPlayerStd.thumbImageView.setImage("VİDEO ÖNİZLEME RESMİN");
4.Activity ayarları
@Override
public void onBackPressed() {
if (WEBPlayer.backPress()) {
return;
}
super.onBackPressed();
}
@Override
protected void onPause() {
super.onPause();
WEBPlayer.releaseAllVideos();
}
5. Manifest ayarları
<activity
android:name=".MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:screenOrientation="portrait" /> <!-- veya android:screenOrientation="landscape"-->
6.proguard-rules.pro ayarları
-keep public class net.webilisim.webplayer.WEBPlayerMediaSystem {*; }
Github: https://github.com/webilisim/WEBPlayer
Bintray: https://bintray.com/netwebilisim/WEB...isim.webplayer
Jitpack: https://jitpack.io/#webilisim/WEBPlayer