GST Player Android port
=======================
Prerequisites
-------------
1. Install Android SDK from https://developer.android.com/sdk/ & set `sdk.dir` in **local.properties** to the installation path
2. Install Android NDK from https://developer.android.com/tools/sdk/ndk/index.html & set `ndk.dir` in **local.properties** to the installation path
3. If you have a different special directory for pkg-config or other tools (e.g. on OSX when using Homebrew), then also set this path using the `ndk.extraPath` variable in **local.properties**
4. Download the GStreamer android ports http://gstreamer.freedesktop.org/data/pkg/android/ and set `gstreamer.$ABI.dir` properties in **local.properties**:
Sample local.properties:
sdk.dir=/path/to/android-sdk/
ndk.dir=/path/to/android-ndk/
ndk.extraPath=/usr/local/bin
gstreamer.arm.dir=/path/to/gstreamer-1.0-android-arm-release-1.4.5/
gstreamer.armv7.dir=/path/to/gstreamer-1.0-android-armv7-release-1.4.5/
gstreamer.x86.dir=/path/to/gstreamer-1.0-android-x86-release-1.4.5/
Compiling the sample
--------------------
Use
./gradlew installDebug
to compile and install a debug version onto all connected devices.
Please note this component is using the new Android build system based on Gradle. More information about this is available on http://tools.android.com/tech-docs/new-build-system.
Android Studio
--------------
Android Studio builds will work out of the box. Simply open `build.gradle` in this folder to import the project.
Manual NDK build
----------------
It is still possible to build just the NDK portion. This will speed up the process a bit as you don't need to start gradle first and compile the complete App.
First, make sure to set `NDK_PROJECT_PATH` to this projects main source path. Additionally the SDK & NDK tools are available in `$PATH`.
export NDK_PROJECT_PATH=$PWD/app/src/main
Second, set the following environment variables to the GStreamer installation folders:
export GSTREAMER_ROOT_ARM=/path/to/gstreamer-1.0-android-arm-release-1.4.5/
export GSTREAMER_ROOT_ARMV7=/path/to/tmp/gstreamer-1.0-android-armv7-release-1.4.5/
export GSTREAMER_ROOT_X86=/path/to/gstreamer-1.0-android-x86-release-1.4.5/
If you don't want to build all architectures, please modify the file `app/src/main/jni/Application.mk`
Finally, within the `app/src/main/` directory, invoke:
ndk-build
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
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下编译通过
资源推荐
资源详情
资源评论
收起资源包目录
gst-player-master.rar (84个子文件)
gst-player-master
docs
Makefile.am 90B
lib
gst-player-sections.txt 5KB
gst-player.types 479B
Makefile.am 3KB
gst-player-docs.xml 858B
android
gradlew.bat 2KB
gradlew 5KB
.gradle
2.8
taskArtifacts
fileHashes.bin 146KB
cache.properties.lock 17B
taskArtifacts.bin 53KB
fileSnapshots.bin 644KB
cache.properties 31B
outputFileStates.bin 20KB
2.2.1
taskArtifacts
fileHashes.bin 89KB
cache.properties.lock 17B
taskArtifacts.bin 61KB
fileSnapshots.bin 1023KB
cache.properties 30B
outputFileStates.bin 19KB
Makefile.am 935B
app
src
main
res
menu
menu_video_selector.xml 580B
values
strings.xml 294B
styles.xml 135B
dimens.xml 211B
layout
activity_video_selector.xml 767B
activity_player.xml 3KB
values-w820dp
dimens.xml 358B
assets
ssl
certs
ca-certificates.crt 254KB
fontconfig
fonts
truetype
Ubuntu-R.ttf 346KB
fonts.conf 4KB
java
org
freedesktop
gstreamer
Player.java 7KB
GStreamer.java 2KB
play
Play.java 7KB
GStreamerSurfaceView.java 4KB
VideoSelector.java 5KB
AndroidManifest.xml 4KB
libs
armeabi-v7a
libgstreamer_android.so 18.09MB
libgstplayer.so 77KB
app.iml 7KB
build
build.gradle 774B
libs
armeabi-v7a
libgstreamer_android.so 18.09MB
libgstplayer.so 77KB
gradle
wrapper
gradle-wrapper.jar 49KB
gradle-wrapper.properties 232B
.idea
gradle.xml 701B
runConfigurations.xml 564B
misc.xml 3KB
vcs.xml 164B
.name 7B
copyright
profiles_settings.xml 76B
modules.xml 351B
dictionaries
Administrator.xml 94B
encodings.xml 200B
compiler.xml 686B
workspace.xml 132KB
libraries
support_annotations_23_1_1.xml 545B
recyclerview_v7_23_1_1.xml 804B
support_v4_23_1_1.xml 928B
appcompat_v7_23_1_1.xml 786B
local.properties 638B
README.md 2KB
android.iml 938B
settings.gradle 15B
build
intermediates
dex-cache
cache.xml 2KB
gradle_project_sync_data.bin 581B
build.gradle 301B
tests
player.c 45KB
media
audio.ogg 81KB
test_sub.srt 197B
audio-video-short.ogg 7KB
sintel.mkv 3.87MB
audio-video.ogg 95KB
audio-short.ogg 4KB
Makefile.am 628B
lib
gst
Makefile.am 17B
player
gstplayer.c 119KB
gstplayer-media-info.h 8KB
gstplayer.h 14KB
gstplayer-media-info-private.h 3KB
gstplayer-media-info.c 18KB
Makefile.am 3KB
player.h 981B
Makefile.am 14B
COPYING 26KB
共 84 条
- 1
资源评论
- zpfi2019-12-15感谢分享在android studio下用gstreamer sdk构建多媒体应用.
- Smoyan_2018-01-11还没看,下来看看
- 希希梦2016-10-05很好,但是还是对我来说没用,直接用的github上一个demo改的
mfcai_blog
- 粉丝: 6
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功