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

RTMP videos takes too long to load, around 8 to15 seconds to load #74

Open
mariotatis opened this issue Apr 19, 2016 · 0 comments
Open

Comments

@mariotatis
Copy link

Hi there,

I'm loading a RTMP video, but it is taking too long to load, around 8 to15 seconds.

I'm following this sample code:

https://github.com/slavavdovichenko/MediaLibDemos3x/blob/master/RTMPStreamPlayer/ViewController.m#L108

-(void)doConnect {

    decoder = [[MPMediaDecoder alloc] initWithView:previewView];
    decoder.delegate = self;
    decoder.isRealTime = isLive;

    decoder.orientation = UIImageOrientationUp;

    [decoder setupStream:[NSString stringWithFormat:@"%@/%@", hostTextField.text, streamTextField.text]];

    btnConnect.title = @"Disconnect";

    [netActivity startAnimating];
}

Is there any way to pass an extra parameter to the decoder, something like: BufferSize or video quality or whatever other strategy to make the initial loading faster?

Thanks.

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

1 participant