Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set State fix and Manual Metadata Definition #95

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

radicalnerds
Copy link

  • Fix setState call when unmounted
  • Add Title metadata on Play
  • Add Artwork Metadata on Play
  • Default to BundleDisplayName then BundleName

[songInfo setValue:albumArt forKey:MPMediaItemPropertyArtwork];
infoCenter.nowPlayingInfo = songInfo;
}
self.fetchedAlbumArt = true;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that with your implementation you can only fetch the first song artwork, what happens if a new song from an other album is playing ?

@@ -49,10 +49,15 @@ class Player extends Component {
);

ReactNativeAudioStreaming.getStatus((error, status) => {
console.log('Status', status);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log to remove

@@ -27,10 +27,10 @@ - (ReactNativeAudioStreaming *)init
[self.audioPlayer setDelegate:self];
self.lastUrlString = @"";
[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(tick:) userInfo:nil repeats:YES];

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't commit indentation changes plz

@tlenclos
Copy link
Owner

tlenclos commented May 7, 2017

@radicalnerds thanks for your work, it looks cool and supporting album cover could be really cool 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants