TextureView requires hardwareAccelerated enable
Today i learned a new thing in Android. I am playing videos with > TextureView. But it doesnt play, It causing following error in LOG :
A TextureView or a subclass can only be used with hardware acceleration enabled.
reason I disabled hardwareAccelerated Application level like :
<application
android:hardwareAccelerated="false".... </application>
I tried to enable android:hardwareAccelerated="true" activity level :
<activity
android:hardwareAccelerated="true"...</activity>
But it fails. So we must enable hardwareAccelerated App level.
Hope this helps someone who faced same issue. If you have any better solutions then you can share. Happy codding