You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android开发:使用ExoPlayer制作播放器时遇报错求助

Android开发使用ExoPlayer创建播放器报错求助

我在Android开发中,使用ExoPlayer制作播放器时遇到了错误。

原始代码如下:

DefaultDataSource.Factory dataSourceFactory = new DefaultDataSource.Factory(MainActivity.this, Util.getUserAgent(MainActivity.this, "Work2"));

错误截图

我尝试修改为以下代码,错误仍然存在:

DefaultDataSource.Factory dataSourceFactory = new DefaultDataSource.Factory(this, Util.getUserAgent(this, "Work2"));

请求各位帮忙!感谢所有帮助者!

内容的提问来源于stack exchange,提问作者Cotton

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.27 00:49:52