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

No audio after 5-10 seconds playing video live stream in device #3

Closed
vminc opened this issue Aug 12, 2013 · 9 comments
Closed

No audio after 5-10 seconds playing video live stream in device #3

vminc opened this issue Aug 12, 2013 · 9 comments

Comments

@vminc
Copy link

vminc commented Aug 12, 2013

When I play a video stream, it works fine on simulator, but when I build on device, the following problem always happen:

  • After video plays for 5-10 seconds, the audio suddenly turns off.

My device is iPhone5, running iOS 6.1.

@EchoLiao
Copy link
Contributor

Pls submit your stream url for us to test or locate that problem..

@vminc
Copy link
Author

vminc commented Aug 13, 2013

The stream URL is http://112.197.2.11:1935/live/vtv3.stream/playlist.m3u8. Thanks!

@EchoLiao
Copy link
Contributor

is this URL valid? we can't play it with any player even in PC player or browser.
But we can download the m3u8 file, the m3u8 file may be invalid.

@EchoLiao
Copy link
Contributor

I tested it again and can play now. it have problem with VMDecodingSchemeSoftware decoding scheme as you push above.

To solve this problem just change decoding scheme to VMDecodingSchemeQuickTime,

- (void)mediaPlayer:(VMediaPlayer *)player setupManagerPreference:(id)arg
{
    player.decodingSchemeHint = VMDecodingSchemeQuickTime;
}

@vminc
Copy link
Author

vminc commented Aug 16, 2013

Thanks for your help!
Will this solution work for all video formats or it only works for quickTime format?

@EchoLiao
Copy link
Contributor

All formats. btw, You don't need worry about it, even if vitamio failed with VMDecodingSchemeQuickTime, it also auto change to other scheme.

@vminc
Copy link
Author

vminc commented Aug 16, 2013

Thanks !

@vminc
Copy link
Author

vminc commented Aug 28, 2013

The problem still happens even if I use VMDecodingSchemeQuickTime.
Here's the stream I used to test rtmp://113.161.212.25/live/atv1

The audio only disappears if I don't pause/start the player during buffering :

  • (void)mediaPlayer:(VMediaPlayer *)player bufferingStart:(id)arg
    {
    [player pause];
    }
  • (void)mediaPlayer:(VMediaPlayer *)player bufferingEnd:(id)arg
    {
    [player start];
    }

However if I pause/start the player like above, the video player does not play as smooth as vitamio for Android under the same network condition. The buffer size I used is 200 000.

@kirti301290
Copy link

@vminc
i tried to play rtmp file using this SDK but does no play i passed Options key
keys[0] = @"-rtmp_live";
vals[0] = @"-1";

pls reply me i tried to play to many time
pls.

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

3 participants