Post

Replies

Boosts

Views

Activity

Disable Airplay controls
Hi there,To give some context, our app is a streaming app. We have ads inserted in our HLS Stream and we'd like to prevent the user from skipping the Ads if possible.On Airplay we can't seem to find a way to do that. Disabling remote commands (MPRemoteCommandCenter.shared()) works only when controling the stream from the Device. When using the AppleTV remote, it doesn't work. HLS Stream is supposed to be processed by the device when casting on Airplay (if i'm correct), so i could guess it should use the same AVPlayer instance used on the device. But it is not using the same instance it seems so i can't intercept any function (play/pause/seek etc).Is there any way to disable Airplay remote controls while streaming?Thanks in advance
2
0
2.8k
Oct ’18