I have VideoView
(with streaming online video) and I wanted it to continue playing while changing orientation, so I looked around at SO and found that you need to handle orientation change yourself, well ok, I added android:configChanges="orientation|keyboardHidden"
to manifest, and everything worked as intended. But. Only if you dont have different layouts for portrait and landscape orientations.
因此,我如何处理本案中的<代码>VideoView? 我急切地看着保存这一条的方法,因为我必须在<条码>上设定新的布局(<>>)。 或者可能还有另一种方式? 我想到的是,在录像中保留立场,然后是seekTo()
,但我如何避免在此问题上重新出现?