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

MediaPlayer stop (onCompletion) in the middle of file #7

Open
redmanit opened this issue Jan 14, 2013 · 70 comments
Open

MediaPlayer stop (onCompletion) in the middle of file #7

redmanit opened this issue Jan 14, 2013 · 70 comments

Comments

@redmanit
Copy link

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

@crossle
Copy link
Contributor

crossle commented Mar 15, 2013

when playbacking, the video can't decode any frame (no frame)...so complete...

@redmanit
Copy link
Author

But Google Play libs version DOESN'T have this problem. I think problem is in the bundle lib.

@deepaktechno
Copy link

i have same problem while playing "http://94.242.221.141/hls/a-lo/stream140.m3u8" but no solution found yet

@crossle
Copy link
Contributor

crossle commented Aug 30, 2013

I think it's should http timeout. Vitamio will add API set http timeout

@ghost
Copy link

ghost commented Mar 30, 2014

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)
03-30 21:38:59.765: I/VitamioPlayer: Info (702, 0)
03-30 21:38:59.765: D/VitamioPlayer: onInfo: (702, 0)
03-30 21:38:59.773: D/VitamioPlayer: start
03-30 21:39:00.078: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.078: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.148: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.148: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.218: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.218: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.273: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.273: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.398: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.398: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.453: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.453: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.523: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.523: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.585: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.585: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.656: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.656: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.718: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.718: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.789: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.789: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.851: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.851: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.914: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.914: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:00.984: I/VitamioPlayer: Info (700, 0)
03-30 21:39:00.984: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.046: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.046: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.109: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.109: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.179: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.179: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.242: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.242: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.304: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.304: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.375: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.375: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.437: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.437: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.500: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.500: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.570: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.570: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.632: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.632: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.695: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.695: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.757: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.757: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.820: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.820: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.890: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.890: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:01.945: I/VitamioPlayer: Info (700, 0)
03-30 21:39:01.945: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.015: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.015: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.085: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.085: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.156: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.156: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.226: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.226: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.289: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.289: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.375: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.375: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.429: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.429: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.507: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.507: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.570: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.570: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.632: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.632: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.695: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.695: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.773: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.773: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:02.875: I/VitamioPlayer: Info (700, 0)
03-30 21:39:02.875: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.023: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.023: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.117: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.117: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.179: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.179: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.250: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.250: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.304: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.304: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.367: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.367: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.429: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.429: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.492: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.492: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.546: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.554: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.609: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.609: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.671: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.671: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.726: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.726: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.789: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.789: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.843: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.843: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.914: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.914: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:03.968: I/VitamioPlayer: Info (700, 0)
03-30 21:39:03.968: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.023: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.023: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.085: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.085: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.148: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.148: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.210: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.210: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.273: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.273: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.328: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.328: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.359: W/AudioTrack(11757): obtainBuffer() track 0x1f63e90 disabled, restarting
03-30 21:39:04.398: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.398: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.453: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.453: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.507: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.507: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.570: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.570: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.632: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.632: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.687: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.687: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.742: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.742: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.820: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.820: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.882: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.882: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:04.937: I/VitamioPlayer: Info (700, 0)
03-30 21:39:04.937: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.000: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.000: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.054: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.054: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.109: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.109: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.164: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.164: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.226: W/AudioTrack(11757): obtainBuffer() track 0x1f63e90 disabled, restarting
03-30 21:39:05.328: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.328: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.453: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.453: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.507: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.507: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.562: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.562: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.625: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.625: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.679: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.679: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.734: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.734: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.789: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.789: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.843: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.843: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.906: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.906: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:05.968: I/VitamioPlayer: Info (700, 0)
03-30 21:39:05.968: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.023: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.023: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.078: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.078: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.109: W/AudioTrack(11757): obtainBuffer() track 0x1f63e90 disabled, restarting
03-30 21:39:06.132: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.132: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.195: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.195: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.250: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.250: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.304: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.304: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.367: I/VitamioPlayer: Info (700, 0)
03-30 21:39:06.367: D/VitamioPlayer: onInfo: (700, 0)
03-30 21:39:06.523: D/VitamioPlayer: playback complete (0, 0)
03-30 21:39:06.523: D/VitamioPlayer: onCompletion

EDIT:

I have also received the following in the logs

03-30 21:48:21.218: E/VitamioPlayer: [h264 @ 0x1fde120] AVC: nal size 21839903
03-30 21:48:21.218: E/VitamioPlayer: [h264 @ 0x1fde120] no frame!
03-30 21:48:21.218: E/VitamioPlayer: FFMPEG NATIVE avcodec_decode_video2

I am using VideoBuffer for the same. Is there a solution to this problem ? Please assist as it is on a urgent basis .

Thanks.

@crossle
Copy link
Contributor

crossle commented Mar 31, 2014

The main reason not receiver the avalid frame

@ghost
Copy link

ghost commented Mar 31, 2014

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

@crossle
Copy link
Contributor

crossle commented Mar 31, 2014

You used rtmp? you can use tcpdump get all request and response, see the reason.

@ghost
Copy link

ghost commented Mar 31, 2014

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 :( .

@ghost
Copy link

ghost commented Apr 1, 2014

@crossle Issue 26 still exists :( am i missing something?

@crossle
Copy link
Contributor

crossle commented Apr 1, 2014

Try use the newest version.

@ghost
Copy link

ghost commented Apr 1, 2014

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??

@ghost
Copy link

ghost commented Apr 2, 2014

@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 :)..

@crossle
Copy link
Contributor

crossle commented Apr 2, 2014

Vitamio upgrade depends your app version code, if your app version code increase,then Vitamio will upgrade.

@ghost
Copy link

ghost commented Apr 2, 2014

So this means that it will not cause the native error correct ?

@ghost
Copy link

ghost commented Apr 2, 2014

@crossle - also on orientation change video buffer starts all over again, do i have to handle that myself ? thanks.

@ghost
Copy link

ghost commented Apr 4, 2014

@crossle - if your app version code increase,then Vitamio will upgrade. -> referring to this, vitamio will upgrade on its own correct ?

here is the app that i used vitamio in :)..

@crossle
Copy link
Contributor

crossle commented Apr 4, 2014

Yes.

@ghost
Copy link

ghost commented Apr 4, 2014

@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 ?

@crossle
Copy link
Contributor

crossle commented Apr 6, 2014

Because of you invoke setFileName before VideoView invoke setFileName

@ghost
Copy link

ghost commented Apr 7, 2014

@crossle - so where exactly should i write the setFileName code??

My code looks like this:

  mVideoView.setVideoURI(uri);
  mMediaController = new MediaController(this);
  mVideoView.setMediaController(mMediaController);
  mMediaController.setFileName("name here");
  mVideoView.requestFocus();
  mVideoView.setOnInfoListener(this);
  mVideoView.setOnBufferingUpdateListener(this);
  mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
    @Override
    public void onPrepared(MediaPlayer mediaPlayer) {
      // optional need Vitamio 4.0
      mediaPlayer.setPlaybackSpeed(1.0f);
    }
  });

thanks.

@crossle
Copy link
Contributor

crossle commented Apr 8, 2014

Try setOnPreparedListener

@ghost
Copy link

ghost commented Apr 14, 2014

@crossle - thank u very much. It works in the OnPreparedListener method.

@ghost
Copy link

ghost commented Jun 21, 2014

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.

@crossle
Copy link
Contributor

crossle commented Jun 21, 2014

Yo, you must upgrade your manifest file.

@ghost
Copy link

ghost commented Jun 21, 2014

@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?

@crossle
Copy link
Contributor

crossle commented Jun 21, 2014

No need upgrade Vitamio library version, only upgrade your own apps.

@ghost
Copy link

ghost commented Jun 21, 2014

@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 ?

@crossle
Copy link
Contributor

crossle commented Jun 21, 2014

You can see Vitamio print log..

@ghost
Copy link

ghost commented Jun 21, 2014

Yes @crossle, i will test it once again, and tell u the log. as to what it says.

@ghost
Copy link

ghost commented Aug 12, 2014

@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

@master255
Copy link
Contributor

@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.
And may be you need to chose different way, like use your custom videoview? As like https://github.com/master255/TextureVideoPlayer based on standart media player or vitamio
Or don't use code what showing buffer progress.
Or use https://github.com/google/ExoPlayer
Or use (recommendation) https://github.com/yixia/VitamioBundle/blob/master/vitamio-sample/src/io/vov/vitamio/demo/MediaPlayerDemo_Video.java

@ghost
Copy link

ghost commented Aug 12, 2014

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 ?

@master255
Copy link
Contributor

@hearbeathorror i don't know. That would answer these questions I need a sample repository.

@ghost
Copy link

ghost commented Aug 15, 2014

@master255 @crossle - i have created the sample repository here ,please help me :(.. i need to update this soon.

@ghost
Copy link

ghost commented Aug 16, 2014

@master255 - help pliz..!!

@ghost
Copy link

ghost commented Aug 16, 2014

@master255 @crossle - i cannot play rtmp using mediaplayer demo video . i get this error:

Giving up thread 12, exiting
Fatal sig

@master255
Copy link
Contributor

@hearbeathorror Wait, I saw your message. It's almost soon.

@master255
Copy link
Contributor

@hearbeathorror i looked all 15 minutes of video without any bug. All work perfect. Look at my pull reqest.

@ghost
Copy link

ghost commented Aug 17, 2014

@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.

@ghost
Copy link

ghost commented Aug 17, 2014

@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..

@master255
Copy link
Contributor

@hearbeathorror which version Android you tested?
I test it on galaxy s5 android 4.4.2.

@ghost
Copy link

ghost commented Aug 17, 2014

@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.

@master255
Copy link
Contributor

@hearbeathorror what is your problem now and on what devices?

@ghost
Copy link

ghost commented Aug 17, 2014

@master255 - give me a moment pliz..:)...i nid to check it thoroughly.. but i really wanted to know the issue was in the permissions?

@master255
Copy link
Contributor

@hearbeathorror maybe

@ghost
Copy link

ghost commented Aug 17, 2014

@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.

@master255
Copy link
Contributor

@hearbeathorror you test it on android 4+?
In general, I advocate using api 4+. It's recommendation from Google.
I will not help with the android 4-.

@ghost
Copy link

ghost commented Aug 17, 2014

@master255 - yes, i will test it on 4 plus also.. just give me an hour please..n il get back to u here only..

@ghost
Copy link

ghost commented Aug 17, 2014

@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).
08-17 19:36:28.914: I/Vitamio[4.2.6]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com)
08-17 19:36:28.921: I/Vitamio[4.2.6]Player: LOAD FFMPEG START: /data/data/com.adonnai.pname/libs/libffmpeg.so
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: LOAD FFMPEG END: /data/data/com.adonnai.pname/libs/libffmpeg.so
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: LOAD VVO START: /data/data/com.adonnai.pname/libs/libvvo.9.so
08-17 19:36:28.929: E/Vitamio[4.2.6]Player: FIND_NAME_SYM vvo, render_yuv
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: LOAD VVO END: /data/data/com.adonnai.pname/libs/libvvo.9.so
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: LOAD VAO START: /data/data/com.adonnai.pname/libs/libvao.0.so
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: LOAD VAO END: /data/data/com.adonnai.pname/libs/libvao.0.so
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: VPLAYER INIT BEGIN
08-17 19:36:28.929: I/Vitamio[4.2.6]Player: Application package name: com.adonnai.pname
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: VPLAYER INIT END
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: Copyright (c) YIXIA (http://yixia.com).
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com)
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: Application package name: com.adonnai.pname
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: Copyright (c) YIXIA (http://yixia.com).
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com)
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: Application package name: com.adonnai.pname
08-17 19:36:28.953: I/Vitamio[4.2.6]Player: PREPARE SIG: 0
08-17 19:36:28.960: I/Vitamio[4.2.6]Player: THREAD PREPARE START
08-17 19:36:28.960: I/Vitamio[4.2.6]Player: THREAD PREPARE ATTACHED
08-17 19:36:28.960: I/Vitamio[4.2.6]Player: Copyright (c) YIXIA (http://yixia.com).
08-17 19:36:28.960: I/Vitamio[4.2.6]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com)
08-17 19:36:28.960: I/Vitamio[4.2.6]Player: OPEN FILE rtmp://cp269609.edgefcs.net/ondemand/mp4:207011/mm/flvmedia/2627/n/3/a/n3a210me_g26264gg_h264_1328K.mp4?cid=2627&aid=2191717&afid=4152437
08-17 19:36:29.070: D/OpenGLRenderer(1803): Flushing caches (mode 0)
08-17 19:36:39.882: A/libc(1803): Fatal signal 11 (SIGSEGV) at 0x4d25101c (code=1)

Let me run it once more and tell you if it stops.

@ghost
Copy link

ghost commented Aug 17, 2014

@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
08-17 20:11:39.382: I/VitamioPlayer: Info (901, 23)
08-17 20:11:39.382: D/VitamioPlayer: onInfo: (901, 23)
08-17 20:11:39.382: I/VitamioPlayer: Info (701, 0)
08-17 20:11:39.382: D/VitamioPlayer: onInfo: (701, 0)
08-17 20:11:39.382: I/Vitamio[4.2.6]Player: stop
08-17 20:11:39.460: I/VitamioPlayer: Info (700, 0)
08-17 20:11:39.460: D/VitamioPlayer: onInfo: (700, 0)
08-17 20:11:39.515: I/VitamioPlayer: Info (700, 0)
08-17 20:11:39.515: D/VitamioPlayer: onInfo: (700, 0)
08-17 20:11:39.570: I/VitamioPlayer: Info (700, 0)
08-17 20:11:39.570: D/VitamioPlayer: onInfo: (700, 0)
08-17 20:11:43.546: I/VitamioPlayer: Info (901, 15)
08-17 20:11:43.546: D/VitamioPlayer: onInfo: (901, 15)
08-17 20:11:48.656: I/VitamioPlayer: Info (702, 0)
08-17 20:11:48.656: D/VitamioPlayer: onInfo: (702, 0)
08-17 20:11:48.656: I/Vitamio[4.2.6]Player: start
08-17 20:11:49.914: W/AudioTrack(2589): obtainBuffer() track 0xd966a8 disabled, restarting
08-17 20:11:49.945: D/VitamioPlayer: onCompletion

It stopped at 1:52 .. please help @master255 @crossle

@master255
Copy link
Contributor

@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.

@ghost
Copy link

ghost commented Aug 18, 2014

@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....

@master255
Copy link
Contributor

@hearbeathorror you can restarting video or increase buffer. Now I do not have time for this, but I'll get to that shortly.

@ghost
Copy link

ghost commented Aug 18, 2014

@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 !!! ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants