| | |
| | | |
| | | @Subscribe(threadMode = ThreadMode.MAIN) |
| | | public void onGetMessage(String obj) { |
| | | if(obj.equals("backXamarin")){ |
| | | iAddCamera.back(); |
| | | |
| | | if(EventBus.getDefault().isRegistered(this)){ |
| | | if (obj.equals("backXamarin")) { |
| | | if (EventBus.getDefault().isRegistered(this)) { |
| | | EventBus.getDefault().unregister(this); |
| | | } |
| | | |
| | | if (iAddCamera != null) |
| | | iAddCamera.back(); |
| | | } |
| | | } |
| | | |
| | | public void play(String deviceId){ |
| | | new DeviceUtils(deviceId).play(); |
| | | public void play(String deviceId,String title){ |
| | | new DeviceUtils(deviceId,title).play(); |
| | | } |
| | | |
| | | |