Casting screen from Android mobile to Android Tablet -
i need develop 2 applications "sender" , "receiver". these 2 perform screen mirroring sender receiver.
how can this? there in-built apis / libraries available same? can use miracast achiave this? if, yes please guide me.
assumption: both device remain on same wifi.
to collect ui sender, can try creating looks mirroringframelayout
the cwac-layouts library. designed update separate mirror
view
on same device has mirroringframelayout
, such having mirroringframelayout
on touchscreen , mirror
shown on external display via presentation
.
the problem encounter performance, current approach draws entire mirrorframelayout
contents bitmap
, shown mirror
. require ship new bitmaps across network connection on every ui change, slow. so, while approach easy, may need more aware of ui doing can ship on smaller updates.
the best approach may stop thinking of "screen mirroring" entirely, , instead focus on "operation mirroring". example, suppose sender drawing app, , receiver supposed see drawings. rather sending on screens, send on drawing operations user performs, , apply same operations on receiver.
Comments
Post a Comment