implementation 'net.webilisim.webplayer:webplayer:1.0.11'
<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>
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");
@Override public void onBackPressed() { if (WEBPlayer.backPress()) { return; } super.onBackPressed(); }
@Override protected void onPause() { super.onPause(); WEBPlayer.releaseAllVideos(); }
<activity android:name=".MainActivity" android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="portrait" /> <!-- veya android:screenOrientation="landscape"-->
-keep public class net.webilisim.webplayer.WEBPlayerMediaSystem {*; }