-
Notifications
You must be signed in to change notification settings - Fork 97
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
Error broadcasting #2
Comments
Ah this is still hard-coded to use RTMP mode which we are going to push back for the 1.1.x branch. I'll sort this out today! |
Cool, thanks! Could you leave a comment when this is updated? |
Okay I've updated the SDK to fix that problem. It's still very rough around the edges, but the basic functionality is there. For now it might be best to use the submodule version of the podspec because I'm going to be doing some major development in the next two weeks before shipping our stable release. |
Ok cool. How do I go about doing that? Should I download the repo? |
Fork the repo then try this:
|
Thanks! I just tried a clean build (deleted my repo, forked it and then re-installed with the instructions above) but I get the following new errors: fatal error: file '/Users/johanndiedrick/Documents/iOS/kickflip/kickflip-ios-example/Pods/Headers/FFmpeg-iOS/libavutil/time.h' has been modified since the precompiled header '/Users/johanndiedrick/Library/Developer/Xcode/DerivedData/ModuleCache/1K77AWNH1I9SN/CoreFoundation.pcm' was built fatal error: file '/Users/johanndiedrick/Documents/iOS/kickflip/kickflip-ios-example/Pods/Headers/FFmpeg-iOS/libavutil/time.h' has been modified since the precompiled header '/Users/johanndiedrick/Library/Developer/Xcode/DerivedData/ModuleCache/1K77AWNH1I9SN/CoreFoundation.pcm' was built /// Here's my install in case I missed something... geofront:kickflip johanndiedrick$ git clone https://github.com/jdiedrick/kickflip-ios-example.git and some screen shots from xcode: |
Huh thats weird, do any of these answers help? This might do the trick:
|
Cool that worked. Xcode just needed a clean as well :) Almost there! After hitting start, I get this message: 2014-03-28 19:12:28.046 KFDemo[24262:60b] codec not found: h264 After a few seconds I get my stream URL link, but it doesn't seem to work. My browser tries to download a .m3u8 file... Here's the output in the console: 2014-03-28 19:13:05:729 KFDemo[24262:60b] Stream is ready at URL: http://ch-test-29c466b1-cc55-49ad-8c91-9b4558d1af8e.s3.amazonaws.com/ch-test-29c466b1-cc55-49ad-8c91-9b4558d1af8e-nlz2or/bfe0ed3a-7634-41cb-8f73-5992a376ae96/index.m3u8 |
So I tried sharing the link via text message and I got the right URL: https://api.kickflip.io/bfe0ed3a-7634-41cb-8f73-5992a376ae96 Chrome barked at me about being sure I wanted to visit the site (yellow warning screen, screenshot to come if I can get someone to replicate it): The video looks ok, although it seems to be stuck in landscape mode (my phone is now oriented in portrait): |
Awesome, congrats on getting it to work! We still need to get a proper SSL cert for that domain which is why you see For the time being we only support landscape mode because otherwise it As far as the direct m3u8 link, that one for playing in the default iOS Thanks for trying it out, there is a lot of more functionality and On Friday, March 28, 2014, Johann Diedrick notifications@github.com wrote:
|
Updated the SDK quite a bit since you've last seen it, check it out! |
When trying to broadcast with the default KFSecrets.h Client ID and Client Secret, I get this error:
2014-03-28 11:44:14.765 KFDemo[23974:60b] codec not found: h264
Parsing...
Parsed protocol: 0
Parsed host : live31.us-va.zencoder.io
Parsed app : live
This is after I hit the "Broadcast" button, then the "Start" button. The video comes up fine on the device.
After letting the app run for a few minutes, I get this error:
RTMP_Connect0, failed to connect socket. 60 (Operation timed out)
2014-03-28 11:45:29:968 KFDemo[23974:60b] Error preparing for writing: Error Domain=org.ffmpeg.FFmpeg Code=-1313558101 "Unknown error occurred" UserInfo=0x166a0090 {kFFmpegErrorCode=-1313558101, NSLocalizedDescription=Unknown error occurred}
(lldb)
Trying with my own Client ID and Secret, I get this error:
2014-03-28 11:49:02.936 KFDemo[23998:60b] codec not found: h264
Parsing...
Parsed protocol: 0
Parsed host : live31.us-va.zencoder.io
Parsed app : live
I get the same "Operation timed out" error with this as well after a minute or two.
RTMP_Connect0, failed to connect socket. 60 (Operation timed out)
2014-03-28 11:50:18:141 KFDemo[23998:60b] Error preparing for writing: Error Domain=org.ffmpeg.FFmpeg Code=-1313558101 "Unknown error occurred" UserInfo=0x1758aa00 {kFFmpegErrorCode=-1313558101, NSLocalizedDescription=Unknown error occurred}
(lldb)
Let me know what you think!
The text was updated successfully, but these errors were encountered: