Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: PlayInBackground()

  1. #1
    Join Date
    Dec 2010
    Posts
    9

    Default PlayInBackground()

    Hello,

    I run into a problem with the videowindow control on the boxeebox with the latest firmware.

    I got an intro.xml which opens after a click on a button with mc.ActivateWindow(25000) the following main.xml:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <window type="window" id="25000">
        <allowoverlay>no</allowoverlay>
        <onload lang="python">
    <![CDATA[
    controller.onloadMain()
    ]]>
        </onload>
        <defaultcontrol always="true">25101</defaultcontrol>
        <controls>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>1280</width>
                <height>720</height>
                <texture>background.png</texture>
            </control>
                <control type="videowindow" id="25102">
                    <posx>100</posx>
                    <posy>220</posy>
                    <width>720</width>
                    <height>480</height>
                </control>
        </controls>
    </window>
    the onloadMain() method sets the item informations and starts with the following code the video:
    Code:
            myplayer = mc.Player()
            myplayer.LockPlayerAction(myplayer.XAPP_PLAYER_ACTION_NEXT)
            myplayer.LockPlayerAction(myplayer.XAPP_PLAYER_ACTION_PREV)
            myplayer.LockPlayerAction(myplayer.XAPP_PLAYER_ACTION_STOP)
            myplayer.PlayInBackground(self.item)
    This works without any problem with the Boxee Software on Mac, Windows and Linux but not with the Boxee Box. On the Boxee Box the Video always starts in fullscreen.

    Did I do something wrong or is this a bug?

  2. #2
    Join Date
    Nov 2010
    Location
    Jyväskylä, Finland
    Posts
    66

    Default

    It's a feature. Boxee Box does not support background video.

    http://jira.boxee.tv/browse/BOXEE-8349

  3. #3
    Join Date
    Dec 2010
    Posts
    9

    Default

    No, I am not talking about that kind of background video.
    I want to do something like the mlb app do and how it is described here: http://developer.boxee.tv/blog/2010/...yinbackground/

  4. #4
    Join Date
    Nov 2010
    Location
    Jyväskylä, Finland
    Posts
    66

    Default

    Yes you are, if you're talking about python apps. There's only one kind of background video for python apps, and that's not possible with the boxee box. The mlb app in the blog post is for boxee 0.9 on pc hardware.

    However, something like that probably is possible with "html5" apps, http://developer.boxee.tv/blog/2011/...html5-o-boxee/ and http://developer.boxee.tv/JavaScript_API - boxee has finally updated the javascript api docs a few days ago, 17th march!

  5. #5
    Join Date
    Dec 2010
    Posts
    9

    Default

    Ok, thank you!

  6. #6

    Default

    @viljoviitanen: You are clearly wrong.

    It does work. I'm testing it right now on Boxee Box with newest production firmware.

  7. #7
    Join Date
    Nov 2010
    Location
    Jyväskylä, Finland
    Posts
    66

    Default

    Quote Originally Posted by samuil View Post
    @viljoviitanen: You are clearly wrong.

    It does work. I'm testing it right now on Boxee Box with newest production firmware.
    Well, my knowlegde was based on first hand experience with boxee win,linux and box, the jira issue I linked and stuff on boxee forums, just search for background video. There's even a recent poll for it: http://forums.boxee.tv/showthread.php?t=30806

    Care to share your code?

  8. #8
    Join Date
    Dec 2010
    Posts
    9

    Default

    Quote Originally Posted by samuil View Post
    @viljoviitanen: You are clearly wrong.

    It does work. I'm testing it right now on Boxee Box with newest production firmware.
    Could you give me your example code please? I just don´t understand what I am doing wrong...

  9. #9

    Default

    There you are. It's app that uses PlayInBackground(). It is bug report, `cause there are some issues with it, but it generally works.

    http://jira.boxee.tv/browse/BOXEE-8446

  10. #10
    Join Date
    Dec 2010
    Posts
    9

    Default

    Thank you!
    Will check it out on monday

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
  •