package Ġorg . ar . rtc _ engine Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġio . flutter . plugin . common . Binary Messenger Ċ import Ġio . flutter . plugin . common . MethodCall Ċ import Ġio . flutter . plugin . common . Method Channel Ċ import Ġio . flutter . plugin . common . Standard Message Codec Ċ import Ġio . flutter . plugin . platform . Platform View Ċ import Ġio . flutter . plugin . platform . Platform View Factory Ċ import Ġorg . ar . rtc . base . Rtc MediaPlayer View Ċ Ċ class ĠAr MediaPlayer View Factory ( private Ġval Ġplayer Plugin : ĠAr Rtc MediaPlayer Plugin ): ĠPlatform View Factory ( Standard Message Codec . INSTANCE ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcreate ( context : ĠContext , Ġview Id : ĠInt , Ġargs : ĠAny ?): ĠPlatform View Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAr MediaPlayer View ( context . application Context , player Plugin ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠAr MediaPlayer View ( context : ĠContext , media Player Plugin : ĠAr Rtc MediaPlayer Plugin ): Platform View { ĊĊĠĠĠ Ġprivate Ġval Ġview Ġ= ĠR tc MediaPlayer View ( context ) ĊĠĠĠ Ġprivate Ġval Ġplayer Plugin : Ar Rtc MediaPlayer Plugin Ġ= Ġmedia Player Plugin ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġplayer Plugin . getPlayer ()?. setView ( view . get Surface ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget View (): ĠView Ġ{ ĊĠĠĠĠĠĠ Ġreturn Ġview ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdispose () Ġ{ ĊĠĠĠ Ġ} Ċ Ċ }