" بىلقۇت تورى
ئۈچ قۇر كود ئارقىلىق ئاددى قويغۇچ ياساش (java)

main.xml:


xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="250dp"/>





MainActivity.java:


import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Bundle;
import cn.jzvd.JZVideoPlayer;
import cn.jzvd.JZVideoPlayerStandard;
import android.app.AlertDialog;


public class MainActivity extends Activity {
JZVideoPlayerStandard jz;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
jz=findViewById(R.id.video_view);
jz.setUp("http://izqut.wxnet.cc/v/?vid=wxv_1463354449652711428@qq",jz.SCREEN_WINDOW_NORMAL,"Kino Nami");
}}



AndroidMainfest.xml:


xmlns:android="http://schemas.android.com/apk/res/android"
package="my.player"
xmlns:tools="http://schemas.android.com/tools">









android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:resizeableActivity="false">

android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|keyboardHidden"
>











android:name="android.max_aspect"
android:value="4.0"/>






build.gradle:


apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.0"

defaultConfig {
applicationId "my.player"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation 'cn.jzvd:jiaozivideoplayer:6.2.4'
}



چۈشۈرۈش ئادىرىسى:




man xu