nexxPLAY
Search…
nexxPLAY for android
nexxPLAY for android is a native Player, that only works in android Apps
You can find all Detail Information for this Player Integration here
GitHub - 3qnexx/nexxPLAY-android
GitHub
For your Convenience, the most basic Steps are also referenced here:

General Integration

Let us start by adding the 3Q nexx Maven repository in your root Gradle file. Under the section allprojects you can find the repositories section. Please add the following line:
1
...
2
maven { url "https://www.myget.org/F/nexxtv/maven" }
3
...
Copied!
We are almost done for the Gradle files. The last step is to include the following line to your app Gradle file (see app/build.gradle).
1
dependencies {
2
...
3
implementation 'tv.nexx:nexxplay-android:4.+'
4
...
5
}
Copied!
That way the build script will look for the newest version of nexxPlay everytime a build of your app is being initiated. However if you want to stick to a specific version, you can always find a list of the releases here:
nexxtv - tv.nexx/nexxplay-android 4.4.12 | MyGet
MyGet
NexxPlay needs a root anchor view which should be a FrameLayout. Please add something likes this to your layout, depending on your needs:
1
<FrameLayout
2
android:id="@+id/root"
3
android:layout_width="match_parent"
4
android:layout_height="match_parent" />
Copied!
nexxPLAY needs a root anchor view which should be a FrameLayout. Please add something likes this to your layout, depending on your needs:
1
<FrameLayout
2
android:id="@+id/root"
3
android:layout_width="match_parent"
4
android:layout_height="match_parent" />
Copied!

Adding a Player Instance

Create the nexxPLAY object providing API by calling the factory method within your Activity:
1
this.nexxPlayerAndroid = NexxFactory.createNexxPlayer(this);
Copied!
The nexxPLAY needs a single view. The root view is the view group where the media player control layout (the player skin) is shown. Also the player needs the Acitivity's window
1
ViewGroup root = (ViewGroup) findViewById(R.id.root);
2
this.nexxPlayerAndroid.setViewRoot(root);
3
this.nexxPlayerAndroid.setWindow(getWindow());
Copied!

Player Events

Just like the Javascript Player, the Player emits all Events to a Listener Function, that can be configured as outlined below:
1
NexxPlayerNotification.Listener listener = this.nexxPlayer.addEventListener(listener);
Copied!
You can find a List of all Player Events here:
The android Platform also supports native Widgets by nexxPLAY.
Last modified 1yr ago