Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 android studio,但 Vitamio VideoView 有问题。
这是我的布局文件:
这是我课堂上的一个错误:
这是正常行为。findViewById返回 aView它是 的超类VideoView。
findViewById
View
VideoView
只需添加一个类型转换:
mVideoView = (VideoView)findViewById(R.id.surface_view);