Rename videoURL to streamUrl
This commit is contained in:
parent
c2968a3ff2
commit
24ff6a4313
|
@ -36,7 +36,7 @@ public final class KoreUtils {
|
||||||
/**
|
/**
|
||||||
* Start an activity to install Kore.
|
* Start an activity to install Kore.
|
||||||
*
|
*
|
||||||
* @param context the context
|
* @param context the context to use
|
||||||
*/
|
*/
|
||||||
public static void installKore(final Context context) {
|
public static void installKore(final Context context) {
|
||||||
installApp(context, context.getString(R.string.kore_package));
|
installApp(context, context.getString(R.string.kore_package));
|
||||||
|
@ -52,12 +52,12 @@ public final class KoreUtils {
|
||||||
* </a>.
|
* </a>.
|
||||||
*
|
*
|
||||||
* @param context the context to use
|
* @param context the context to use
|
||||||
* @param videoURL the url to the video
|
* @param streamUrl the url to the stream to play
|
||||||
*/
|
*/
|
||||||
public static void playWithKore(final Context context, final Uri videoURL) {
|
public static void playWithKore(final Context context, final Uri streamUrl) {
|
||||||
final Intent intent = new Intent(Intent.ACTION_VIEW)
|
final Intent intent = new Intent(Intent.ACTION_VIEW)
|
||||||
.setPackage(context.getString(R.string.kore_package))
|
.setPackage(context.getString(R.string.kore_package))
|
||||||
.setData(videoURL)
|
.setData(streamUrl)
|
||||||
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
|
|
||||||
if (!tryOpenIntentInApp(context, intent)) {
|
if (!tryOpenIntentInApp(context, intent)) {
|
||||||
|
|
Loading…
Reference in New Issue