0

MediaTransportOverlay ResizeButton

I've overloaded the resize button for switching between a small size video of a video from a fullscreen view, and it works good ( even if i needed to add a second mediatransportoverlay for the fullscreen view, i could move dinamically the offsets of the original one but i couldn't change his width dinamically for going from small size to fullscreen size).
The only problem that i'm encountering now is that when i press the resize button the image does not change, from the ControlVideoTransportOverlayEnterViewportButtonImage to the ControlVideoTransportOverlayExitViewportButtonImage like it does in the youtube widget. I sincerely don't know how to do it, since i haven't found documentation on a function that i can call on the resize button to switch the image.
I've checked in the themes and the file is correct, but it doesn't switch when i press the button, is there a simple way to do it?

by
6 Replies
  • I've no problem resizing the viewport, that works without problems on the samsung tv i'm testing, it's just that the resize button isn't changing style when i press it, and i don't think it's a framework issue since it's working on the youtube widget inside the TV
    0
  • The link I provided was to tell you that the viewport re-size will only work on Samsung devices...
    0
  • You also need to add your own events to any button you add - they are not pre-programmed.

    CODE
    KONtx.mediaplayer.initialize();
    this.controls.overlay = new KONtx.control.MediaTransportOverlay({
    forwardseekButton: true,
    backwardseekButton: true,
    events: {
    onTransportButtonPress: function(event) {
    if(event.payload.button == "forwardseek") {
    KONtx.mediaplayer.control.seek(30);
    }
    else if(event.payload.button == "backwardseek") {
    KONtx.mediaplayer.control.seek(-30);
    }
    }
    }
    }).appendTo(this);
    0
  • I'm actually doing that, and that is also not a problem, the only problem is that i'm not able to find how to change the visual display( basically the image) of the resize button when it is pressed, like it's happening on the youtube widget. I know how to add custom behavior to the buttons, but i can't find the right property for changing what i need, and i can't find anything in the documentation.
    0
  • Go through the source in the simulator folder and checkout the components.
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets