Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't sync fullscreen #2

Open
CDormehl opened this issue Sep 16, 2024 · 0 comments
Open

Doesn't sync fullscreen #2

CDormehl opened this issue Sep 16, 2024 · 0 comments

Comments

@CDormehl
Copy link

When setting the size of the content, I can't make it display any larger that 1920x1080. I've tried fullscreen in the config.xml, I've tried getting the screen size and using what I get but I can't make the content stretch over the entire screen.

let resolutionWidth;
let resolutionHeight;

function getDisplaySize() {
    console.log("--> Get Display Size");
    // Check the screen width so that the AVPlay can be scaled accordingly
    tizen.systeminfo.getPropertyValue(
        'DISPLAY',
        function successHandler(data) {
            console.log("Display Size Data: ", data, " data String: ", JSON.stringify(data))
            resolutionWidth = data.resolutionWidth;
            resolutionHeight = data.resolutionHeight;
            // updatePlayerCoords(resolutionHeight, resolutionWidth);
            // initialize(config.url);
        },
        function errorHandler() {
            resolutionWidth = window.innerWidth;
            resolutionHeight = window.innerHeight;
            initialize(config.url);
        }
    );
}
startSyncPlay: function() {
			
			var start = null;
			var syncinfo = {
			   "rectX"     : 0,
			   "rectY"	   : 0,
			   "rectWidth" : resolutionWidth,
			   "rectHeight": resolutionHeight,
			   "groupID"   : 5,
			   "rotate"    : "OFF"
			};
			var onlistener = function(data) {
			    console.log("[start]data:" + data + "changed");
			};
			
			try {			
			    start = webapis.syncplay.start(syncinfo,onlistener);
			} catch (e) {		
			    console.log("[start] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message);
			}
		},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant