0

TV api - only fullscreen?

Hi there!

I've been using the tv.mediaplayer and the tv api (ie:

tv.createPath(tv.createNetworkInput(url),tv.getOutput("VideoPlaybackScreen"));
var openPaths = tv.getPaths();
openPaths[0].control.play();

…to do video playback. With both it only appears to default to fullscreen. For example the openPaths[0].output.fullscreen seems to be a readonly value and doesn't update if I try to assign 'false' to it. Does this mean that when using the tv api we can only do fullscreen video playback? Is there a way for us to code our own quarterscreen video playback for example or are you planning to support this in the future?

Many thanks

Penny.

by
4 Replies
  • QUOTE (c.penny67 @ Mar 13 2009, 02:55 AM) <{POST_SNAPBACK}>
    Hi there!

    I've been using the tv.mediaplayer and the tv api (ie:

    tv.createPath(tv.createNetworkInput(url),tv.getOutput("VideoPlaybackScreen"));
    var openPaths = tv.getPaths();
    openPaths[0].control.play();

    …to do video playback. With both it only appears to default to fullscreen. For example the openPaths[0].output.fullscreen seems to be a readonly value and doesn't update if I try to assign 'false' to it. Does this mean that when using the tv api we can only do fullscreen video playback? Is there a way for us to code our own quarterscreen video playback for example or are you planning to support this in the future?

    Many thanks

    Penny.


    Hi Penny,

    You can define the dimensions and position of the the video output using the bounds property: (page 291 in the latest developers guide)

    var v = tv.getOutput(“VideoPlaybackScreen”);
    v.bounds = new Rectangle(0,0,0,0);

    The attributes of the Rectangle object are x, y, width and height.

    Regards,
    Oli
    0
  • QUOTE (Oli @ Mar 13 2009, 09:22 AM) <{POST_SNAPBACK}>
    Hi Penny,

    You can define the dimensions and position of the the video output using the bounds property: (page 291 in the latest developers guide)

    var v = tv.getOutput(“VideoPlaybackScreen”);
    v.bounds = new Rectangle(0,0,0,0);

    The attributes of the Rectangle object are x, y, width and height.

    Regards,
    Oli



    This isn't supported in the WDK. It's only supported on TV platforms.
    0
  • QUOTE (Oli @ Mar 13 2009, 09:22 AM) <{POST_SNAPBACK}>
    Hi Penny,

    You can define the dimensions and position of the the video output using the bounds property: (page 291 in the latest developers guide)

    var v = tv.getOutput(“VideoPlaybackScreen”);
    v.bounds = new Rectangle(0,0,0,0);

    The attributes of the Rectangle object are x, y, width and height.

    Regards,
    Oli


    Thanks Oli! Works great now
    0
  • QUOTE (c.penny67 @ Mar 13 2009, 10:11 AM) <{POST_SNAPBACK}>
    Thanks Oli! Works great now


    If there is anything I can do to help out further on the video front, please don't hesitate to ask.
    0

Recent Posts

in General - Yahoo! TV Widgets