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

stream url taking to long to response #50

Open
trimi opened this issue Dec 17, 2015 · 2 comments
Open

stream url taking to long to response #50

trimi opened this issue Dec 17, 2015 · 2 comments

Comments

@trimi
Copy link

trimi commented Dec 17, 2015

After I present the broadcast controller with:

    Kickflip.presentBroadcasterFromViewController(self,
            ready: { stream in
                if ((stream.streamURL) != nil){
                   print(stream.streamURL)
                }
            }, completion:{ success, error in
                if (!success) {
                    print("Error setting up stream: %@", error);
                } else {
                    print("Done broadcasting");
                }
        })

First I'm getting this

codec not found: h264
[mpegts @ 0x17c38600] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts

and then it takes up to 14 seconds to get the streaming URL. Am I missing something or should I do something different because 14 seconds is to long to get the streaming URL ? (I'm using iPhone 4S and and iPad to test it)

Thank you in advance.

@ivarvermeulen
Copy link

An HLS manifest will need at least a couple of segments before being able to view the stream (by default iOS buffers 3 segments), given the fact a segment is 10 seconds it will last at least 1 segment before the m3u8 can be created and thus a streaming url can be created. It's possible to shorter this time somewhat by creating segments with a shorter duration (6 or even 4 seconds).

@trimi
Copy link
Author

trimi commented Jan 5, 2016

@ivarvermeulen thank you for your explanation. I have another issue that I would appreciated if you could help me. The issue is about the orientation, It seems that I can only stream in landscape mode. I did some changes that I found here #48 but with this I can only change the orientation before I start the stream not while I'm streaming(so if i start the stream in landscape mode, all my stream will be in landscape mode and vice-versa). Any ideas on where might the problem be ? Thank you.

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

2 participants