{"id":16007463,"url":"https://github.com/leon/cordova-plugin-nowplaying","last_synced_at":"2025-03-30T16:33:25.190Z","repository":{"id":57208674,"uuid":"43422248","full_name":"leon/cordova-plugin-nowplaying","owner":"leon","description":"Cordova Plugin Now Playing for iOS","archived":false,"fork":false,"pushed_at":"2017-09-14T14:21:30.000Z","size":12,"stargazers_count":28,"open_issues_count":9,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-16T12:42:22.383Z","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-30T08:49:02.000Z","updated_at":"2021-02-21T19:16:56.000Z","dependencies_parsed_at":"2022-09-04T02:02:04.773Z","dependency_job_id":null,"html_url":"https://github.com/leon/cordova-plugin-nowplaying","commit_stats":null,"previous_names":["muntligt/cordova-plugin-nowplaying"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-nowplaying","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-nowplaying/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-nowplaying/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fcordova-plugin-nowplaying/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leon","download_url":"https://codeload.github.com/leon/cordova-plugin-nowplaying/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246349611,"owners_count":20763208,"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-10-08T12:03:33.867Z","updated_at":"2025-03-30T16:33:24.939Z","avatar_url":"https://github.com/leon.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Info\nAllows setting the lock screen information such as artist, title, and artwork.\n\nhttps://developer.apple.com/library/prerelease/ios/documentation/MediaPlayer/Reference/MPNowPlayingInfoCenter_Class/index.html\n\nThis plugin has a sibling plugin that allows you to handle remote commands, check it out!\n\nhttps://github.com/leon/cordova-plugin-remotecommand\n\n# Install\n\n```bash\ncordova plugin add cordova-plugin-nowplaying\n```\n\n# Use\n\n\u003e Use only the keys that you have available and leave the others out of the javascript object, that way only the correct keys will be sent to the MPNowPlayingInfoCenter.nowPlayingInfo\n\u003e It will only overwrite the values that come in by cloning the old dictionary.\n\n```javascript\nNowPlaying.set({\n\tartwork: \"http://www.domain.com/image.png\", // Can be http:// https:// or image path relative to NSDocumentDirectory\n\talbumTitle: \"The Album Title\",\n\ttrackCount: 10,\n\ttrackNumber: 1,\n\tartist: \"The Artist\",\n\tcomposer: \"The Composer\",\n\tdiscCount: 1,\n\tdiscNumber: 1,\n\tgenre: \"The Genre\",\n\tpersistentID: 12345,\n\tplaybackDuration: 500,\n\ttitle: \"The Title\",\n\telapsedPlaybackTime: 30,\n\tplaybackRate: 1,\n\tplaybackQueueIndex: 1,\n\tplaybackQueueCount: 5,\n\tchapterNumber: 1,\n\tchapterCount: 2\n});\n```\n\nYou can call `NowPlaying.set` multiple times to update the keys you send in the object\n\n```javascript\nNowPlaying.set({\n\tartwork: \"http://www.domain.com/image.png\"\n});\n\nsetTimeout(function () {\n\tNowPlaying.set({\n\t\tchapterNumber: 2\n\t});\n}, 1000);\n```\n\n\u003e When using in a browser environment it will simply log the calls to `NowPlaying.set` to the console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fcordova-plugin-nowplaying","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleon%2Fcordova-plugin-nowplaying","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fcordova-plugin-nowplaying/lists"}