开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜