Android: How can we move the playing video from one activity to another activity or dialogue without re-buffering?

Can we move the playing video from the activity to the popup dialog without breaking the game?

I tried this but I was unable to get it to work with SurfaceView as it creates a hole in the popup and displays the content in the Activity behind.

Alternatively, try removing the video (or playing in SurfaceView / VideoView) from the activity and adding it to the dialog. But this re-buffers the video and I want to play continuously without re-buffering.

Any suggestions would be appreciated

+3


source to share


2 answers


you can see this link for this if any problem then asks me to be friendly



I haven't tried to tell for sure myself, but I guess if you put VideoView as an argument in http://developer.android.com/reference/android/app/Dialog.html#addContentView(android.view.View , android.view. ViewGroup.LayoutParams), this should be what you want. Just make the alert raised on the button listener. It's http://developer.android.com/reference/android/widget/VideoView.html which you want to send in an instance.

+1


source


Install below theme into the simplest android file for android which has video review or surface preview.

 <activity android:theme="@android:style/Theme.Dialog"> 

      



try this, it might help you.

0


source







All Articles