Commit Graph

21 Commits

Author SHA1 Message Date
Synced Synapse 246693a7cc Change the source of AlbumGenres table to support Kodi v18
As detailed in https://github.com/xbmc/xbmc/pull/13051, Kodi v18 changes the way album genres are handled, as the genre (by which i mean `genreId`) ceases to be available at the album level, being only available at the songs level.
This impacts Kore because `GetAlbums` and `GetAlbumDetails` won't return the `genreId` tag, from which the local AlbumGenres table was populated.

This PR changes the source of the local AlbumGenres table to be the `genreId` returned at the song level (by `GetSongs`), to make it somewhat more consistent with the way Kodi will handle things from now on.
2018-02-22 20:57:37 +01:00
Mon Zafra 1e9160c733 Refactored share logic to show a notification when an item is added to the playlist (#473)
- added method to HostConnection that returns a Future object instead of
  taking a callback.
- added logic for handling null Handlers in HostConnection methods
- added method to HostManager to run a function that takes a HostConnection
  in a background thread where the Future API results above can be
  synchronously composed.
- replaced chain of callbacks in RemoteActivity with a sequence of
  future gets in OpenSharedUrl.
2018-01-26 14:03:30 +00:00
Martijn Brekhof cb430aa20d Implemented a slideup panel with media controls and info (#320)
* The slideup panel is only displayed when something is
         playing. It starts collapsed showing the media poster
         and title of what is currently playing.

       * Media controls implemented are volume, progress, shuffle,
         repeat and play/pause for all items. Next and previous are only
         available when a music item is playing.

       * In collapsed mode the panel will display the mute button only
         if Kodi is muted. The mute button in expanded mode is always
         visible.

       * Panel is enabled by default. Users can disable the panel
         in Settings

       * Implemented listening to Player.OnPropertyChanged notifications
         to update shuffle and repeat button states.
2017-07-13 19:10:49 +01:00
Aneesh Agrawal 66c145d778 Enable manual configuration of https (#338)
* Allow specifying HTTPS Hosts manually
This is not exposed in the UI, but on the manual host configuration screen, if the address starts with a  "http://" or "https://" this will be stripped and the `isHttps` flag set appropriately.

Additionally, the port can be configured as part of the address as well.
Any port specified as part of the address takes precedence over the explicit HTTP port box, to allow easy copy-pasting of an entire URL for a host.

This enables using Kore with Kodi instances available though HTTPS (e.g. via a reverse proxy).
2017-01-27 15:17:39 +00:00
Martijn Brekhof d993126c7e Fixed retrieving wrong handler for applicationNotificationsObserver (#319) 2016-12-02 11:04:17 +00:00
Martijn Brekhof c5848ce648 Implemented showing volume level on NowPlayingFragment (#312)
Replaced up/down volume buttons with a seekbar that displays the current
volume level and can be used to change the volume level
2016-11-30 12:20:21 +00:00
Synced Synapse 92773ea57c Prevent crash introduced in a4945c8534 when there are no hosts configured 2016-11-16 12:10:20 +00:00
Synced Synapse a4945c8534 Add Kodi version to Hosts table on DB and keep it periodically updated 2016-11-15 19:09:23 +00:00
George Kankava 079cf4e759 squid:S1155 - Collection.isEmpty() should be used to test for emptiness 2016-06-29 14:17:39 +04:00
Synced Synapse 0563e80fe9 Add support for using EventServer in remote d-pad 2015-06-21 15:11:22 +01:00
Synced Synapse 68ab545651 Add EventServer configuration options in wizard and host editing. 2015-06-21 15:04:54 +01:00
Synced Synapse 8ce709c55a D-Pad on the remote screen now uses EventServer by default.
Not finished: EventServer port is still hardcoded (9777) and there's no possibility of configuration.
2015-06-17 22:30:40 +01:00
Synced Synapse 5509c99243 Workaround for issue #78: https://github.com/xbmc/Kore/issues/78 2015-05-25 22:37:32 +01:00
Synced Synapse 1fc9eb3301 Switched HTTP library. Using OkHttp explicitly now, instead of the default Android one, which varies acroos OS versions.
OkHttp is also used as the backend for loading images (Picasso).
Added disk cache to image loading.
2015-04-18 10:52:31 +01:00
Synced Synapse 59a42eb8bb Fixed exception reported on Google Play (not sure how to trigger it, but this can't hurt) 2015-04-13 22:59:49 +01:00
Synced Synapse 30b4ac763a Allow the user to specify the protocol to use in the connection (TCP/HTTP). HTTP is always needed/used (for images and some requests where TCP can't be used because we want to be stateless), TCP is used by default and if available, but now the user can explicitly choose not to use TCP and always go through HTTP. 2015-04-11 17:58:15 +01:00
Synced Synapse 611dafc101 Add new intent to "Play on Kodi". This allows sharing videos from the YouTube app to Kodi (unfortunately the share option will appear in every app that shares plain text links, as that is what the YouTube app shares).
Tweaked the Now Playing and Playlist screens to better support YouTube videos
Changed HostConnectionObserver to notify clients not only when the id of what's playing changes but also when the label changes (YouTube videos and pictures for instance don't have ids, so the remote wasn't getting notified of a change in what's playing)
2015-04-08 22:28:19 +01:00
Synced Synapse e42c6dd486 Fix the way it's getting the current playlist id (call Player.GetProperties to get the current playlistId) 2015-03-17 18:45:21 +00:00
DanhDroid dfcb6d7d4d fix up typo on ApiCallback.onSucess() 2015-03-16 11:33:40 -07:00
Synced Synapse 5193afd4b6 Changed settings to always use Default Shared Preferences. Settings is now only an interface with the definition of the keys stored in Shered Preferences 2015-03-11 18:38:59 +00:00
Synced Synapse ed584fb9b7 Changed namespace/appid to org.xbmc.kore 2015-03-09 21:35:18 +00:00