Trying to do screen mirroring of PC game on Android Phone using VR SDK. Image blinks

122 Views Asked by At

I am trying to develop VR based Android app that does screen mirroring of PC with Counter Strike game to provide VR experience to player. I have installed VR SDK and using android studio for development. I have written following code for Screen mirroring on android , which shows blank frames in whenever a new frame is set on the phone. Can somebody help?

 Runnable takeScreenShot = new Runnable() {
    public void run() {
        Options panoOptions = null;  
        panoOptions = new Options();
        panoOptions.inputType = Options.TYPE_MONO;
        String url = AndroidConstants.MAIN_URL();
        b = HttpView.drawable_from_url(url);
        if(b != null) {
            panoWidgetView.loadImageFromBitmap(b, panoOptions);
        }
    };
}; 
0

There are 0 best solutions below