[SIZE=5]WEBPlayer[/SIZE]
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
android:layout_width="match_parent"
android:layout_height="200dp">
android:id="@+id/webplayer"
android:layout_width="match_parent"
android:layout_height="200dp" />
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ı
android:name=".MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:screenOrientation="portrait" />
6.proguard-rules.pro ayarları
-keep public class net.webilisim.webplayer.WEBPlayerMediaSystem {*; }
Github: https://github.com/webilisim/WEBPlayer
Bintray: https://bintray.com/netwebilisim/WEBPlayer/net.webilisim.webplayer
Jitpack: https://jitpack.io/#webilisim/WEBPlayer