[英]Error wtih vitamio in android studio. Incompatible types
I'm using android studio and i have a problem with Vitamio VideoView. 我正在使用android studio,而Vitamio VideoView有问题。
Here is my layout file: 这是我的布局文件:
Here is an error in my class: 这是我班上的一个错误:
This is normal behaviour. 这是正常的行为。
findViewById
returns a View
which is a superclass of VideoView
. findViewById
返回一个View
,它是VideoView
的超类。
Just add a type cast: 只需添加一个类型转换:
mVideoView = (VideoView)findViewById(R.id.surface_view);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.