Git Product home page Git Product logo

Comments (12)

crossle avatar crossle commented on May 4, 2024

Support Android 4.1 http url with mp4.

from exoplayer.

cd0304 avatar cd0304 commented on May 4, 2024

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.

ojw28 avatar ojw28 commented on May 4, 2024

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.

cd0304 avatar cd0304 commented on May 4, 2024

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.

ojw28 avatar ojw28 commented on May 4, 2024

You're not supposed to edit the manifest. You're supposed to build it using the v19 Android SDK.

from exoplayer.

cd0304 avatar cd0304 commented on May 4, 2024

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.

ojw28 avatar ojw28 commented on May 4, 2024

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.

cd0304 avatar cd0304 commented on May 4, 2024

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.

lsjwzh avatar lsjwzh commented on May 4, 2024

额。。意思是需要用apk19来编译。。。如果有问题的话,可能是你的rom的问题。
这很正常。。比如早期的miui 3.X,虽然是基于android 4.1。。但也会出错。原因是有MediaCodecUtil.getDecoderInfo()出了异常。
这是属于系统bug。。。。
所以,至少目前来看。。要使用exoplayer,还需要谨慎对待。
比较保险的办法是用MediaPlayer给ExoPlayer做一个备选。。但是这样肯定有许多功能用不了。所以,如果需要更多功能的话。。。还是需要自定义播放器。。。目前没有其他办法。

from exoplayer.

crossle avatar crossle commented on May 4, 2024

lol

from exoplayer.

cd0304 avatar cd0304 commented on May 4, 2024

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.

lsjwzh avatar lsjwzh commented on May 4, 2024

恩恩。。因为simpleActivity的player是通过MediaExtractor来获取数据的。
就我的实践来看,许多厂商这里bug很多。。。所以需要很多额外判断,不过好在Exo能自定义很多东西。。。之后试试看。。。我最近打算弄个ExoPlayerCompat的库来实现MediaPlayer和ExoPlayer的自动选择

from exoplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.