I am using the ExoPlayer Library, which expects a Surface, however i couldn't find any Method, which retrieves the underlying Surface of the Textureview. Any Ideas?
The Surfaceview has a method for that:
surfaceView.getHolder().getSurface()
Or is there no surface in TextureView?
First step is to get the SurfaceTexture from the TextureView using the getSurfaceTexture() member function.
Then create the Surface object from the constructor Surface(SurfaceTexture surfaceTexture) that will accept the SurfaceTexture from your TextureView object.
For more information take a look at this issue report. It confirms that by constructing the Surface object in the manner I described it is possible to use the Surface from a TextureView with ExoPlayer.