开发者

Android: how to dispaly the same video preview in different processes

开发者 https://www.devze.com 2023-03-11 20:42 出处:网络
In android, one activity displays a preview(video).And I hope this preview will still be displayed in another activity, whenthis activity switches to another. How to do?

In android, one activity displays a preview(video).And I hope this preview will still be displayed in another activity, when this activity switches to another. How to do?

*My Initial ideas:*using a remote service manage the only control mediaplayer, then differen开发者_如何学运维t processes can access this mediaplayer using IPC. but I don't know how to transfer a mediaplayer from service to client. Any one can solve this problem?


In android, one activity displays a preview(video).And I hope this preview will still be displayed in another activity, when this activity switches to another. How to do?

Simple: merge the two activities into one, so you do not switch activities.

using a remote service manage the only control mediaplayer, then different processes can access this mediaplayer using IPC. but I don't know how to transfer a mediaplayer from service to client.

That is impossible.

0

精彩评论

暂无评论...
验证码 换一张
取 消