Revert zlive

pull/586/head
FongMi 1 year ago
parent 25457afa89
commit 56c77e009e
  1. 1
      app/build.gradle
  2. 2
      app/src/main/java/com/fongmi/android/tv/player/Source.java
  3. 8
      app/src/main/java/com/fongmi/android/tv/player/extractor/ZLive.java
  4. 4
      zlive/build.gradle

@ -129,6 +129,7 @@ dependencies {
implementation(ext: 'aar', name: 'thunder-release', group: 'fongmi', version: 'release')
implementation(ext: 'aar', name: 'tvbus-release', group: 'fongmi', version: 'release')
implementation(ext: 'aar', name: 'youtube-release', group: 'fongmi', version: 'release')
implementation(ext: 'aar', name: 'zlive-release', group: 'fongmi', version: 'release')
implementation(ext: 'aar', name: 'lib-common-release', group: 'fongmi', version: 'release')
implementation(ext: 'aar', name: 'lib-container-release', group: 'fongmi', version: 'release')
implementation(ext: 'aar', name: 'lib-database-release', group: 'fongmi', version: 'release')

@ -13,6 +13,7 @@ import com.fongmi.android.tv.player.extractor.TVBus;
import com.fongmi.android.tv.player.extractor.Thunder;
import com.fongmi.android.tv.player.extractor.Video;
import com.fongmi.android.tv.player.extractor.Youtube;
import com.fongmi.android.tv.player.extractor.ZLive;
import com.fongmi.android.tv.utils.UrlUtil;
import java.util.ArrayList;
@ -46,6 +47,7 @@ public class Source {
extractors.add(new TVBus());
extractors.add(new Video());
extractors.add(new Youtube());
extractors.add(new ZLive());
}
private Extractor getExtractor(String url) {

@ -10,8 +10,8 @@ public class ZLive implements Source.Extractor {
private boolean init;
public void init() {
//com.east.android.zlive.ZLive.INSTANCE.OnLiveStart(6677);
//init = true;
com.east.android.zlive.ZLive.INSTANCE.OnLiveStart(6677);
init = true;
}
private String getLive(String uuid) {
@ -42,8 +42,8 @@ public class ZLive implements Source.Extractor {
@Override
public void stop() {
try {
//if (init) com.east.android.zlive.ZLive.INSTANCE.OnLiveStop();
//init = false;
if (init) com.east.android.zlive.ZLive.INSTANCE.OnLiveStop();
init = false;
} catch (Throwable e) {
e.printStackTrace();
}

@ -3,6 +3,8 @@ plugins {
}
android {
namespace 'com.east.android.zlive'
compileSdk 35
defaultConfig {
@ -13,5 +15,5 @@ android {
}
dependencies {
implementation 'net.java.dev.jna:jna:5.12.1'
implementation 'net.java.dev.jna:jna:5.14.0'
}
Loading…
Cancel
Save