Results 1 to 9 of 9

Thread: flash protocol and flashVars??

  1. #1
    Join Date
    Apr 2011
    Posts
    108

    Question flash protocol and flashVars??

    Hi.

    I'm desperately trying to get Boxee to correctly launch a flash player for a movie service.

    Unfortunately, it requires some flashVars, and I can't find any documentation as to how to supply them from Boxee.

    This would be the HTML code:
    Code:
     <object type="application/x-shockwave-flash" data="http://player.voddler.com/VoddlerPlayer.swf" width="1280" height="720">
                    <param name="allowScriptAccess" value="always">
                    <param name="wmode" value="opaque">
                    <param name="allowFullScreen" value="true">
                    <param name="id" value="player">
                    <param name="flashvars" value="videoid=2788190073758226675&cridid=1&token=5a0b014e63b1f141483fd522eda35b33">               
                </object>
    But since the .swf doesn't use cookies, the
    Code:
    flash://mydomain.com/src=http%3A%2F%2Fplayer.voddler.com%2FVoddlerPlayer.swf&bx-cookie=token%3D1ee0a91f74b4b9c270c844434a72330d%26videoid%3D2788190073758226675%26cridid%3D1;
    Doesn't work :-(

    Can anyone help me??

    EDIT: I assume I need to use the bx-jsactions and then do some JavaScript code to instruct the .swf... but how?
    Last edited by Razorax; August 24th, 2011 at 03:12 PM.
    ---
    In theory, theory and practice are the same. In practice they're not.
    http://razorax-repo.googlecode.com/svn/trunk/boxee

  2. #2

    Default

    What the website/url for this video?

    shawn rieger
    boxee
    r&d, apps, api

  3. #3
    Join Date
    Apr 2011
    Posts
    108

    Default

    As the original "html" part suggested, there isn't an URL for the video, but only for the flash-player, and that player takes videoId + authentication paramters as flashVars.

    I think I might have something close to working with the following URL (one time use only):
    Code:
    http://player.voddler.com/VoddlerPlayer.swf?videoid=2788190073758226675&cridid=1&token=5a0b014e63b1f141483fd522eda35b33
    But I'm not sure that is the "right-way" to supply flash-vars?
    ---
    In theory, theory and practice are the same. In practice they're not.
    http://razorax-repo.googlecode.com/svn/trunk/boxee

  4. #4

    Default

    This is irrelevant, boxee isn't a "flash player", its a browser with flash support. Additionally, the flash:// protocol, despite the name, doesn't mean its for playing flash objects.

    Bottom line is if it works in your browser, it should work in boxee, the same way.

    Take whatever url you generate for the voddler swf and use that. For instance with python:

    Code:
    item = mc.ListItem(mc.ListItem.MEDIA_VIDEO_OTHER)
    item.SetLabel('Voddler')
    item.SetPath('http://player.voddler.com/VoddlerPlayer.swf?videoid=2788190073758226675&cridid=1&token=5a0b014e63b1f141483fd522eda35b33')
    mc.GetPlayer().Play(item)
    In xml:
    Code:
    <media:content url="http://player.voddler.com/VoddlerPlayer.swf?videoid=2788190073758226675&cridid=1&token=5a0b014e63b1f141483fd522eda35b33" type="text/html" />

    shawn rieger
    boxee
    r&d, apps, api

  5. #5
    Join Date
    Apr 2011
    Posts
    108

    Default

    Eeehhh...

    So... to return to my original question.

    How do you provide the flashVars to a flash-player using Boxee, when you're not using the html object tag?

    I'm not entirely sure flashVars = query-string in HTTP?
    Please correct me if I'm wrong!

    And I'm still no where closer to understanding how it's suppose to work in the "flash-protocol".

    But thank you for the educational examples on how to write URLs in either python or XML... something I would dare say I'm already quite capable of.

    I can only assume that the flash-protocol introduced by boxee, is something more than an obscure way of writing a http url???

    If the ONLY function of the flash protocol is to provide a protocol for supplying Boxee with 2 arguments (bx-cookie and bx-jsactions), then please say so... possibly document somewhere on the wikis.
    ---
    In theory, theory and practice are the same. In practice they're not.
    http://razorax-repo.googlecode.com/svn/trunk/boxee

  6. #6
    Join Date
    Feb 2009
    Posts
    427

    Default

    looks like flash vars and query string function the same (not 100%)

    flashvars - http://kb2.adobe.com/cps/164/tn_16417.html
    query string - http://blogs.adobe.com/pdehaan/2006/...actionscr.html

    both look to be using LoaderInfo(this.root.loaderInfo).parameters to get the parameters (in actionscript)
    Last edited by xmcnuggetx; September 1st, 2011 at 04:03 PM.

  7. #7
    Join Date
    Apr 2011
    Posts
    108

    Default

    Thanks.
    That helped me!

    Though
    Quote Originally Posted by http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html
    Previously, in ActionScript 2.0, you could pass variables along the query string or using FlashVars and the variables would be available in _level0, in ActionScript 3.0, it is a bit tricker
    Would indicate that they are not the same, it seems that the example he then lists should indicate that they are! Puzzling.

    So far I'll simply put it in the query-string, and then cross my fingers for success
    ---
    In theory, theory and practice are the same. In practice they're not.
    http://razorax-repo.googlecode.com/svn/trunk/boxee

  8. #8
    Join Date
    Feb 2009
    Posts
    427

    Default

    that's stating the differences between actionscript 2 and 3. In actionscript 2 the variables would automatically be available in _root (_level0). In as3 you need to use the loader info. I think it's still stating passing via query string or flashvars is the same (as2 or 3).

  9. #9

    Default

    You can find the appropriate boxee commands to launch rtmp streams in the included examples of the following bug report:
    http://jira.boxee.tv/browse/BOXEE-9004

    Note that boxee does not allow you to play authenticated streams that would require tcurl or swfplayer parameters.

    [offtopic]
    To bad the bug report was abandoned as duplicate as I think it would make a welcome addition and improvement of rtmp support
    [/offtopic]
    Have a look at my repo at www.bartsidee.nl

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
  •