0

View fullscreen mode from view-port button

Hi all,

Please help me!

How can i catch the event 'select' in View-port button to show fullscreen mode?


Thanks.

by
5 Replies
  • QUOTE (Jerry Dang @ Apr 14 2009, 12:11 AM) <{POST_SNAPBACK}>
    How can i catch the event 'select' in View-port button to show fullscreen mode?


    Not sure I follow what you mean. Do you mean being able to capture the blue button key presses?

    -Jeremy
    0
  • QUOTE (Jeremy Johnstone @ Apr 14 2009, 11:01 AM) <{POST_SNAPBACK}>
    Not sure I follow what you mean. Do you mean being able to capture the blue button key presses?

    -Jeremy


    Hi Jeremy,

    Something like this, i can catch the event 'select' in the Settings button by overriding function onActivateAppButton


    RALLYPOINT.onActivateAppButton = function f_APP_onActivateAppButton(a_event) {
    var data = JSON.parse(a_event.data);
    switch(data.type) {

    case 'app-settings':
    //do something .........


    but when i select the Viewport button, it doesn't go to my code.
    So what i want is:

    RALLYPOINT.onActivateAppButton = function f_APP_onActivateAppButton(a_event) {
    var data = JSON.parse(a_event.data);
    switch(data.type) {

    case 'app-settings':
    //do something .........
    case 'app-settings':
    //do something .........

    How could i do that, Jeremy? :). Thank u, J.
    0
  • QUOTE (Jerry Dang @ Apr 14 2009, 05:58 PM) <{POST_SNAPBACK}>
    but when i select the Viewport button, it doesn't go to my code.
    How could i do that, Jeremy? :)-Jeremy
    0
  • QUOTE (Jeremy Johnstone @ Apr 14 2009, 06:38 PM) <{POST_SNAPBACK}>
    Not allowed by policy, so not technically possible. My apologies.

    -Jeremy



    Oh, i'm sorry,

    Please read as
    RALLYPOINT.onActivateAppButton = function f_APP_onActivateAppButton(a_event) {
    var data = JSON.parse(a_event.data);
    switch(data.type) {

    case 'app-settings':
    //do something .........
    case 'viewport-toggle':
    //do something .........

    instead of

    RALLYPOINT.onActivateAppButton = function f_APP_onActivateAppButton(a_event) {
    var data = JSON.parse(a_event.data);
    switch(data.type) {

    case 'app-settings':
    //do something .........
    case 'app-settings':
    //do something .........


    No way to do that, Jeremy?
    Yes, if it is not allowed by policy, i will give another solution to my client, maybe should show fullscreen after select snippet.

    Thanks anyway, Jeremy.
    Have fun.
    0
  • QUOTE (Jerry Dang @ Apr 14 2009, 07:30 PM) <{POST_SNAPBACK}>
    No way to do that, Jeremy?
    Yes, if it is not allowed by policy, i will give another solution to my client, maybe should show fullscreen after select snippet.


    Yep, I fully understood. I apologize, but it's not allowed.

    -Jeremy
    0

Recent Posts

in General - Yahoo! TV Widgets