FBLiveAPISample-iOS icon indicating copy to clipboard operation
FBLiveAPISample-iOS copied to clipboard

Facebook live issue

Open tbago opened this issue 8 years ago • 13 comments

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.

tbago avatar Oct 19 '16 06:10 tbago

I'm having the same problem

lfarah avatar Nov 16 '16 06:11 lfarah

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

kciter avatar Nov 16 '16 08:11 kciter

@kciter @tbago any ideas on how to solve?

lfarah avatar Nov 17 '16 18:11 lfarah

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

satishtestrepository avatar Dec 21 '16 14:12 satishtestrepository

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

tbago avatar Dec 22 '16 03:12 tbago

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

satishtestrepository avatar Dec 22 '16 05:12 satishtestrepository

@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.

tbago avatar Dec 22 '16 05:12 tbago

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

satishtestrepository avatar Dec 22 '16 07:12 satishtestrepository

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

RamNineHertz avatar Jan 12 '17 05:01 RamNineHertz

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

LittleWoodyDoll avatar Feb 09 '17 03:02 LittleWoodyDoll

when i clicked live button it crashed!!1

Wutaotao692732757 avatar Feb 15 '17 03:02 Wutaotao692732757

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

kciter avatar Feb 16 '17 02:02 kciter

@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); } }

tbago avatar Feb 16 '17 06:02 tbago