Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
94 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* All keys from https://developer.apple.com/library/prerelease/ios/documentation/MediaPlayer/Reference/MPNowPlayingInfoCenter_Class/index.html kan be specified | ||
* // Only the keys passed in will be updated, and only if they are not null | ||
* { | ||
* albumTitle: "The Album Title", | ||
* trackCount: 10, | ||
* trackNumber: 1, | ||
* artist: "The Artist", | ||
* composer: "The Composer", | ||
* discCount: 1, | ||
* discNumber: 1, | ||
* genre: "The Genre", | ||
* persistentID: 12345, | ||
* playbackDuration: 500, | ||
* title: "The Title", | ||
* elapsedPlaybackTime: 30, | ||
* playbackRate: 1, | ||
* playbackQueueIndex: 1, | ||
* playbackQueueCount: 5, | ||
* chapterNumber: 1, | ||
* chapterCount: 2, | ||
* artwork: "http://www.domain.com/image.png" / "https://www.domain.com/image.png" / "/file.png (relative to NSDocumentDirectory)" | ||
* } | ||
* | ||
*/ | ||
|
||
var NowPlaying = { | ||
set: function setNowPlaying(dict, success, fail) { | ||
console.log('NowPlaying set: ', JSON.stringify(dict)); | ||
} | ||
}; | ||
|
||
module.exports = NowPlaying; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters