我想在视频 View 中播放视频,请问如何将url转换为rstp
我收到了一个好人的代码,该代码将url转换为rstp。
实现此代码时,我收到了质量不佳的视频。
当我搜索如何修复质量时,我喜欢此链接
Get the download URL for YouTube video (Android/Java)
我的问题是如何让此代码起作用...
我将此代码复制到我的 eclipse 并在那些行中收到错误编译器:
ArrayList视频=新的ArrayList();
progressDialog = ProgressDialog.show(ARViewer.this,“”,“正在连接到YouTube ...”,true);
任何建议如何解决此错误?
这对我很有帮助...
谢谢 ...
最佳答案
将ARViewer.this替换为YourActivityName.this,因为ARViewer只是代码所在的类名称。
关于android - 在Android视频 View 中流式传输视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16031916/