Player Send Intent

You need to add this Code in your live tv or movie app. After that your app will able to push data to our HLS player app

String player_applicationId = "com.online.player"; // Your App ApplicationId (HLS Video Player Android App)
try {
    Intent sendIntent = new Intent(Intent.ACTION_SEARCH);
    sendIntent.setPackage(player_applicationId);
    sendIntent.putExtra("video_title", "Sample_videos");
    sendIntent.putExtra("video_url", "https://download.nemosofts.com/sample_videos.mp4");
    sendIntent.putExtra("video_agent", "");
    // videoType = normal or youtube or webview
    sendIntent.putExtra("video_type", "normal");
    sendIntent.setType("text/plain");
    sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(sendIntent);
} catch (Exception e) {
    e.printStackTrace();
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + player_applicationId)));
}

Last updated