开发者晚上好,我在广播应用程序中编译或运行时遇到问题,我第一次尝试它时它工作得很好但现在使用同一个项目它不播放并且当我在 exoplayer 中抛出这个错误运行它,我已经尝试了一切,但它对我不起作用。
我使用的流媒体链接来自 shoutcast.com,它工作正常。
是这个:https://radio.voxstream.net:7032/index.html?sid=1
需要注意的是,这是一个朋友让我审查的项目,除了基本的 Kotlin 和依赖项外,我对这个主题的了解不多。
来源错误。 com.google.android.exoplayer2.source.UnrecognizedInputFormatException:没有可用的提取器(MatroskaExtractor、FragmentedMp4Extractor、Mp4Extractor、Mp3Extractor、AdtsExtractor、Ac3Extractor、TsExtractor、FlvExtractor、OggExtractor、PsExtractor、WavExtractor、AmrExtractor)可以读取流。 在 com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractorHolder.selectExtractor(ExtractorMediaPeriod.java:973) 在 com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:891) 在 com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 在 java.lang.Thread.run(Thread.java:923)
Config.java 来自应用程序:
com.creativoagencia.lasabrosadechile 包;
公共类配置{
/**
* URL DE SERVIDOR
*/
public static final String BASE_URL = "https://system.easywebecuador.com/panelradiotv/server/public/";
public static final String URL_SERVER = BASE_URL+ "api/";
/**
* ID DE USUARIO EN EL SERVIDOR
*/
public static final int ID_USER = 372;
/**
* TERMINOS Y CONDICIONES
*/
public static final String TERMINOS = "\n" + "https://livestreamingmundial.com/privacidad";
/**
* Typeface Menu lateral
*/
public static final int TYPEFACE_DRAWER = R.font.clanpro;
//Ingrese las Url de su Streaming de Audio y Video
public static final String RADIO_STREAM_URL = "https://radio.voxstream.net:7032/index.html?sid=1";
public static final String TV_STREAM_URL = "none";
//Acrivar el Uso de Panel de Control
public static final boolean ENABLE_ADMIN_PANEL = false;
//Cololar la URL del Panel de Control
public static final String ADMIN_PANEL_URL = "none";
//ads configuration
public static final boolean ENABLE_ADMOB_BANNER_ADS = false;
public static final boolean ENABLE_ADMOB_INTERSTITIAL_ADS_ON_LOAD = false;
public static final boolean ENABLE_ADMOB_INTERSTITIAL_ADS_ON_DRAWER_SELECTION = false;
public static final boolean ENABLE_ADMOB_INTERSTITIAL_ON_PLAY = false;
public static final int ADMOB_INTERSTITIAL_ON_PLAY_INTERVAL = 30;
//auto play function
public static final boolean ENABLE_AUTO_PLAY = true;
//layout customization
public static final boolean ENABLE_SOCIAL_MENU = true;
//album art configuration
public static final boolean ENABLE_ALBUM_ART = true;
public static final boolean ENABLE_CIRCULAR_IMAGE_ALBUM_ART = true;
public static final int ALBUM_ART_BORDER_WIDTH = 8;
public static final int ALBUM_ART_CORNER_RADIUS = 30;
//when it enabled, the radio will be reloaded and the metadata will immediately be updated
//there may be a slight delay on play audio streaming when the metadata is updated
public static final boolean FORCE_UPDATE_METADATA_ON_RESUME = true;
//splash screen duration in millisecond
public static final int SPLASH_SCREEN_DURATION = 3000;
}