相关疑难解决方法(0)

无法应用插件Android Studio

我正在尝试将ExoPlayer库导入我的Android Studio项目.我用几种方法尝试了几次(直接用GRADLE导入),导入为模块,复制粘贴它,我得到同样的错误:

Error:(15) A problem occurred evaluating project ':..:ExoPlayer:library'.
> Failed to apply plugin [id 'bintray-release']
   > Plugin with id 'bintray-release' not found.
Run Code Online (Sandbox Code Playgroud)

在库gradle中,我找到了apply plugin行:

apply plugin: 'bintray-release'
Run Code Online (Sandbox Code Playgroud)

搜索库并将其应用于依赖项之后,我仍然遇到错误:

dependencies {
    compile 'com.novoda:bintray-release:0.2.10'
}
Run Code Online (Sandbox Code Playgroud)

任何Ideea我怎么能解决这个问题?

android bintray

16
推荐指数
1
解决办法
1万
查看次数

ExoPlayer:如何播放http直播?

我想在我的 Android 应用程序中使用 ExoPlayer 库来播放实时流媒体视频。

我正在浏览 exoplayer 网站和文档以及 Github 页面,但我对这些解释并不满意。

任何人都可以给我提示如何通过 ExoPlayer 播放 http 直播流视频?

提前致谢。

android video-streaming exoplayer

5
推荐指数
1
解决办法
1万
查看次数

无法使用 ExoPlayer 获取 AAC 文件的 getDuration()

我一直在尝试流式传输URL使用ExoPlayer. 网址:

STREAM_URL_1 = " http://storage.googleapis.com/exoplayer-test-media-0/play.mp3 "

STREAM_URL_2 = " https://s3-ap-southeast-1.amazonaws.com/ok.talk.channels/zakirkhan/Zakir+khan+-+when+my+father+took+my+gf%27s+call.aac "

两个 URL 都可以播放,但我无法获得getDuration()STREAM_URL_2 的 .aac 文件。.mp3 有效。

以下是我的做法。如何获取getDuration()第二个 URL。即使seekTo()如果不工作getDuration()不工作。

我应该做出什么改变?我需要改变任何Extractor吗?

player = ExoPlayer.Factory.newInstance(RENDERER_COUNT, MIN_BUFFER_MS, MIN_RE_BUFFER_MS);
playerControl = new PlayerControl(player);
Allocator allocator = new DefaultAllocator(BUFFER_SEGMENT_SIZE);

private static final String STREAM_URL = "http://storage.googleapis.com/exoplayer-test-media-0/play.mp3";
uri = Uri.parse(STREAM_URL);

// Build the video and audio renderers.
DefaultBandwidthMeter bandwidthMeter = new DefaultBandwidthMeter(player.getMainHandler(),
    null);
String userAgent = Util.getUserAgent(this, "MyMediaPlayer");
DataSource dataSource …
Run Code Online (Sandbox Code Playgroud)

android audio-player android-music-player android-mediaplayer exoplayer

2
推荐指数
1
解决办法
3128
查看次数