Textureview get Surface

后端 未结 2 2020
刺人心
刺人心 2021-01-05 13:50

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?

2条回答
  •  借酒劲吻你
    2021-01-05 14:31

    You can also now in the new versions add an "AnalyticsListener" to the "SimpleExoPlayer" instance, and implement the method "onRenderedFirstFrame" which has the surface as one of its parameters.

提交回复
热议问题