Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please a good tutorial about this exoplayer #640

Closed
PeyamMaroufi opened this issue Jul 22, 2015 · 3 comments
Closed

Please a good tutorial about this exoplayer #640

PeyamMaroufi opened this issue Jul 22, 2015 · 3 comments

Comments

@PeyamMaroufi
Copy link

Hi,
I've been looking for a good media player for a logn time since the traditional media player in android doesnt always work as it should.
I have some m3u8 files that are streaming urls. What I so far have done is downloading the Exoplayer project and make a .Jar of it ( trust me , it took me 5 days just to figure out how to do it) . The only think I want to do is to play the streaming url. Ive been looking at the playActivity, it imports DemoPlayer and there I get lots of problems. "setbackgrounded" in player.setbackgrounded doesn't work and AS gives error all the time.

For us that only want to develop a simple application and are not as experienced as you guys are please please make a simple tutorial. I've been asking around so much and it almost makes me give up.

@Schizo
Copy link

Schizo commented Jul 22, 2015

Are you using Android Studio? If you are using android-studio, it is very easy to setup ExoPlayer, for Eclipse i am not sure.

@mingfai
Copy link

mingfai commented Jul 22, 2015

it's of course always better with more tutorial and documentation. but in general, the demo project is sufficient for me to understand how to use this library.

to my understanding, the proper/official way is to implement our own player base on DemoPlayer. for me I'm lazy and just copy the DemoPlayer with small customization to my project.(and then every time I upgrade exoplayer i got to sync the DemoPlayer.java that is tedious) I wish the DemoPlayer is not just a demo but a high level player class, perhaps designed to be extended, e.g. change the private fields to protected.

If the DemoPlayer is not a demo but a BasePlayer that is made to be easy to use, documentation/tutorial works may start at that class.

@ojw28
Copy link
Contributor

ojw28 commented Jul 23, 2015

As above, the demo app is pretty simple to setup / compile. I don't think we want to start writing tutorials about general Android development, setup and IDEs. These can be found elsewhere, and if we did write them we'd need to periodically update them, which would require a non-trivial amount of effort.

@mingfai - Your point about DemoPlayer is valid. Some of the open issues, such as #514, will naturally simplify this class over time as we push more functionality inside of ExoPlayer itself (that particular feature request will remove ~100 lines of code from DemoPlayer).

We may at some point move DemoPlayer into the library itself as a high level class, however it's unclear whether this is a good idea because most developers end up wanting to make some kind of modifications to it to better suit their use case.

@ojw28 ojw28 closed this as completed Jul 23, 2015
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants