0

I'm using android studio and i have a problem with Vitamio VideoView.

Here is my layout file:

enter image description here

Here is an error in my class:

enter image description here

Paul Chernenko
  • 696
  • 5
  • 21

1 Answers1

0

This is normal behaviour. findViewById returns a View which is a superclass of VideoView.

Just add a type cast:

mVideoView = (VideoView)findViewById(R.id.surface_view);
Henry
  • 42,982
  • 7
  • 68
  • 84