91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

android studio版本: android stuodio 1.5.1 gradle的版本使用1.5.0 gstreamer在android的例子:Android tutorial 3: Video, 鏈接:http://docs.gstreamer.com/display/GstSDK/Android+tutorial+3%3A+Video 在android studiao下編譯通過

資源截圖

代碼片段和文件信息

package?org.freedesktop.gstreamer;

import?java.io.File;
import?java.io.FileOutputStream;
import?java.io.IOException;
import?java.io.InputStream;
import?java.io.OutputStream;

import?android.content.Context;
import?android.content.res.AssetManager;

public?class?GStreamer?{
????private?static?native?void?nativeInit(Context?context)?throws?Exception;

????public?static?void?init(Context?context)?throws?Exception?{
????????nativeInit(context);
????????copyFonts(context);
????????copyCaCertificates(context);
????}

????private?static?void?copyFonts(Context?context)?{
????????AssetManager?assetManager?=?context.getAssets();
????????File?filesDir?=?context.getFilesDir();
????????File?fontsFCDir?=?new?File?(filesDir?“fontconfig“);
????????File?fontsDir?=?new?File?(fontsFCDir?“fonts“);
????????File?fontsCfg?=?new?File?(fontsFCDir?“fonts.conf“);

????????fontsDir.mkdirs();

????????try?{
????????????/*?Copy?the?config?file?*/
????????????copyFile?(assetManager?“fontconfig/fonts.conf“?fontsCfg);
????????????/*?Copy?the?fonts?*/
????????????for(String?filename?:?assetManager.list(“fontconfig/fonts“))?{
????????????????File?font?=?new?File(fontsDir?filename);
????????????????copyFile?(assetManager?“fontconfig/fonts/“?+?filename?font);
????????????}
????????}?catch?(IOException?e)?{
????????????e.printStackTrace();
????????}
????}

????private?static?void?copyCaCertificates(Context?context)?{
????????AssetManager?assetManager?=?context.getAssets();
????????File?filesDir?=?context.getFilesDir();
????????File?sslDir?=?new?File?(filesDir?“ssl“);
????????File?certsDir?=?new?File?(sslDir?“certs“);
????????File?certs?=?new?File?(certsDir?“ca-certificates.crt“);

????????certsDir.mkdirs();

????????try?{
????????????/*?Copy?the?certificates?file?*/
????????????copyFile?(assetManager?“ssl/certs/ca-certificates.crt“?certs);
????????}?catch?(IOException?e)?{
????????????e.printStackTrace();
????????}
????}

????private?static?void?copyFile(AssetManager?assetManager?String?assetPath?File?outFile)?throws?IOException?{
????????InputStream?in;
????????OutputStream?out;
????????byte[]?buffer?=?new?byte[1024];
????????int?read;

????????if?(outFile.exists())
????????????outFile.delete();

????????in?=?assetManager.open(assetPath);
????????out?=?new?FileOutputStream?(outFile);
????????while((read?=?in.read(buffer))?!=?-1){
??????????out.write(buffer?0?read);
????????}
????????in.close();
????????out.flush();
????????out.close();
???}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????????30??2015-10-25?14:18??gst-player-master\android\.gradle\2.2.1\taskArtifacts\cache.properties

?????文件?????????17??2015-10-25?17:54??gst-player-master\android\.gradle\2.2.1\taskArtifacts\cache.properties.lock

?????文件??????90801??2015-10-25?17:54??gst-player-master\android\.gradle\2.2.1\taskArtifacts\fileHashes.bin

?????文件????1047678??2015-10-25?17:54??gst-player-master\android\.gradle\2.2.1\taskArtifacts\fileSnapshots.bin

?????文件??????19682??2015-10-25?17:53??gst-player-master\android\.gradle\2.2.1\taskArtifacts\outputFileStates.bin

?????文件??????62485??2015-10-25?17:54??gst-player-master\android\.gradle\2.2.1\taskArtifacts\taskArtifacts.bin

?????文件?????????31??2016-06-10?18:56??gst-player-master\android\.gradle\2.8\taskArtifacts\cache.properties

?????文件?????????17??2016-06-11?11:15??gst-player-master\android\.gradle\2.8\taskArtifacts\cache.properties.lock

?????文件?????149746??2016-06-10?20:32??gst-player-master\android\.gradle\2.8\taskArtifacts\fileHashes.bin

?????文件?????659170??2016-06-10?20:32??gst-player-master\android\.gradle\2.8\taskArtifacts\fileSnapshots.bin

?????文件??????19982??2016-06-10?20:27??gst-player-master\android\.gradle\2.8\taskArtifacts\outputFileStates.bin

?????文件??????54765??2016-06-10?20:32??gst-player-master\android\.gradle\2.8\taskArtifacts\taskArtifacts.bin

?????文件??????????7??2016-06-11?11:15??gst-player-master\android\.idea\.name

?????文件????????686??2016-06-11?11:15??gst-player-master\android\.idea\compiler.xml

?????文件?????????76??2016-06-11?11:15??gst-player-master\android\.idea\copyright\profiles_settings.xml

?????文件?????????94??2016-06-11?11:18??gst-player-master\android\.idea\dictionaries\Administrator.xml

?????文件????????200??2016-06-11?11:15??gst-player-master\android\.idea\encodings.xml

?????文件????????701??2016-06-11?11:15??gst-player-master\android\.idea\gradle.xml

?????文件????????786??2016-06-11?11:17??gst-player-master\android\.idea\libraries\appcompat_v7_23_1_1.xml

?????文件????????804??2016-06-11?11:17??gst-player-master\android\.idea\libraries\recyclerview_v7_23_1_1.xml

?????文件????????545??2016-06-11?11:17??gst-player-master\android\.idea\libraries\support_annotations_23_1_1.xml

?????文件????????928??2016-06-11?11:17??gst-player-master\android\.idea\libraries\support_v4_23_1_1.xml

?????文件???????2834??2016-06-11?11:18??gst-player-master\android\.idea\misc.xml

?????文件????????351??2016-06-11?11:17??gst-player-master\android\.idea\modules.xml

?????文件????????564??2016-06-11?11:17??gst-player-master\android\.idea\runConfigurations.xml

?????文件????????164??2016-06-11?11:15??gst-player-master\android\.idea\vcs.xml

?????文件?????135362??2016-06-11?12:48??gst-player-master\android\.idea\workspace.xml

?????文件????????938??2016-06-11?11:17??gst-player-master\android\android.iml

?????文件???????7187??2016-06-11?11:17??gst-player-master\android\app\app.iml

?????文件????????774??2016-06-10?20:25??gst-player-master\android\app\build.gradle

............此處省略104個文件信息

評論

共有 條評論