TV window is not showing in portrait orientation

Asked at 2017-01-04 11:54:25Z
  • 5 Subscribers
  • 114 Views
0

Model Code : PM32F

Software Version: T-HKMLAKUC-1003.2

Sub1: T-HKMLFWWS-1001

Sub2: T-NVTLFFWWS-1015

I am developing Samsung Tizen TV app.

I have rotated TV screen to portrait by both means (By API and OSD Menu).

By API:

Code:

b2bapis.b2bcontrol.setMenuOrientation("DEGREE_90", onSuccess, onError);

API Reference URL:

http://www.samsungdforum.com/B2B/Guide/APIReference/SSSP4/tizen2821/index.html

After that i changed the TV source to HDMI 1 by using API:

Code

tizen.tvwindow.setSource(source, successCB, errorCB);

API Reference URL:

http://www.samsungdforum.com/B2B/Guide/APIReference/SSSP4/tizen921/index.html#setSourceidp111616

After successfully setting source i get successCB callback. In the successCB callback i displayed the source window (HDMI 1) using API:

Code:

function successCB(windowRect, type) {
            log("Rectangle : [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
        }
function errorCB(e) {
            log("Rectangle : [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
            display = true;
        }
    try {
        window.tizen.tvwindow.show(successCB, errorCB, [ "0px", "0px", "100%", "100%" ], "MAIN");
    } catch (error) {
        log("error: " + error.name);
    }

API Reference URL:

http://www.samsungdforum.com/B2B/Guide/APIReference/SSSP4/tizen921/index.html#showidp132544

Then i got errorCB callback with "e" parameter which value is following below:

code: -1
message: "Runtime message failure"
name: "UnknownError"

Please help us in this. Let me know if you need any further information. Any help regarding this will be much appreciated.


0 answers in total

Answer this questsion