Call history listener for Kodi (closes #798)

If Kore (the Kodi App) was sucessfully started the history listener is
invoked.
This commit is contained in:
Coffeemakr 2017-10-30 21:31:59 +01:00
parent 7340bc05b4
commit 6f18dd26a2
No known key found for this signature in database
GPG key ID: 3F35676D8FF6E743
4 changed files with 19 additions and 6 deletions

View file

@ -342,10 +342,16 @@ public class NavigationHelper {
/**
* Start Kore app to show a video on Kodi
*
* For a list of supported urls see the
* <a href="https://github.com/xbmc/Kore/blob/master/app/src/main/AndroidManifest.xml">
* Kore source code
* </a>.
*
* @param context the context to use
* @param videoURL the url to the video stream
* @param videoURL the url to the video
*/
public static void startKore(Context context, Uri videoURL) {
public static void playWithKore(Context context, Uri videoURL) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setPackage(context.getString(R.string.kore_package));
intent.setData(videoURL);