OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 159011.0
November 7, 2010 10:25 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

gab.xyz

Member
Joined: 04/24/2010

Not just VLC, but Media Player and Divx Player.

I'm connecting to the device using the web api

I can grab images from the device without issue.  Video and audio files don't appear to work. 

I can paste a video or audio URI into a browser address bar and the browser will download the file, or play the file once downloaded.

I've tried both the "dl" and "stream" options, http and https schemes, but it still errors.

I must be missing something.

Any ideas?

Thanks

Discussion:    Add a Comment | Comments 1-6 of 6 | Latest Comment

November 8, 2010 12:32 PM

Hello,

You might try enabling UPnP and get the file via UPnP protocol.
Dealing with UPnP responses(which are XML sytled) can be a bit painful if the language you're using doesn't have a good XML parser library. Below is a GET request from the Playstation 3 for streaming video with UPnP.

GET /upnpms/xfiles/XCEL.0.UVwYIp-Q15JlrYQ3qQccLFWPLaY HTTP/1.1
Host: 192.168.0.63:3333
User-Agent: PLAYSTATION 3
Connection: Keep-Alive
Accept-Encoding: identity
transferMode.dlna.org: Streaming
Range: bytes=0-

The only limit to the Pogoplug is your imagination... and C skills... and linux skills. ^_^ h\t\tp://download.pogoplug.com/opensource/pogoplug-gcc.tar.bz2

November 10, 2010 12:57 PM

Hi,

Am I correct in thinking Pogoplug uses UDP for streaming?

Thanks

libtoks.so said: Hello, You might try enabling UPnP and get the file via UPnP protocol. Dealing with UPnP responses(which are XML sytled) can be a bit painful if the language you're using doesn't have a good XML parser library. Below is a GET request from the Playstation 3 for streaming video with UPnP. GET /upnpms/xfiles/XCEL.0.UVwYIp-Q15JlrYQ3qQccLFWPLaY HTTP/1.1 Host: 192.168.0.63:3333 User-Agent: PLAYSTATION 3 Connection: Keep-Alive Accept-Encoding: identity transferMode.dlna.org: Streaming Range: bytes=0-

November 10, 2010 1:18 PM

Hello,

If by "UDP" you mean UDP packets, then no.

In the example of a PS3, it will send out a Broadcast packet asking if there are any UPnP clients on the same subnet. The Pogoplug, if UPnP enabled, will answer to the PS3 that is it is UPnP capable. Then the PS3 will begin a TCP conversation with the Pogoplug about things like it's icon.png that it should display and directory listings. The GET request example I gave will be replied by the Pogoplug with an "HTTP 206 Partial Content" and the bytes of the file will begin flowing back. With the RequestHeader of "Range: bytes=0-", all of the bytes will be sent to the PS3.

The only limit to the Pogoplug is your imagination... and C skills... and linux skills. ^_^ h\t\tp://download.pogoplug.com/opensource/pogoplug-gcc.tar.bz2

November 11, 2010 12:53 PM updated: November 11, 2010 12:53 PM

I probably should have mentioned this at the outset, but this is for a mobile device, I won't be able to use upnp as it's not supported (at the moment).

I'm use data stream uri's to grab files. I noticed that they never stream if I put them in the browser, they always download first. The response status is always 200. Is there anyway to force pogoplug to return a 206 status?

Here's the URL...

http://service.pogoplug.com/svc/files/<valtoken>/<deviceid>/<s...


Thanks

November 11, 2010 1:23 PM

Range header?

November 11, 2010 1:41 PM updated: November 11, 2010 1:42 PM

Hello,

Range Header, like this: http://www.mail-archive.com/users@tomcat.apache.org/msg38982.html . And discussed in RFC 2068; part of the W3C standard.

The URL you are using appears to be correct. I'm assuming you don't really have 2 consecutive forward-slashes, /flags//abitraryname.ext, in your code. Does the mobile device only begin showing the video after the entire thing is downloaded? If so, that probably means the video has not be made "web optimized" for streaming. Most users have good luck creating streaming-support files with a tool called "HandBrake". It has an option for web-optimizing.

Thanks,

The only limit to the Pogoplug is your imagination... and C skills... and linux skills. ^_^ h\t\tp://download.pogoplug.com/opensource/pogoplug-gcc.tar.bz2

Discussion:    Add a Comment | Back to Top | Comments 1-6 of 6 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window