2

I'm new to Programming Business and making Broadcasting App Which is supposed to Handle Screen Broadcast Function(iPhone Control Center --> Broadcast. Like a Mobcrush).

So I try to implement Broadcast App Extension that was introduced at WWDC, but my Demo App Doesn't work well. My Demo App Just Doesn't Broadcast And Just Show Me an Error Alert Which Says "Live Broadcast to MYDemoApp has stopped due to: (null)"

Here Are The Things What I Did On Demo App

  1. Implementing App Extension(BroadCast Extension. Which Makes SampleHandler, BroadcastSetupViewController)

  2. Implementing App Group(Setting Capability, BundleIdentifier, Setting App Groups And Provisioning Profile in Developer.Apple.com)

  3. Pod Install And Copied The Codes That I Didn't Write From Other Developer's Demo App (HaishinKit) (https://github.com/shogo4405/HaishinKit.swift)

  4. Put RTMP URL String in userDidFinishSetup() in BroadcastSetupViewController (This App is Demo, So i Just Put My Own RTMP Address And Stream Key. Like This : rtmp://bc.CompanyName.tv/app/VeryLongStreamKey)

Plus, I Think this is Not an RTMP URL Issue. because I already did Camera(Front, Rear) Broadcast Test With That URL(Not an App Extension. Just in the Simple ViewController).

Could you Tell Me A Hint? Any Feedback Would Be Appreciated!

Thank For You Reading My First Question About Coding.

This is an Alert That I Saw

Kiran Sarvaiya
  • 1,318
  • 1
  • 13
  • 37
Jun Young Jee
  • 29
  • 1
  • 2

1 Answers1

2

I found there is many limitations on iOS broadcast extension. - If extension started by container app via API, Network become off when app goes background. - File access is not possible. - Asset access is not possible. - Swift print() do nothing. Use NSLog() and idevicesyslog. - Xcode "Attach to process by PID or Name..." works.

If you get "due to (null)" error, debug on Xcode by attaching process. Or put NSLog() and see by idevicesyslog.

user1418067
  • 304
  • 1
  • 8