FireBoss Documentation

FireBoss Developer Documentation

Our powerful API enables developers to stream videos in multiple formats, including HD and 4K, using FireBoss’s fast, customizable playback engine. Whether you're building a mobile app, a smart TV experience, or a web-based platform, our API makes it easy to embed video content, control playback, and manage media securely from within your application.

Step 1: Add to Your AndroidManifest.xml

Insert the following block above the <application> tag in your manifest:

AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="your.package.name">

    <queries>
        <package android:name="com.pro.fireboss" />
    </queries>

    <application
        android:allowBackup="true"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        
        <!-- Your activities and components -->

    </application>
</manifest>

Step 2: Launching FireBoss Intent

Launching FireBoss with Intent and Passing Data from your android activity:

MainActivity.java
String packageName = "com.pro.fireboss";
String url = "https://example.com/video.mp4";
String name = "My Video Title";

Intent launchIntent = getPackageManager().getLaunchIntentForPackage(packageName);

if (launchIntent != null) {
    // Pass the data
    launchIntent.putExtra("url", url);
    launchIntent.putExtra("name", name);

    // Optional: add flags if starting outside an Activity
    // launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

    startActivity(launchIntent);
} else {
    // App not found, optionally redirect to install or show message
    Toast.makeText(this, "App not installed", Toast.LENGTH_SHORT).show();
}

Step 3: App Not Installed Optional

Handle app not installed -- install app from Amazon Appstore:

MainActivity.java
String packageName = "com.pro.fireboss";
String url = "https://example.com/video.mp4";
String name = "My Video Title";

Intent launchIntent = getPackageManager().getLaunchIntentForPackage(packageName);

if (launchIntent != null) {
    // Pass the data
    launchIntent.putExtra("url", url);
    launchIntent.putExtra("name", name);

    // Optional: add flags if starting outside an Activity
    // launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

    startActivity(launchIntent);
} else {
    // App not found, redirect user to Amazon Appstore to install the app
    try {
        Intent appstoreIntent = new Intent(Intent.ACTION_VIEW);
        appstoreIntent.setData(Uri.parse("amzn://apps/android?p=" + packageName));
        appstoreIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(appstoreIntent);
    } catch (ActivityNotFoundException e) {
        // Amazon Appstore app not found, open Amazon Appstore website instead
        Intent webIntent = new Intent(Intent.ACTION_VIEW);
        webIntent.setData(Uri.parse("https://www.amazon.com/gp/mas/dl/android?p=" + packageName));
        webIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(webIntent);
    }
}

Let's Stay Connected

If you have any questions or need assistance, feel free to reach out to us. We're here to help!

Email Support

For any questions or assistance, reach us at:

support@fireboss.app