Play/Pause button on the apple tv remote is not working while the video is playing with...












0















I am playing the video through AVPlayerViewController in tvOS (Xamarin tvOS). I am pausing and resuming the video with Play/Pause button on the apple tv remote. I am using the PressesBegan method to get the event on click of Play/Pause button. This is working fine on the simulator but not on the actual devices. On the actual devices, we are not getting the events for pressing the Play/Pause button. We tried it on Apple TV 4K (version 12.11) and Apple TV (version 11.4).
This is only happening when I play the video through AVPlayerViewController otherwise it works fine. I tried UITapGestureRecognizer, PressesEnded method, and also the RemoteControlReceived method. But still, there is no help. Any help will be much appreciated.



https://github.com/lewixlabs/TvOS-PlayBack-Sample-App/blob/master/TvOS%20PlayBack%20Sample%20App/ViewController.cs










share|improve this question























  • When you add a TapRecognizer to the ViewController, you can request to receive UIPressTypePlayPause as allowed types.

    – SushiHangover
    Jan 2 at 21:19











  • Yes, I used the NSNumber.FromLong((nint)Convert.ToInt32( UIPressType.PlayPause)) command to receive the request but it did not work.

    – Rishabh Shukla
    Jan 3 at 8:08
















0















I am playing the video through AVPlayerViewController in tvOS (Xamarin tvOS). I am pausing and resuming the video with Play/Pause button on the apple tv remote. I am using the PressesBegan method to get the event on click of Play/Pause button. This is working fine on the simulator but not on the actual devices. On the actual devices, we are not getting the events for pressing the Play/Pause button. We tried it on Apple TV 4K (version 12.11) and Apple TV (version 11.4).
This is only happening when I play the video through AVPlayerViewController otherwise it works fine. I tried UITapGestureRecognizer, PressesEnded method, and also the RemoteControlReceived method. But still, there is no help. Any help will be much appreciated.



https://github.com/lewixlabs/TvOS-PlayBack-Sample-App/blob/master/TvOS%20PlayBack%20Sample%20App/ViewController.cs










share|improve this question























  • When you add a TapRecognizer to the ViewController, you can request to receive UIPressTypePlayPause as allowed types.

    – SushiHangover
    Jan 2 at 21:19











  • Yes, I used the NSNumber.FromLong((nint)Convert.ToInt32( UIPressType.PlayPause)) command to receive the request but it did not work.

    – Rishabh Shukla
    Jan 3 at 8:08














0












0








0








I am playing the video through AVPlayerViewController in tvOS (Xamarin tvOS). I am pausing and resuming the video with Play/Pause button on the apple tv remote. I am using the PressesBegan method to get the event on click of Play/Pause button. This is working fine on the simulator but not on the actual devices. On the actual devices, we are not getting the events for pressing the Play/Pause button. We tried it on Apple TV 4K (version 12.11) and Apple TV (version 11.4).
This is only happening when I play the video through AVPlayerViewController otherwise it works fine. I tried UITapGestureRecognizer, PressesEnded method, and also the RemoteControlReceived method. But still, there is no help. Any help will be much appreciated.



https://github.com/lewixlabs/TvOS-PlayBack-Sample-App/blob/master/TvOS%20PlayBack%20Sample%20App/ViewController.cs










share|improve this question














I am playing the video through AVPlayerViewController in tvOS (Xamarin tvOS). I am pausing and resuming the video with Play/Pause button on the apple tv remote. I am using the PressesBegan method to get the event on click of Play/Pause button. This is working fine on the simulator but not on the actual devices. On the actual devices, we are not getting the events for pressing the Play/Pause button. We tried it on Apple TV 4K (version 12.11) and Apple TV (version 11.4).
This is only happening when I play the video through AVPlayerViewController otherwise it works fine. I tried UITapGestureRecognizer, PressesEnded method, and also the RemoteControlReceived method. But still, there is no help. Any help will be much appreciated.



https://github.com/lewixlabs/TvOS-PlayBack-Sample-App/blob/master/TvOS%20PlayBack%20Sample%20App/ViewController.cs







xamarin avplayer tvos apple-tv avplayerviewcontroller






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 19:53









Rishabh ShuklaRishabh Shukla

11




11













  • When you add a TapRecognizer to the ViewController, you can request to receive UIPressTypePlayPause as allowed types.

    – SushiHangover
    Jan 2 at 21:19











  • Yes, I used the NSNumber.FromLong((nint)Convert.ToInt32( UIPressType.PlayPause)) command to receive the request but it did not work.

    – Rishabh Shukla
    Jan 3 at 8:08



















  • When you add a TapRecognizer to the ViewController, you can request to receive UIPressTypePlayPause as allowed types.

    – SushiHangover
    Jan 2 at 21:19











  • Yes, I used the NSNumber.FromLong((nint)Convert.ToInt32( UIPressType.PlayPause)) command to receive the request but it did not work.

    – Rishabh Shukla
    Jan 3 at 8:08

















When you add a TapRecognizer to the ViewController, you can request to receive UIPressTypePlayPause as allowed types.

– SushiHangover
Jan 2 at 21:19





When you add a TapRecognizer to the ViewController, you can request to receive UIPressTypePlayPause as allowed types.

– SushiHangover
Jan 2 at 21:19













Yes, I used the NSNumber.FromLong((nint)Convert.ToInt32( UIPressType.PlayPause)) command to receive the request but it did not work.

– Rishabh Shukla
Jan 3 at 8:08





Yes, I used the NSNumber.FromLong((nint)Convert.ToInt32( UIPressType.PlayPause)) command to receive the request but it did not work.

– Rishabh Shukla
Jan 3 at 8:08












2 Answers
2






active

oldest

votes


















0














Add a UITapGestureRecognizer to ViewController and allow the UIPressType.PlayPause press type.



var tap = new UITapGestureRecognizer(() =>
{
Console.WriteLine("Remote PlayPause button pressed");
})
{
AllowedPressTypes = new NSNumber { new NSNumber((long)UIPressType.PlayPause) }
};
this.View.AddGestureRecognizer(tap);





share|improve this answer
























  • Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

    – Rishabh Shukla
    Jan 3 at 13:02



















0














Your app will not receive Pause (or Play/Pause) button events when playing video. This is expected--and documented--behavior. The system redirects the action to the "Now Playing" app's handler (which is AVPlayerViewController in this case).



You didn't say why you were trying to intercept Play/Pause...




  • If you're trying to disable pausing, you should take a different approach; for example, you could disable user interaction on the root view of the AVPlayerViewController (this disables not just play/pause but pretty much all controls). You could also disable the playback controls. Remember that there are multiple ways for a user to pause, including clicking the touch surface, or using a different type of remote or telling Siri to "pause," neither of which will result in regular pause button events.


  • If you're trying to determine when the video is paused, you could key-value observe the "rate" property of the player (the rate could also to change to zero for other reasons, e.g. because playback reached the end).







share|improve this answer
























  • Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

    – Rishabh Shukla
    Jan 8 at 19:44











  • If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

    – Rishabh Shukla
    Jan 8 at 19:44











  • AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

    – Dan Wright
    Jan 11 at 21:36











  • I should add, there are times when the "Pause" action is disabled...

    – Dan Wright
    Jan 11 at 21:50













  • ...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

    – Dan Wright
    Jan 11 at 22:04












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012350%2fplay-pause-button-on-the-apple-tv-remote-is-not-working-while-the-video-is-playi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Add a UITapGestureRecognizer to ViewController and allow the UIPressType.PlayPause press type.



var tap = new UITapGestureRecognizer(() =>
{
Console.WriteLine("Remote PlayPause button pressed");
})
{
AllowedPressTypes = new NSNumber { new NSNumber((long)UIPressType.PlayPause) }
};
this.View.AddGestureRecognizer(tap);





share|improve this answer
























  • Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

    – Rishabh Shukla
    Jan 3 at 13:02
















0














Add a UITapGestureRecognizer to ViewController and allow the UIPressType.PlayPause press type.



var tap = new UITapGestureRecognizer(() =>
{
Console.WriteLine("Remote PlayPause button pressed");
})
{
AllowedPressTypes = new NSNumber { new NSNumber((long)UIPressType.PlayPause) }
};
this.View.AddGestureRecognizer(tap);





share|improve this answer
























  • Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

    – Rishabh Shukla
    Jan 3 at 13:02














0












0








0







Add a UITapGestureRecognizer to ViewController and allow the UIPressType.PlayPause press type.



var tap = new UITapGestureRecognizer(() =>
{
Console.WriteLine("Remote PlayPause button pressed");
})
{
AllowedPressTypes = new NSNumber { new NSNumber((long)UIPressType.PlayPause) }
};
this.View.AddGestureRecognizer(tap);





share|improve this answer













Add a UITapGestureRecognizer to ViewController and allow the UIPressType.PlayPause press type.



var tap = new UITapGestureRecognizer(() =>
{
Console.WriteLine("Remote PlayPause button pressed");
})
{
AllowedPressTypes = new NSNumber { new NSNumber((long)UIPressType.PlayPause) }
};
this.View.AddGestureRecognizer(tap);






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 3 at 8:46









SushiHangoverSushiHangover

54k54395




54k54395













  • Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

    – Rishabh Shukla
    Jan 3 at 13:02



















  • Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

    – Rishabh Shukla
    Jan 3 at 13:02

















Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

– Rishabh Shukla
Jan 3 at 13:02





Thanks to your suggestion but I tried this solution but it is not working. It is happening only when I user AVPlayerViewController. If I use the UIViewController then it is working fine.

– Rishabh Shukla
Jan 3 at 13:02













0














Your app will not receive Pause (or Play/Pause) button events when playing video. This is expected--and documented--behavior. The system redirects the action to the "Now Playing" app's handler (which is AVPlayerViewController in this case).



You didn't say why you were trying to intercept Play/Pause...




  • If you're trying to disable pausing, you should take a different approach; for example, you could disable user interaction on the root view of the AVPlayerViewController (this disables not just play/pause but pretty much all controls). You could also disable the playback controls. Remember that there are multiple ways for a user to pause, including clicking the touch surface, or using a different type of remote or telling Siri to "pause," neither of which will result in regular pause button events.


  • If you're trying to determine when the video is paused, you could key-value observe the "rate" property of the player (the rate could also to change to zero for other reasons, e.g. because playback reached the end).







share|improve this answer
























  • Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

    – Rishabh Shukla
    Jan 8 at 19:44











  • If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

    – Rishabh Shukla
    Jan 8 at 19:44











  • AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

    – Dan Wright
    Jan 11 at 21:36











  • I should add, there are times when the "Pause" action is disabled...

    – Dan Wright
    Jan 11 at 21:50













  • ...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

    – Dan Wright
    Jan 11 at 22:04
















0














Your app will not receive Pause (or Play/Pause) button events when playing video. This is expected--and documented--behavior. The system redirects the action to the "Now Playing" app's handler (which is AVPlayerViewController in this case).



You didn't say why you were trying to intercept Play/Pause...




  • If you're trying to disable pausing, you should take a different approach; for example, you could disable user interaction on the root view of the AVPlayerViewController (this disables not just play/pause but pretty much all controls). You could also disable the playback controls. Remember that there are multiple ways for a user to pause, including clicking the touch surface, or using a different type of remote or telling Siri to "pause," neither of which will result in regular pause button events.


  • If you're trying to determine when the video is paused, you could key-value observe the "rate" property of the player (the rate could also to change to zero for other reasons, e.g. because playback reached the end).







share|improve this answer
























  • Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

    – Rishabh Shukla
    Jan 8 at 19:44











  • If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

    – Rishabh Shukla
    Jan 8 at 19:44











  • AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

    – Dan Wright
    Jan 11 at 21:36











  • I should add, there are times when the "Pause" action is disabled...

    – Dan Wright
    Jan 11 at 21:50













  • ...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

    – Dan Wright
    Jan 11 at 22:04














0












0








0







Your app will not receive Pause (or Play/Pause) button events when playing video. This is expected--and documented--behavior. The system redirects the action to the "Now Playing" app's handler (which is AVPlayerViewController in this case).



You didn't say why you were trying to intercept Play/Pause...




  • If you're trying to disable pausing, you should take a different approach; for example, you could disable user interaction on the root view of the AVPlayerViewController (this disables not just play/pause but pretty much all controls). You could also disable the playback controls. Remember that there are multiple ways for a user to pause, including clicking the touch surface, or using a different type of remote or telling Siri to "pause," neither of which will result in regular pause button events.


  • If you're trying to determine when the video is paused, you could key-value observe the "rate" property of the player (the rate could also to change to zero for other reasons, e.g. because playback reached the end).







share|improve this answer













Your app will not receive Pause (or Play/Pause) button events when playing video. This is expected--and documented--behavior. The system redirects the action to the "Now Playing" app's handler (which is AVPlayerViewController in this case).



You didn't say why you were trying to intercept Play/Pause...




  • If you're trying to disable pausing, you should take a different approach; for example, you could disable user interaction on the root view of the AVPlayerViewController (this disables not just play/pause but pretty much all controls). You could also disable the playback controls. Remember that there are multiple ways for a user to pause, including clicking the touch surface, or using a different type of remote or telling Siri to "pause," neither of which will result in regular pause button events.


  • If you're trying to determine when the video is paused, you could key-value observe the "rate" property of the player (the rate could also to change to zero for other reasons, e.g. because playback reached the end).








share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 6 at 4:40









Dan WrightDan Wright

111




111













  • Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

    – Rishabh Shukla
    Jan 8 at 19:44











  • If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

    – Rishabh Shukla
    Jan 8 at 19:44











  • AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

    – Dan Wright
    Jan 11 at 21:36











  • I should add, there are times when the "Pause" action is disabled...

    – Dan Wright
    Jan 11 at 21:50













  • ...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

    – Dan Wright
    Jan 11 at 22:04



















  • Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

    – Rishabh Shukla
    Jan 8 at 19:44











  • If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

    – Rishabh Shukla
    Jan 8 at 19:44











  • AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

    – Dan Wright
    Jan 11 at 21:36











  • I should add, there are times when the "Pause" action is disabled...

    – Dan Wright
    Jan 11 at 21:50













  • ...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

    – Dan Wright
    Jan 11 at 22:04

















Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

– Rishabh Shukla
Jan 8 at 19:44





Thanks for your in-depth answer and suggestions. We can pause/play video with other methods but what I was trying the play/pause the video on pressing play/pause on tv remote itself. But another question is how it was working on simulator properly? I was getting events properly on the simulator. Please help me if you have some solution on that so that I can achieve the pausing/playing the video from remote itself.

– Rishabh Shukla
Jan 8 at 19:44













If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

– Rishabh Shukla
Jan 8 at 19:44





If we talk about other Apple tv apps like Netflix, Amazon Prime, and HotStare,They are using the same AVPlayerController and they are able to play and pause the video using remote's play/pause button. So I think there must be a solution to it. Please help me out.

– Rishabh Shukla
Jan 8 at 19:44













AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

– Dan Wright
Jan 11 at 21:36





AVPlayerViewController handles the Play/Pause button on behalf of clients. None of those apps do anything special to handle pausing. You may want to file a radar (bugreport.apple.com) if you think you've found a bug. Reproduce the bug first, then capture a sysdiagnose for the radar as described at download.developer.apple.com/iOS/tvOS_Logs/… (this helps Apple engineers track down the problem if they are unable to easily reproduce your problem).

– Dan Wright
Jan 11 at 21:36













I should add, there are times when the "Pause" action is disabled...

– Dan Wright
Jan 11 at 21:50







I should add, there are times when the "Pause" action is disabled...

– Dan Wright
Jan 11 at 21:50















...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

– Dan Wright
Jan 11 at 22:04





...For example, if you have set the "userInteractionDisabled" property on the root view of the AVPlayerViewController, or if you are playing a live stream with negligible seekable range. However, I'm assuming all other user interface actions are working (e.g. tap to show transport bar, click the Siri Remote touch surface to toggle playback). In particular, does clicking the touch surface of the Siri Remote toggle playback? If it doesn't, probably either you've disabled the controls/user interaction, or the views of the AVPlayerViewController doesn't have focus.

– Dan Wright
Jan 11 at 22:04


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012350%2fplay-pause-button-on-the-apple-tv-remote-is-not-working-while-the-video-is-playi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

Npm cannot find a required file even through it is in the searched directory

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith