-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
MediaPlayer stop (onCompletion) in the middle of file #7
Comments
when playbacking, the video can't decode any frame (no frame)...so complete... |
But Google Play libs version DOESN'T have this problem. I think problem is in the bundle lib. |
i have same problem while playing "http://94.242.221.141/hls/a-lo/stream140.m3u8" but no solution found yet |
I think it's should http timeout. Vitamio will add API set http timeout |
Hi, I also have the same issue, when the video plays for 12seconds, i get the following log: 03-30 21:38:59.656: E/VitamioPlayer: [rtmp @ 0x1f023b0] Client bandwidth report packet is less than 4 bytes long (0) EDIT: I have also received the following in the logs 03-30 21:48:21.218: E/VitamioPlayer: [h264 @ 0x1fde120] AVC: nal size 21839903 I am using VideoBuffer for the same. Is there a solution to this problem ? Please assist as it is on a urgent basis . Thanks. |
The main reason not receiver the avalid frame |
Thank you so much for your quick response . But why would that happen ?? I mean the rtmp streams well with an rtmp online player, but then it fails when i run the app here on my device :( .. could you please suggest what i could do? I need to be able to stream the rtmp :( but then i cant even change the rtmp to rtsp streams thats not in my hands . Please help. thanks |
You used rtmp? you can use tcpdump get all request and response, see the reason. |
Yes i have used rtmp. I will get back home and then try using tcpdump and get back to you, and i will also try it again on my device, just to check if it works well with the new update. I am currently using an older version of the library, i am sure it is not 4.2.1 version since it was just updated on Feb 26th here, while the library i have is one that was uploaded earlier, though the manifest seems to be reading 4.0 only as the version code for both :( . |
Try use the newest version. |
That is 4.2.1 ? I will go and uninstall the app and may be try once again. My bad i forgot to uninstall the older app that had the older vitamio library. I will get back with the result. Thanks. If not a problem, may i know why this happens but?? |
@crossle , hi.. Thank you for all your time :) 👍 . I managed to run the app well on the device yest, after uninstalling the older app. so this cancels the issue 26 in my case :). And also, i wanted to know that if incase there are updates to this library and if i pull all of them, and then make updates to an already uploaded app, and when the user takes the updates, that will not cause problems to them correct ? (Just thinking about future builds though). Thanks once again.Also Issue number 7 doesn't happen at least i have tested it for 5 min ,and things are working well. Fingers crossed i just hope things work well when the app goes live :).. |
Vitamio upgrade depends your app version code, if your app version code increase,then Vitamio will upgrade. |
So this means that it will not cause the native error correct ? |
@crossle - also on orientation change video buffer starts all over again, do i have to handle that myself ? thanks. |
Yes. |
@crossle hi - how do i set the video file name?? when i call mediaController.setFileName the file name does not change to a custom name. is there any other way this can be done ? |
Because of you invoke |
@crossle - so where exactly should i write the setFileName code?? My code looks like this:
thanks. |
Try |
@crossle - thank u very much. It works in the OnPreparedListener method. |
Hi @crossle , i have a doubt. i am using the latest version of this library, but then i have updated my application version from 1.0 to 1.0.3 , there was a time here, when u said that vitamio's version would also be upgraded. does that mean i would have to upgrade this manually in the manifest file ? i played an rtmp stream in the application for one video, though this didnt happen with other videos, it stop after 3min of playing like before it used to happen. but then when i played the video from the beginning again after closing the activity and reopening it , it didnt stop at 3min. Is there anything i am missing? or anything wrong with the stream ? i am using videobuffer. thanks. |
Yo, you must upgrade your manifest file. |
@crossle , so correct me if i am wrong, i have to upgrade the manifest version for vitamio library also correct? and should it be the same as my own apps manifest version declarations? |
No need upgrade Vitamio library version, only upgrade your own apps. |
@crossle - okie, i am doing that already :).. cool. is there anything missing that causes the video to play and then abruptly stop and cause the seek bar to move to the end ? |
You can see Vitamio print log.. |
Yes @crossle, i will test it once again, and tell u the log. as to what it says. |
@master255 - do u mind taking up the video buffer demo given by @crossle , then in the code u just have to replace it with the one that i have given, setting hardware decoder to false.. i currently do not have the demo set up and i dont have the code with me here. (in office) :(... pliz |
@hearbeathorror i want to testing it on different devices and different settings. It's hard to understand what wrong with your code without work example. |
I would want to be able to stream rtmp like the url in my code in all devices from 2.3 to 4.4 .. so will the files that you have mentioned able to do so? Also i could try MediaPlayerdemo and let you know. If you wnt the code i could post it tonight if thats alrite. @master255 .. even if i stop using that buffer code, it would still stop the player from playing isnt it ? |
@hearbeathorror i don't know. That would answer these questions I need a sample repository. |
@master255 @crossle - i have created the sample repository here ,please help me :(.. i need to update this soon. |
@master255 - help pliz..!! |
@master255 @crossle - i cannot play rtmp using mediaplayer demo video . i get this error: Giving up thread 12, exiting |
@hearbeathorror Wait, I saw your message. It's almost soon. |
@hearbeathorror i looked all 15 minutes of video without any bug. All work perfect. Look at my pull reqest. |
@master255 - thank you for the pull. does this mean that some of the permissions were missing and that is why is stops in between at my end?? or is my device like that ? this issue was also reported by a moto device :( ..i will add the new permissions and then test check again.. and then get back to u soon. |
@master255 @crossle - hi .. cud it be possible that your device is capable of handling the video size ? just the way @crossle mentioned in one of the comments that my device may not be capable of handling the video ? could you check this on a device that has low power ? i mean a device with not that good a processor?? pliz.. |
@hearbeathorror which version Android you tested? |
@master255 - i used optima vtab version 4.1 and Stellar blaze spice android version 2.3.3, the user complaining has android 4.2 and moto X i think. |
@hearbeathorror what is your problem now and on what devices? |
@master255 - give me a moment pliz..:)...i nid to check it thoroughly.. but i really wanted to know the issue was in the permissions? |
@hearbeathorror maybe |
@master255 -hiii.. i watched the video.. And it played well till 3:21,and then it stopped suddenly :(.. It still persists on my device. Android 2.3.6, Spice mi355. What do i do now? Please hlp. |
@hearbeathorror you test it on android 4+? |
@master255 - yes, i will test it on 4 plus also.. just give me an hour please..n il get back to u here only.. |
@master255 - i donot know why .. but why do i get this error the first time i try to run the app on a tab with 4.0.3 version? 08-17 19:36:28.914: I/Vitamio[4.2.6]Player: Copyright (c) YIXIA (http://yixia.com). Let me run it once more and tell you if it stops. |
@master255 - i am afraid but this issue still occurs in android v 4.0.3 08-17 20:11:39.367: W/AudioTrack(2589): obtainBuffer() track 0xd966a8 disabled, restarting It stopped at 1:52 .. please help @master255 @crossle |
@hearbeathorror I also have this error if i turn off the internet when the video plays. Check internet conection from your computer to target site. |
@master255 @crossle - yes the internet tower does go away for a while when the video stops.. Is there a way i could handle this in code? please help. also i would want to start playing the video when the user moves the seekbar but that also doesnt work :(. i do not know how to make it work. Please assist.... |
@hearbeathorror you can restarting video or increase buffer. Now I do not have time for this, but I'll get to that shortly. |
@master255 - ok i will look into how to increase the buffer size. but pliz do get back to this issue soon :(.. thank u for the advices.. il try them. i need to upload the updated version :( .. @crossle - helppppp !!! ... |
When play video about 3-5 mins, onCompletion invoked although it is not the end of file. For example with a video length 10 mins, when player playing about 3-5 min, onCompletion invoked and of course player stoped. This only happens in some weak device like Samsung Galaxy Y and Vitamio libs on VItamio Bundle; Google Play libs version DOESN'T have this problem.
Here is some log before player stop:
01-14 11:40:42.882: I/Vitamio(2963): Info (700, 0)
01-14 11:40:42.882: D/TAG(2963): 700_0
01-14 11:40:42.929: I/Vitamio(2963): Info (700, 0)
01-14 11:40:42.929: D/TAG(2963): 700_0
01-14 11:40:42.976: I/Vitamio(2963): Info (700, 0)
01-14 11:40:42.976: D/TAG(2963): 700_0
01-14 11:40:42.984: I/Vitamio(2963): Info (700, 0)
01-14 11:40:42.984: D/TAG(2963): 700_0
01-14 11:40:43.031: I/Vitamio(2963): Info (700, 0)
01-14 11:40:43.031: D/TAG(2963): 700_0
01-14 11:40:48.304: E/VitamioPlayer: [h264 @ 0x586330] AVC: nal size 3402
01-14 11:40:48.304: E/VitamioPlayer: [h264 @ 0x586330] no frame!
01-14 11:40:48.304: E/VitamioPlayer: FFMPEG NATIVE avcodec_decode_video2
01-14 11:40:48.312: D/VitamioPlayer: playback complete (0, 0)
01-14 11:40:48.312: D/VitamioVideoView(2963): onCompletion
The text was updated successfully, but these errors were encountered: