remote-control

Android 4.x RemoteControlClient.setTransportControlFlags() not working?

核能气质少年 提交于 2019-12-03 12:19:07
I'm trying to use the RemoteControlClient class to support the lock screen player with my app. One issue is that setting the transport control flags seems like they don't work properly. For example I'm trying to just show a play/stop icon no prev/next: mRemoteControlClient.setTransportControlFlags( RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE | RemoteControlClient.FLAG_KEY_MEDIA_STOP); This shows a previous icon and pause icon! Why? To make things even worse when pressing the stop/play button you only receive KEYCODE_MEDIA_PLAY_PAUSE when you should be getting KEYCODE_MEDIA_STOP or KEYCODE

Has anyone reversed engineered the protocol used by Apple's iOS Remote app for controlling an Apple TV over IP?

邮差的信 提交于 2019-12-03 11:40:10
问题 I'm curious if it's possible for me to write programs that can control an Apple TV, specifically an Apple TV 4th gen running tvOS 9.1.1, like Apple's Remote app for iOS can. I'd like to send it commands for navigating in the four cardinal directions, selecting an item on the screen, going up the navigation stack -- essentially what Apple's Remote app can do. Has anyone done any work reverse engineering the protocol it uses? Cursory Googling only has so far yielded out of date results about

Background Audio and Remote Control Support using MPMusicPlayerController on iOS 4. Is this even possible?

拥有回忆 提交于 2019-12-03 08:40:18
问题 I've spent two days on this and have gotten nowhere. I'm trying to use [MPMusicPlayerController applicationMusicPlayer] to play audio chosen from the user's iPod library and have it run in the background as well as support remote events. Now getting the music actually playing is the easy part. Get the instance, pick the songs, assign the music queue and play. Done and done. BUT... a) I can't get it to play in the background, and b) even when in the foreground I can't get the remote control

Has anyone reversed engineered the protocol used by Apple's iOS Remote app for controlling an Apple TV over IP?

烂漫一生 提交于 2019-12-03 02:06:07
I'm curious if it's possible for me to write programs that can control an Apple TV, specifically an Apple TV 4th gen running tvOS 9.1.1, like Apple's Remote app for iOS can. I'd like to send it commands for navigating in the four cardinal directions, selecting an item on the screen, going up the navigation stack -- essentially what Apple's Remote app can do. Has anyone done any work reverse engineering the protocol it uses? Cursory Googling only has so far yielded out of date results about earlier generation Apple TVs and the DAAP protocol which looks like something different than what I want.

Background Audio and Remote Control Support using MPMusicPlayerController on iOS 4. Is this even possible?

我是研究僧i 提交于 2019-12-02 21:12:25
I've spent two days on this and have gotten nowhere. I'm trying to use [MPMusicPlayerController applicationMusicPlayer] to play audio chosen from the user's iPod library and have it run in the background as well as support remote events. Now getting the music actually playing is the easy part. Get the instance, pick the songs, assign the music queue and play. Done and done. BUT... a) I can't get it to play in the background, and b) even when in the foreground I can't get the remote control events to work at all! And before you ask, yes, I have set the plist entries, the audio session category,

Select Remote System Type list empty in Eclipse

坚强是说给别人听的谎言 提交于 2019-12-01 16:33:14
I want to cross compile in Eclipse Luna (Windows -> Linux), but when I want to add a connection in the Remote System view the list is empty I've installed the newest RSE in Eclipse. Maybe I've missed an important point which I don't know still, and that's why it is empty. Any suggestions? Thank you! I had the same issue. You've probably only installed the: Remote System Explorer User Actions Go to Eclipse -> Help -> Install New Software Choose the filter as Photon ( http://download.eclipse.org/releases/photon ) or any other version you're using General Purpose Tools Install the Remote System

android PPM encoder audio library

佐手、 提交于 2019-12-01 12:23:52
I need to implement audio PPM (Pulse Position Modulation) on android Reference: http://en.wikipedia.org/wiki/Pulse-position_modulation I want to output PPM from the audio output of the smartphone. The final scope is to create a joystick for radiocontrol. but this library may have many future purposes (follow me, lightbridge, etc.etc.). The radios commonly have a PPM output. Transmitters (and pc flight simulators) commonly have PPM input. My scope is to replace the radio with an android device. I wish to know if there is some piece of code ready to use or should i start from scratch? EDIT: I

Swift. Receive remote control events to work with MPNowPLayingInfoCenter

放肆的年华 提交于 2019-12-01 12:04:57
As I understand, in order to show music player on lock screen, writing the following code is not enough. override func viewDidAppear(animated: Bool) { var mpic = MPNowPlayingInfoCenter.defaultCenter() mpic.nowPlayingInfo = [ MPMediaItemPropertyTitle:"This Is a Test", MPMediaItemPropertyArtist:"Matt Neuburg" ] } My app also should be able to receive remote control events So, how to do that in Swift? I found this from Apple Documentation , but it's for Objective-C. - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; // Turn on remote control event delivery [[UIApplication

android PPM encoder audio library

ぃ、小莉子 提交于 2019-12-01 11:37:29
问题 I need to implement audio PPM (Pulse Position Modulation) on android Reference: http://en.wikipedia.org/wiki/Pulse-position_modulation I want to output PPM from the audio output of the smartphone. The final scope is to create a joystick for radiocontrol. but this library may have many future purposes (follow me, lightbridge, etc.etc.). The radios commonly have a PPM output. Transmitters (and pc flight simulators) commonly have PPM input. My scope is to replace the radio with an android device

Select Remote System Type list empty in Eclipse

て烟熏妆下的殇ゞ 提交于 2019-12-01 01:46:14
问题 I want to cross compile in Eclipse Luna (Windows -> Linux), but when I want to add a connection in the Remote System view the list is empty I've installed the newest RSE in Eclipse. Maybe I've missed an important point which I don't know still, and that's why it is empty. Any suggestions? Thank you! 回答1: I had the same issue. You've probably only installed the: Remote System Explorer User Actions Go to Eclipse -> Help -> Install New Software Choose the filter as Photon (http://download