Comments (26)
I'm going to have a look the issue between this afternoon and tomorrow. I will let you know when is ready
from ajcplayer.
Could you send me please the video url that you can't play to test it.
from ajcplayer.
This is the url and its playing but the problem is if streamer is offline and there is no way to handle the situation and PlayerEventListener is not updating the onError method because player keep loading and sometime just freeze the app.
udp://@224.1.1.1:1234
My suggestion is if there is no stream available or url is not valid it should update onError method and release the player.
But i must say your player video quality is much better other player available on android platform even better then official vlc and jw player. I tried many players but i found this one much better.
from ajcplayer.
Hi! I have created a beta versión of AJCPlayer. You can test ir changing maven URL from master to develop in build.gradle file and updating player dependency to 1.0.1.
Finally you can add a new PlayerEventListener and finish the activity or do whatever you want if you implement onError method.
from ajcplayer.
Hi Antonio.
Error:Could not find es.lombrinus.projects.mods:AJCPlayer:1.0.1.
Required by:
AJCPlayer:app:unspecified
I got this error. Can you share player source code or either you can sell. Thanks
from ajcplayer.
Are you changed Maven repository url?
Use http://github.com/anthorlop/mvn-android/raw/develop/ instance of https://github.com/anthorlop/mvn-android/raw/master/
from ajcplayer.
Page not found, i think its a private repository.
from ajcplayer.
I've uploaded the code
from ajcplayer.
Use http://github.com/anthorlop/mvn-android/raw/develop/ instance of https://github.com/anthorlop/mvn-android/raw/master/
These url are not working. i can not access on my side.
from ajcplayer.
Ok. I'll try to publish code to master as soon as possible
from ajcplayer.
Done
from ajcplayer.
http://github.com/anthorlop/mvn-android/raw/develop/
https://github.com/anthorlop/mvn-android/raw/master/
Still not a valid URLS.
Player still crashed instead call onerror method if i pass url like abc.com/abc.mp4 which does not exists. Thanks
from ajcplayer.
https://github.com/anthorlop/mvn-android/raw/develop/
https://github.com/anthorlop/mvn-android/raw/master/
URLs work for me. And master URL hasn't changed.
from ajcplayer.
Because your master urls are private repository and thats why no one can access until you made it public or you give me permission by adding me into this code. Meanwhile here is picture that i can not access your code.
https://ibb.co/kP54CR
Thanks in Advance
from ajcplayer.
You can't access to this url's in your browser, so have to upgrade your player version in your build.gradle file to use it. I can't open this url's in browser as well.
from ajcplayer.
i did upgrade and its keep loading again and still not giving me result. OnError Method is not called when wrong or bad stream url passed to player so in that case i can use backup url to maintain the stream. I downloaded new project and pass the random url and its crashed again instead calling of onError. When i passed valid url then onPlayBegins works but not onError. So need to fix crashing player and on run time changing the url. This what i need. If you can share source code. It will be great help. Thanks
from ajcplayer.
I found the problem, the error event was not being triggered when the video URL was called to get the contentType. I've created 1.0.2 player version and uploaded example app changes, can you try it again? I hope it works
from ajcplayer.
Good to know. Let me check. Thanks
from ajcplayer.
player stops playing udp://@224.1.1.1:1234 . Always throw an error. if i can get the source code it will great help so i can change in as per my need. Meanwhile here is logs
E/ccl_ChromeCastPlayer: Error isRemoteMediaLoaded
D/ERROR: VIDEO_0_Video not available
E/MediaPlayer: Attempt to perform seekTo in wrong state: mPlayer=0x0, mCurrentState=1
E/MediaPlayer: error (-38, 0)
E/MediaPlayer: stop called in state 0
E/MediaPlayer: Attempt to call getDuration without a valid mediaplayer
E/PlayerControlBarManager: Asset VIDEO: 0-udp://@224.1.1.1:1234
E/MediaPlayer: pause called in state 0
D/OpenGLRenderer: endAllStagingAnimators on 0xf3daf200 (RippleDrawable) with handle 0xef33fac0
E/ccl_ChromeCastPlayer: Error isRemoteMediaLoaded
E/MediaPlayer: Attempt to perform seekTo in wrong state: mPlayer=0x0, mCurrentState=0
E/MediaPlayer: stop called in state 0
E/MediaPlayer: Attempt to call getDuration without a valid mediaplayer
Best Zia
from ajcplayer.
I've added an URL validation before checking video contentType and maybe your URL format is not valid and stops playing. Let me check it because I think validation is no longer necessary.
from ajcplayer.
Ok. waiting for your reply.
from ajcplayer.
I've removed URL validation and I got an IllegalArgumentException (unexpected url) when URL is not valid (I use okhttp library). I've caught the exception and I hope your video URL works. I've just uploaded version 1.0.3.
from ajcplayer.
Same Problem
E/MediaPlayer: Error (-38,0)
E/PlayerControlBarManager: Asset VIDEO: 2131755179-udp://@224.1.1.1:1634
D/ERROR: VIDEO_2131755179_java.lang.IllegalArgumentException: unexpected url: udp://@224.1.1.1:1634
E/ccl_ChromeCastPlayer: Error isRemoteMediaLoaded
from ajcplayer.
Your URL is not valid. You have to get contentType of the video. The okhttp library doesn't work with this type of url, is not my fault. I'm not going to share the code for now, we can discuss about it in the future. Send me a solution to check your URL correctly and I'll add the code to video player.
from ajcplayer.
is your code available for sale if you can not share free?
Also i need to modify the code for full screen. right now its not there. except open new activity. player need to provide this feature as well.
from ajcplayer.
Try to send an Asset to video player with localPath parameter as true to play local files.
I've sent you an email
from ajcplayer.
Related Issues (3)
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 ajcplayer.