问题标签 [replaykit]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
202 浏览

ios - 重播套件未从父应用程序录制第二个应用程序

我已经在我当前的应用程序中实现了 Replaykit。我当前的应用程序访问另一个应用程序,其操作将由 Replaykit 记录。

但是当我通过 Replaykit 录制时,它只记录了父应用程序的操作,而不是子应用程序的操作。

那么如何记录从父应用调用的子应用。

0 投票
1 回答
739 浏览

ios - 重播套件 IOS 不工作?

我使用此链接在模拟器 iOS-10 上尝试了代码

https://code.tutsplus.com/tutorials/ios-9-an-introduction-to-replaykit--cms-25458

但是代码不起作用。它没有显示任何询问选项的窗口。

开始的完成处理程序被调用,但是当我点击停止时,它的完成处理程序没有被调用。

任何人都可以请帮忙。

提前致谢。

0 投票
2 回答
410 浏览

ios - RPPreviewViewController 播放后禁用音频

我在我的应用程序中使用 replaykit,在用户完成录制后,我提供了一个按钮来“分享”视频。我展示了RPPreviewViewController,如果我在视频中单击播放,当我返回应用程序时,音频不起作用。viewController只有在我回到以前的状态并重新进入录音状态时,它才会再次起作用。

我的应用是一个作曲应用,所以音频非常重要。我什至尝试AVAudioSession在播放视图消失后重置类别,如下所示:

0 投票
1 回答
1350 浏览

ios - ReplayKit 无法录制

我正在开发一个具有屏幕捕获功能的应用程序。

ReplayKit 非常简单,而且效果很好,但是当我多次测试它录制时,它突然录制失败。

当它失败时,它只会在预览视图上显示一个空白的黑色视频。没有崩溃,没有错误信息。

我对自己的代码有疑问(尽管 ReplayKit 的实现非常简单),所以我尝试使用来自这里的简单示例代码 https://code.tutsplus.com/tutorials/ios-9-an-introduction-to- replaykit--cms-25458 发现问题仍然存在。

我找到了这个 Q&A 并尝试在开始新录制之前丢弃录制,但它没有用。 https://forums.developer.apple.com/thread/24613

我还发现,虽然它在第一次尝试时录制失败(我的意思是在启动应用程序之后),但在第二次尝试时成功。

所以我猜我的系统已经耗尽了某种系统范围的资源,并且只在录制或类似的东西之后才进行清理,但我不知道详细研究,因为 ReplayKit 是如此封闭,只提供对其数据的访问非常有限。

我做的唯一不正常的事情是,我做了一个实验,直接用这段代码检索视频数据。我这样做了很多次,所以如果这段代码有问题,影响可能会很大。

还有其他人面临同样的问题吗?有什么解决办法吗?

任何信息表示赞赏。谢谢。

0 投票
0 回答
515 浏览

ios - 如何获取 Replay Kit 的视频路径?

我们的应用是一个直播应用,做一个视频屏幕功能,我使用replaykit。我想自定义视频预览,但我无法获取录制路径的视频。

0 投票
0 回答
353 浏览

ios - ReplayKit 访问录制和自定义预览操作

我正在使用 replayKit 来录制我的游戏。录制完成后,我想将视频上传到我的服务器。1.如何从我的应用程序访问录音 2.预览有“保存”和“取消”操作。如何进行自己的自定义操作,例如“分享”等?

0 投票
1 回答
1189 浏览

ios - Replaykit 在开始录制时生成日志“操作无法完成。(com.apple.ReplayKit.RPRecordingErrorDomain 错误-5803。)”

在 recorder.startRecording() 和 recorder.stopRecording()... 它生成错误为“无法完成操作。(com.apple.ReplayKit.RPRecordingErrorDomain 错误 -5803。)”

我也没有获得许可弹出窗口。

0 投票
1 回答
220 浏览

ios - 尝试实现 ReplayKit 时出错

我正在使用 SpriteKit 构建游戏。我试图实现 ReplayKit,但我遇到了一些错误。这是我正在使用的代码。

第一个错误是“GameScene 类型的值没有成员存在”,第二个错误是“使用未解析的标识符解除”

我做错了什么,我已经导入了 ReplayKit 并将 RPPreviewViewControllerDelegate 添加到我的 GameScene 类中。

0 投票
1 回答
958 浏览

ios - iOS 11 - Do not allow recording of app

Apple announced system-level screen recording to be a feature of iOS 11. This is great for gaming and probably many other use cases, but not good for content apps such as Netflix, YouTube, Spotify, etc.

Will it be possible for developers to not allow system-level screen recording of their apps?

At about 15 minutes into this demonstration during WWDC 2017, we find out that your application will be notified via RPScreenRecorderDelegate in the event that a user interrupts an in-app screen recording with a system-level screen-recording.

This is good, but they do not mention being notified at all if screen-recording begins in the case that your app isn't already performing an in-app screen capture.

Earlier in the demonstration they mention that you application contains a shared instance of the RPScreenRecorder. Does anyone know if the system also uses this instance and whether its isAvailable property will be set to false in the event that a user is performing a system-level screen recording?

I would like to know if Apple has any type of support for disabling this feature in your app, or if there is some way I can check if the user is recording in order to adjust the appearance of the app so that licensed content cannot be pirated and redistributed by users.

0 投票
2 回答
3653 浏览

ios - ios11如何防止录屏

由于某些原因,我们的应用程序不希望人们记录屏幕,但是在 ios11 中,一个新功能可以让用户在那里记录 iphone 屏幕,所以是否有 API 或通知指示我用户现在正在记录非常感谢你