{"id":18686814,"url":"https://github.com/leon/cordova-plugin-remotecommand","last_synced_at":"2025-10-18T16:06:47.764Z","repository":{"id":57208840,"uuid":"43435191","full_name":"leon/cordova-plugin-remotecommand","owner":"leon","description":"Cordova Plugin RemoteCommand","archived":false,"fork":false,"pushed_at":"2016-09-07T08:28:40.000Z","size":12,"stargazers_count":28,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T00:35:58.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-30T13:40:50.000Z","updated_at":"2024-05-18T20:30:08.000Z","dependencies_parsed_at":"2022-09-17T19:21:07.667Z","dependency_job_id":null,"html_url":"https://github.com/leon/cordova-plugin-remotecommand","commit_stats":null,"previous_names":["muntligt/cordova-plugin-remotecommand"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-remotecommand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-remotecommand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-remotecommand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-remotecommand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leon","download_url":"https://codeload.github.com/leon/cordova-plugin-remotecommand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519543,"owners_count":21117761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T10:29:12.418Z","updated_at":"2025-10-18T16:06:47.677Z","avatar_url":"https://github.com/leon.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Info\nThis plugin allows you to control all the remote commands in iOS such as play pause from the lock screen, command center or headset.\n\nThis project has a sibling project that allows you to control what is displayed in the now playing info shown in the lock screen and in the command center. Check it out!\n\nhttps://github.com/Muntligt/cordova-plugin-nowplaying\n\n# Install\n\n```bash\ncordova plugin add cordova-plugin-remotecommand\n```\n\nThen from javascript you will be able to call:\n\n\u003e More info at https://developer.apple.com/library/prerelease/ios/documentation/MediaPlayer/Reference/MPRemoteCommand_Ref/index.html#//apple_ref/occ/cl/MPRemoteCommand\n\n```javascript\n\n// Disable buttons\nRemoteCommand.enabled('nextTrack', false);\nRemoteCommand.enabled('previousTrack', false);\n\n// Start listening to all the remote commands\nRemoteCommand.on('command', function (command) {\n\tconsole.log('command being fired', command);\n\tswitch(command) {\n\t\t\"play\":\n\t\t\taudio.play();\n\t\t\tbreak;\n\t\t\"pause\":\n\t\t\taudio.pause();\n\t\t\tbreak;\n\t}\n});\n\n// or listen to them seperatly\nRemoteCommand.on('play', function () {\n\taudio.play();\n});\n\nRemoteCommand.on('pause', function () {\n\taudio.pause();\n});\n\n// Available events are:\n// *  pause\n// *  play\n// *  stop\n// *  togglePlayPause\n// *  enableLanguageOption\n// *  disableLanguageOption\n// *  nextTrack\n// *  previousTrack\n// *  seekForward\n// *  seekBackward\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fcordova-plugin-remotecommand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleon%2Fcordova-plugin-remotecommand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fcordova-plugin-remotecommand/lists"}