android - Streaming VideoView - Orientation Changes - Different layouts for Landscape and Portrait -
i working on video streaming application youtube. using videoview's built in streaming capability.
i using fragments, on phones there activity wrapper around videofragment. ux should similar youtube's, in portrait there video playing @ top , aditional views below it, etc., , in landscape, there is fullscreen video.
what have trouble orientation changes, want have video continue playing when orientation changed. said, video streamed, persisting current video time not going cut it. way managed forcing not restart activity android:configchanges="keyboardhidden|orientation|screensize"
set on wrapper activity in manifest.
so works nicely, but fails when want have different layouts layout
, layout-land
youtube does, because activity not restarted, theres no oportunity fragment load new layout far know.
thanks!
Comments
Post a Comment