replaykit

App not showing up as a broadcast service in RPBroadcastActivityViewController

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 12:29:07
问题 I'm trying to use Replaykit to start a broadcast session (recording the App screen works ok) and it opens up a picker from where broadcasting Apps can be picked, Youtube, Facebook and Periscope show up but not my App, code: if #available(iOS 10.0, *) { RPBroadcastActivityViewController.load { broadcastAVC, error in guard error == nil else { print("Cannot load Broadcast Activity View Controller.") return } if let broadcastAVC = broadcastAVC { broadcastAVC.delegate = self self.viewController

Unable to Screencast to Apprtc using Replay Kit Over Webrtc

感情迁移 提交于 2021-02-02 09:57:24
问题 Hello There, I am trying to screen broadcast with latest webrtc libraries but I keep getting following error: iOS 13.0 & above: Live broadcast has stopped due to Attempted to start invalid broadcast session. less than iOS13 but greater than iOS 12.0: Live broadcast has stopped due to:(null) I would really appreciate if anyone can answer my question. Thanks var peerConnectionFactory: RTCPeerConnectionFactory? var localVideoSource: RTCVideoSource? var videoCapturer: RTCVideoCapturer? func

Unable to Screencast to Apprtc using Replay Kit Over Webrtc

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-02 09:57:01
问题 Hello There, I am trying to screen broadcast with latest webrtc libraries but I keep getting following error: iOS 13.0 & above: Live broadcast has stopped due to Attempted to start invalid broadcast session. less than iOS13 but greater than iOS 12.0: Live broadcast has stopped due to:(null) I would really appreciate if anyone can answer my question. Thanks var peerConnectionFactory: RTCPeerConnectionFactory? var localVideoSource: RTCVideoSource? var videoCapturer: RTCVideoCapturer? func

[10秒学会]

对着背影说爱祢 提交于 2021-01-10 17:01:37
前言:我是赵大财,10秒学会系列,绝不废话连篇! 力求10秒,让你了解 会用此知识点 // // ViewController.m // DCReplayKit // // Created by point on 16/4/5. // Copyright © 2016年 tshiny. All rights reserved. // #import "ViewController.h" #import <ReplayKit/ReplayKit.h> @interface ViewController ()<RPPreviewViewControllerDelegate> @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; RPScreenRecorder *recorder = [RPScreenRecorder sharedRecorder]; if([recorder isAvailable]) { NSLog(@"支持录制"); }else{ NSLog(@"不支持录制"); } UIButton *startBtn = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 100, 100)]; [self.view

iOS screen sharing (using ReplayKit) using WebRTC in swift

泪湿孤枕 提交于 2020-12-08 03:57:23
问题 I have successfully implemented ReplayKit. SampleHandler.swift class SampleHandler: RPBroadcastSampleHandler { override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { } override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) { switch sampleBufferType { case RPSampleBufferType.video: break case RPSampleBufferType.audioApp: break case RPSampleBufferType.audioMic: break @unknown default: return } } } Question : How I

iOS screen sharing (using ReplayKit) using WebRTC in swift

北城余情 提交于 2020-12-08 03:54:50
问题 I have successfully implemented ReplayKit. SampleHandler.swift class SampleHandler: RPBroadcastSampleHandler { override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { } override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) { switch sampleBufferType { case RPSampleBufferType.video: break case RPSampleBufferType.audioApp: break case RPSampleBufferType.audioMic: break @unknown default: return } } } Question : How I

iOS screen sharing (using ReplayKit) using WebRTC in swift

六眼飞鱼酱① 提交于 2020-12-08 03:54:27
问题 I have successfully implemented ReplayKit. SampleHandler.swift class SampleHandler: RPBroadcastSampleHandler { override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { } override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) { switch sampleBufferType { case RPSampleBufferType.video: break case RPSampleBufferType.audioApp: break case RPSampleBufferType.audioMic: break @unknown default: return } } } Question : How I

iOS screen sharing (using ReplayKit) using WebRTC in swift

…衆ロ難τιáo~ 提交于 2020-12-08 03:53:18
问题 I have successfully implemented ReplayKit. SampleHandler.swift class SampleHandler: RPBroadcastSampleHandler { override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { } override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) { switch sampleBufferType { case RPSampleBufferType.video: break case RPSampleBufferType.audioApp: break case RPSampleBufferType.audioMic: break @unknown default: return } } } Question : How I

iOS screen sharing (ReplayKit) using WebRTC in swift

落花浮王杯 提交于 2020-07-10 10:25:44
问题 I implemented webrtc SDK for video calling and its working fine . During video call user can share screen with another user. I am using RePlayKit for screen sharing. Here is my code class SampleHandler: RPBroadcastSampleHandler { var peerConnectionFactory: RTCPeerConnectionFactory? var localVideoSource: RTCVideoSource? var videoCapturer: RTCVideoCapturer? var peerConnection: RTCPeerConnection? var localVideoTrack: RTCVideoTrack? var disconnectSemaphore: DispatchSemaphore? var videodelegate

RPBroadcastSampleHandler any method not getting called

丶灬走出姿态 提交于 2020-01-23 08:01:47
问题 I want to implement screen sharing functionality like skype(when app is in background then also it will share screen of iPhone), and for that i am using broadcast extension. Here its my code in my viewcontroller.swift import UIKit import ReplayKit @available(iOS 12.0, *) class ViewController: UIViewController { var broadcastPicker: RPSystemBroadcastPickerView? var broadcastSession : NSObject? override func viewDidLoad() { super.viewDidLoad() let kPickerFrame = CGRect(x: 100.0, y: 100.0, width