Skip to content

Commit

Permalink
Merge branch 'master' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
csoni111 committed Oct 16, 2017
2 parents 4e515c8 + 8b8764d commit 03523b0
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
1 change: 1 addition & 0 deletions cast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Chromecast styled receiver support files
Binary file added cast/amahi_app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cast/amahi_cast_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cast/amahi_cast_splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cast/amahi_cast_watermark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions cast/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.logo {
background-image: url(amahi_cast_logo.png);
background-size: auto 10%;
background-color: white;
}

.splash {
background-image: url(amahi_cast_splash.png);
box-shadow: inset 0 0 0.1em 0.1em #000;
background-color: white;
}

.watermark {
background-image: url(amahi_cast_watermark.png);
background-size: auto 57px;
}

.placeholderImage {
background-size: contain;
}
14 changes: 8 additions & 6 deletions src/main/java/org/amahi/anywhere/service/AudioService.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,16 @@ private void setUpAudioMetadata() {

@Subscribe
public void onAudioMetadataRetrieved(AudioMetadataRetrievedEvent event) {
this.audioMetadataFormatter = new AudioMetadataFormatter(
event.getAudioTitle(), event.getAudioArtist(), event.getAudioAlbum());
this.audioMetadataFormatter.setDuration(event.getDuration());
this.audioAlbumArt = event.getAudioAlbumArt();
if (audioFile != null) {
this.audioMetadataFormatter = new AudioMetadataFormatter(
event.getAudioTitle(), event.getAudioArtist(), event.getAudioAlbum());
this.audioMetadataFormatter.setDuration(event.getDuration());
this.audioAlbumArt = event.getAudioAlbumArt();

setUpAudioPlayerRemote(audioMetadataFormatter, audioAlbumArt);
setUpAudioPlayerRemote(audioMetadataFormatter, audioAlbumArt);

mMediaNotificationManager.startNotification();
mMediaNotificationManager.startNotification();
}
}

private void setUpAudioPlayerRemote(AudioMetadataFormatter audioMetadataFormatter, Bitmap audioAlbumArt) {
Expand Down

0 comments on commit 03523b0

Please sign in to comment.