Results 1 to 4 of 4

Thread: possible for ListItem to read from a file-like object?

  1. #1

    Default possible for ListItem to read from a file-like object?

    Is it possible for a ListItem to read from a file-like object? I looked at the API for SetPath and it sounds like you can only pass a string, that is either a local file or a url. In my case, I'll have neither, but instead, a file-like object.

    Thanks,
    Justin

  2. #2
    Join Date
    Aug 2008
    Location
    Cleveland, OH
    Posts
    3,712

    Default

    Um, what is your 'file like object'?

    Have you tried passing Boxee the PATH of your 'file like object', on your local machine?

    If you are asking if you can pass Boxee an in-memory buffer of a media file, the answer is no.
    personal: boxee | twitter | boxee hq
    boxee: boxee chat | boxee wiki | boxee plugins

    i run boxee 0.9.20 on: ubuntu 9.10, windows xp sp3 (virtual machine), windows 7 and a neuros link hacked to all hell.

    what super powers does a 'super mod' have? the 'super ban'... that, and laser vision.

  3. #3

    Default

    Quote Originally Posted by agentlame View Post
    Um, what is your 'file like object'?
    So my idea isn't exactly fully formed yet, but, it would be the standard out from a command line program.

    Have you tried passing Boxee the PATH of your 'file like object', on your local machine?
    This may be what I have to do, given your answer below...

    If you are asking if you can pass Boxee an in-memory buffer of a media file, the answer is no.
    Is there any reason for this? Is it a technical issue with the way media files are played in Boxee? While I'm just now learning python, it doesn't seem like it would be a limitation of the language itself.

    Any plans to add this to the API?

    Btw, the API is pretty awesome. I hope you understand I'm not criticizing it Just trying to see what I can do.

    Let me know if you want some more details about what I'm trying to do!

    Thanks,
    Justin

  4. #4
    Join Date
    Aug 2008
    Location
    Cleveland, OH
    Posts
    3,712

    Default

    Quote Originally Posted by justinmiller621 View Post
    Is there any reason for this? Is it a technical issue with the way media files are played in Boxee? While I'm just now learning python, it doesn't seem like it would be a limitation of the language itself.
    Um, I can't think of a situation in which you would WANT to pipe-in a media file. Remember, it has to be a media file. Most media files are rather large--the exception being audio--so, I don't know why you would want it in memory. It would make more sense to write it to disk, and pass the path to Boxee.

    Quote Originally Posted by justinmiller621 View Post
    Any plans to add this to the API?
    I doubt it. Like I say, I just can't think of a situation in which this type of functionality would be needed.
    Last edited by agentlame; February 18th, 2010 at 10:46 AM. Reason: worst. typo. ever.
    personal: boxee | twitter | boxee hq
    boxee: boxee chat | boxee wiki | boxee plugins

    i run boxee 0.9.20 on: ubuntu 9.10, windows xp sp3 (virtual machine), windows 7 and a neuros link hacked to all hell.

    what super powers does a 'super mod' have? the 'super ban'... that, and laser vision.

Similar Threads

  1. Replies: 2
    Last Post: June 12th, 2011, 09:56 PM
  2. Object not recognized
    By ilyak22000 in forum feature requests
    Replies: 0
    Last Post: February 1st, 2011, 11:19 PM
  3. Replies: 4
    Last Post: January 18th, 2011, 01:02 PM
  4. Help with maintaining a global session object
    By devbobo in forum boxee applications
    Replies: 4
    Last Post: January 6th, 2010, 11:03 PM
  5. xbmcgui.ListItem vs. mc.ListItem
    By joshuajonah in forum boxee applications
    Replies: 0
    Last Post: January 2nd, 2010, 04:45 PM

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
  •