Results 1 to 4 of 4

Thread: Accessing Boxee Play/Pause Key

  1. #1
    Join Date
    Dec 2010
    Posts
    52

    Default Accessing Boxee Play/Pause Key

    Hello,

    Im developing a html app for boxee, where i use the keyboard for navigation. i currently have access to keys like, up/down/left/../menu. today i was planning to access boxee play/pause key using the javascript api... but from what i understand from the documentation (1):

    Code:
    boxee.onPause - for whenever “pause” is chosen on the OSD
    boxee.onPlay - for whenever “play” is chosen on the OSD
    OnPause and OnPlay handlers are only available in PLAYER_MODE!!!

    Is there any possibility to access this key in KEYBOARD_MODE?

    Best
    Angola


    1) http://developer.boxee.tv/JavaScript_API#onPlay

  2. #2

    Default

    maybe this on is for you
    boxee.apiMinVersion=7.0;
    boxee.autoChoosePlayer = true;
    boxee.reloadOnPageChange = true;
    boxee.setMode(boxee.KEYBOARD_MODE);

    boxee.onUpdateState = function() {
    playerState.canPause = true;
    }

    boxee.onPlay = function()
    {
    browser.execute('jwplayer().play()');
    }

    boxee.onPause = function()
    {
    browser.execute('jwplayer().play()');
    }
    jwplayer is the flash player in html5 site
    download at http://www.longtailvideo.com/players/jw-flv-player/

  3. #3
    Join Date
    Dec 2010
    Posts
    52

    Default

    Thank you very much mr misteranonymus
    you saved me

  4. #4

    Default

    hey guys, from this, how do I go fullscreen into boxees player?
    Boxee... ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •