Skip to content

Doesn't sync fullscreen #2

@CDormehl

Description

@CDormehl

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);
			}
		},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions