How to implement uploading in broadcast upload extension (iOS)? -
is know there ability upload frame buffers broadcast upload extension host app or should load them directly back-end ? goal intercept frame buffers replay kit, send them application , broadcast video through application using webrtc. appreciate help. in advance.
only broadcast upload extension , broadcast ui extension loaded when broadcast starts. , far know there no programmatic way of launching host app , streaming data in background.
but can implement whole logic in broadcast upload extension. rpbroadcastsamplehandler
implementation fed video cmsamplebuffer
s. post-processing , upload logic implementation. can unpack , process frames , upload server in suitable way. if need configuration or authorization details can set them in broadcast ui extension or in host app , store them in shared storage.
there not information on internet nor in apple documentation. still can:
- watch wwdc 2016 video
go live replaykit
- read
rpbroadcastsamplehandler
documentation - read quite useful blog post (in chinese): http://blog.lessfun.com/blog/2016/09/21/ios-10-replaykit-live-and-broadcast-extension/
- play around stub implementation of upload extension (simply create target in xcode)
Comments
Post a Comment