五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Android QPython3 擴(kuò)展:視頻播放

2021-01-03 22:18 作者:乘著船  | 我要投稿

#需要QPythonSupport基礎(chǔ)窗口??https://www.bilibili.com/read/cv9100444


QPythonSupport/app/src/main/AndroidManifest.xml】添加


? ? ? ? <activity

? ? ? ? ? ? android:label="視頻播放器"

? ? ? ? ? ? android:name=".Video"

? ? ? android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >

? ?<intent-filter>

? ? ? ? ? ? ? ? <action android:name="android.intent.action.VIEW" />

? ? ? ? ? ? </intent-filter>

? ? ? ? </activity>


〖備注〗

真全屏:android:style/Theme.NoTitleBar.Fullscreen

準(zhǔn)全屏:android:style/Theme.NoTitleBar


QPythonSupport/app/src/main/res/layout/video.xml


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

? ? android:layout_width="match_parent"

? ? android:layout_height="match_parent"

? ? android:gravity="center"

? ? android:orientation="vertical" >

? ? <VideoView

? ? ? ? android:id="@+id/videoView"

? ? ? ? android:layout_width="match_parent"

? ? ? ? android:layout_height="match_parent" />

</LinearLayout>


QPythonSupport/app/src/main/java/czc/qpython/support/Video.java


package czc.qpython.support;


import android.app.*;

import android.os.*;

import android.widget.*;

import android.text.*;

import java.io.*;

import android.net.*;

import android.content.*;


public class Video extends Activity

?{

? ? @Override

? ? public void onCreate(Bundle savedInstanceState) {

? Main.requestPermissions(this);

? ? ? ? super.onCreate(savedInstanceState);

? ? ? ? setContentView(R.layout.video);

? Intent intent=getIntent();

? String path=intent.getStringExtra("path");

? ? ? ? VideoView videoView=(VideoView)findViewById(R.id.videoView);

? videoView.setVideoPath(path);

? ? ? ? MediaController mediaController=new MediaController(this);

? mediaController.setAnchorView(mediaController);

? videoView.start();

? videoView.setMediaController(mediaController);

? ? }

}


QPythonSupport/__init__.py】添加


def VideoPlay(Path,Wait=True):

? ? jsla('startActivity','android.intent.action.VIEW',None,None,{'path':Path},Wait,'czc.qpython.support','czc.qpython.support.Video')


QPythonSupport/說明.txt】添加


? VideoPlay(Path,Wait=True)

? 視頻播放(路徑,等待=是)



視頻:https://www.bilibili.com/video/BV1zK411g7KB


作者:乘著船@Bilibili

更多文章+下載鏈接:https://www.bilibili.com/read/readlist/rl321663


Android QPython3 擴(kuò)展:視頻播放的評論 (共 條)

分享到微博請遵守國家法律
宾阳县| 文水县| 西安市| 贺兰县| 吉安市| 金乡县| 桃园市| 时尚| 新民市| 舞钢市| 鹿邑县| 北宁市| 江川县| 石城县| 溧阳市| 荔浦县| 普兰县| 田东县| 台前县| 体育| 通州市| 甘洛县| 皮山县| 墨竹工卡县| 北京市| 绥芬河市| 克拉玛依市| 浪卡子县| 克山县| 鄱阳县| 辽阳市| 顺平县| 乌兰县| 文山县| 乃东县| 河南省| 蒙自县| 太康县| 乳山市| 那坡县| 浑源县|