Comments (12)
Support Android 4.1 http url with mp4.
from exoplayer.
but i can not build this project, because ,it use some android-19 level api
how can i builid android 4.1 version?
------------------ 原始邮件 ------------------
发件人: "Crossle Song";[email protected];
发送时间: 2014年8月19日(星期二) 中午11:15
收件人: "google/ExoPlayer"[email protected];
抄送: "◆幻影◆"[email protected];
主题: Re: [ExoPlayer] ExoPlayer can work in Android 4.1? (#30)
Support Android 4.1 http url with mp4.
—
Reply to this email directly or view it on GitHub.
from exoplayer.
You should be building the application using the latest Android SDK, and you'll need to have the v19 SDK Platform installed (you can do this in the Android SDK Manager). This doesn't stop you from running what gets built on an API level 16 device.
In the manifest of the demo app:
android:minSdkVersion="16" <-- This is the minimum API level on which the apk will install/run.
android:targetSdkVersion="19" <-- This is the SDK platform you need to compile.
from exoplayer.
thanks,
i do that just like you,i modify it :
android:minSdkVersion="16"
android:targetSdkVersion="16"
in android 4.4 device, it work well, but in 4.1 device, it can not play , i think ,it maybe 4.2 device can not work without the api level.
------------------ 原始邮件 ------------------
发件人: "ojw28";[email protected];
发送时间: 2014年8月19日(星期二) 下午5:07
收件人: "google/ExoPlayer"[email protected];
抄送: "◆幻影◆"[email protected];
主题: Re: [ExoPlayer] ExoPlayer can work in Android 4.1? (#30)
You should be building the application using the latest Android SDK, and you'll need to have the v19 SDK Platform installed (you can do this in the Android SDK Manager). This doesn't stop you from running what gets built on an API level 16 device.
In the manifest of the demo app:
android:minSdkVersion="16" <-- This is the minimum API level on which the apk will install/run.
android:targetSdkVersion="19" <-- This is the SDK platform you need to compile.
—
Reply to this email directly or view it on GitHub.
from exoplayer.
You're not supposed to edit the manifest. You're supposed to build it using the v19 Android SDK.
from exoplayer.
but my device is android 4.1 not 4.4, how can i build this project?
------------------ 原始邮件 ------------------
发件人: "ojw28";[email protected];
发送时间: 2014年8月19日(星期二) 下午5:27
收件人: "google/ExoPlayer"[email protected];
抄送: "◆幻影◆"[email protected];
主题: Re: [ExoPlayer] ExoPlayer can work in Android 4.1? (#30)
You're not supposed to edit the manifest. You're supposed to build it using the v19 Android SDK.
—
Reply to this email directly or view it on GitHub.
from exoplayer.
The SDK you build with and the version of Android that your device runs are independent things. You can build using a v19 SDK and run the resulting apk on a v16 device, provided the minSdkVersion is 16 or lower. The developer just needs to make sure not to try and call any v17/18/19 APIs when running on a v16 device.
from exoplayer.
thanks,
I will try it , i want to play online video , it is http protocol , mp4 file, just like :
http://121.199.61.174/testhtml5.mp4.
i use the demo project , it can work in my android 4.4 device, but can not work my android 4.1 device.
------------------ 原始邮件 ------------------
发件人: "ojw28";[email protected];
发送时间: 2014年8月19日(星期二) 下午5:38
收件人: "google/ExoPlayer"[email protected];
抄送: "◆幻影◆"[email protected];
主题: Re: [ExoPlayer] ExoPlayer can work in Android 4.1? (#30)
The SDK you build with and the version of Android that your device runs are independent things. You can build using a v19 SDK and run the resulting apk on a v16 device, provided the minSdkVersion is 16 or lower. The developer just needs to make sure not to try and call any v17/18/19 APIs when running on a v16 device.
—
Reply to this email directly or view it on GitHub.
from exoplayer.
额。。意思是需要用apk19来编译。。。如果有问题的话,可能是你的rom的问题。
这很正常。。比如早期的miui 3.X,虽然是基于android 4.1。。但也会出错。原因是有MediaCodecUtil.getDecoderInfo()出了异常。
这是属于系统bug。。。。
所以,至少目前来看。。要使用exoplayer,还需要谨慎对待。
比较保险的办法是用MediaPlayer给ExoPlayer做一个备选。。但是这样肯定有许多功能用不了。所以,如果需要更多功能的话。。。还是需要自定义播放器。。。目前没有其他办法。
from exoplayer.
lol
from exoplayer.
hoho,还有中文邮件,不错,多谢啦
目前这个工程直接使用demo工程来导出apk的话,在乐视盒子上是没法播放视频的
这个乐视的机顶盒是android4.2的系统 , 一播放http的mp4网络文件就异常了。
我还没搞到一个好的调试手段能打印出信息出来,所以也不清楚问题在那里,但是如果把这个apk放到三星的galax 9006手机上,是可以成功的播放视频的。
------------------ 原始邮件 ------------------
发件人: "lsjwzh";[email protected];
发送时间: 2014年8月19日(星期二) 晚上6:31
收件人: "google/ExoPlayer"[email protected];
抄送: "◆幻影◆"[email protected];
主题: Re: [ExoPlayer] ExoPlayer can work in Android 4.1? (#30)
额。。意思是需要用apk19来编译。。。如果有问题的话,可能是你的rom的问题。
这很正常。。比如早期的miui 3.X,虽然是基于android 4.1。。但也会出错。原因是有MediaCodecUtil.getDecoderInfo()出了异常。
这是属于系统bug。。。。
所以,至少目前来看。。要使用exoplayer,还需要谨慎对待。
比较保险的办法是用MediaPlayer给ExoPlayer做一个备选。。但是这样肯定有许多功能用不了。所以,如果需要更多功能的话。。。还是需要自定义播放器。。。目前没有其他办法。
—
Reply to this email directly or view it on GitHub.
from exoplayer.
恩恩。。因为simpleActivity的player是通过MediaExtractor来获取数据的。
就我的实践来看,许多厂商这里bug很多。。。所以需要很多额外判断,不过好在Exo能自定义很多东西。。。之后试试看。。。我最近打算弄个ExoPlayerCompat的库来实现MediaPlayer和ExoPlayer的自动选择
from exoplayer.
Related Issues (20)
- Only first frame and Audio Plays in Android 23 with MPEG-4 - AVC HOT 1
- how to dynamic refresh the metadata of one playing media item? HOT 1
- How to limit the interval between change bitrate for HLS stream? HOT 1
- AV1 Seek Support Issue HOT 1
- eca3 - eca audio format HOT 1
- Failed to initialize OMX.MTK.VIDEO.DECODER.AVC.secure HOT 1
- Loading glsl shaders in Exoplayer? HOT 1
- play m3u8 media no audio HOT 1
- CC function broken in 2.18.7 HOT 1
- onDeviceVolumeChanged(int volume, boolean muted) is never triggered on a TV device HOT 1
- Video blinking when switching between videos with different ratios (Android 14 only) HOT 1
- How to gather HAR(HTTP Archive) file with ExoPlayer? HOT 1
- add support to play mpd dash which doesn't have default kid in it HOT 2
- Can I defined provision-url not by getProvisionRequest in FrameworkMediaDrm.
- Playing VP8 encoded webm format video, on Android 13, the video screen is unclear and appears blurred
- how triggers FIRST_QUARTILE HOT 1
- how to read sps and pps from the stream
- How in Exoplyaer Upgrade Gradle Version from agp_version = '7.4.2' to the latest 8.2? HOT 3
- how make default buildconfig to release I mean how change gradle that by default when build APK on Android Studio always be release by default? HOT 3
- Decrypting HLS Stream using decryption key locally from code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exoplayer.