kciter / FBLiveAPISample-iOS

Facebook Live API Sample for iOS
MIT License
56 stars 12 forks source link

Facebook live issue #1

Open tbago opened 8 years ago

tbago commented 8 years ago

Hi, The sample you provide works perfect. But when I change the input source to our special source. The live video will close after a few seconed. The log as following:

nal_type:1,size:850, pts:2046,dts:2046
nal_type:1,size:777, pts:2079,dts:2079
nal_type:1,size:969, pts:2112,dts:2112
nal_type:1,size:802, pts:2145,dts:2145
Want read:4096, read:0
Read from stream error:0
ClientState: 11
2016-10-19 14:34:37.662 YuneecStreamTest[9683:1103260] session state:4
~RTMPSession2016-10-19 14:34:38.354 YuneecStreamTest[9683:1103260] session state:4

I don't known why the rtmp stream is close.

lfarah commented 8 years ago

I'm having the same problem

kciter commented 8 years ago

Hello. I think the problem is with the VideoCore library or streaming server. 🤔

lfarah commented 8 years ago

@kciter @tbago any ideas on how to solve?

satishtestrepository commented 7 years ago

Hi i have run that sample code what you have provide to us in my ipad the code is working perfectly up to fb sign in after that i am just click on live and its showing connecting but nothing happen after that. please tell me any solution to why its not connected to fb Thanks in advance

tbago commented 7 years ago

I solve the stream issue by reconnect the Facebook rtmp server.

satishtestrepository commented 7 years ago

hello @tbago thank you for your response. i am a new to streaming i am just trying to connect fb live with this sample code and i have changed my app id and app name in plist and CFBundleURLSchemes but when i click on live button it just showing connecting only nothing happen after that. could you please help me about this streaming and please send me your worked streaming code if it is possible

Thanks in advance Satish

tbago commented 7 years ago

@satishtestrepository First of all, you need make sure your app in Facebook has the ability to push stream (in app review page you must have publish_actions and Live Video API feature enable). Or you must add you test users to your app Testers in roles page.

satishtestrepository commented 7 years ago

hello @tbago i had do what you was say and after that i am getting error i.e., Read from stream error:0 ClientState: 11 ~RTMPSession and you said that your issue was solved with reconnecting rtmp server so, where you have put the code of reconnecting rtmp server and could you please share your reconnecting code

RamNineHertz commented 7 years ago

Hello,

Greetings of the day!!

We are the team of developers who want to implement Live Broadcast feature in one of our ongoing iOS project. Now to provide live streaming of that broadcast on Facebook, we've not provided any sample code for iOS on the developer console. The Sample(FBLiveAPISample) provide on the website is not letting me go live on facebook. It gets stuck on "connecting" status.

Could you please guide us how can we implement live broadcasting in iOS.

Awaiting your response.

Thanks Ramprakash

LittleWoodyDoll commented 7 years ago

@tbago could you please teach me how to change the input source ?? I really don't know how to do that!

Wutaotao692732757 commented 7 years ago

when i clicked live button it crashed!!1

kciter commented 7 years ago

Hello, @RamNineHertz @Wutaotao692732757 Are you put FacebookAppId and FacebookDisplayName value in Info.plist?

tbago commented 7 years ago

@LittleWoodyDoll I change the VCSimpleSession source code. My device will output h264 data to me. First I remove the camera source and h264 encoder. I manual put data to h264 packet Transform. - (void)manualPutH264Data:(NSData *) h264Data pts:(NSInteger) pts dts:(NSInteger) dts { videocore::VideoBufferMetadata md(pts, dts); if (m_h264Packetizer != nullptr) { m_h264Packetizer->pushBuffer((const uint8_t *)[h264Data bytes], h264Data.length, md); } }