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:
parent
7340bc05b4
commit
6f18dd26a2
4 changed files with 19 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue