Jump to content


Photo

How does Media Manager stream Webkit Plugins?


  • Please log in to reply
18 replies to this topic

#1 dtmetz

dtmetz

    Member

  • Members
  • PipPip
  • 45 posts

Posted 05 September 2010 - 05:40 AM

First congratulations to the devs on your new announcements! It is very exciting to see your vision and to see it going so well!

I was wondering how Media Manager steams the Webkit plugins? Like South Park and the Daily Show? When I put the URL (like http://localhost:324...video/southpark) in directly into Firefox I can hear the stream, but Firefox does not display the video, just:

TITLE South Park Episode Player - South Park: Cartman Gets an Anal Probe
CHECK-EPISODE
WAIT-FOR-PLAY
MAP /tmp/plex-framestore-34a-421b55b1.bin 768 432
PROGRESS 0
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
PROGRESS 0
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
PROGRESS 0
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
FRAME
PROGRESS 0

Same thing when I put the URL into VLC, just sound no video.

These plugins don't seem to work on the iPhone app, so I'm not sure if what Media Manager is doing. Can anyone explain how the video is coming back? Is there a way for Media Manager to convert the video on the fly before sending it over? I figure it will need to if we would be able to stream to an iOS device.

#2 Harley Hooligan

Harley Hooligan

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1261 posts

Posted 05 September 2010 - 08:36 AM

First off, great episode. There is not much funnier than someone else having explosive diarrhea. Also, I am pretty sure that PMM does not stream webkit plugins. Notice that the plugins available can be different for each PMS instance on the same network. Usually these plugins require site configs also, which are local files with video player information for "zooming" in the webpage. This is why the debs say the webpage needs to be accessible from the device you are using ( specifically iOS devices ) for the plugin to work.

#3 Billy Joe

Billy Joe

    Plex Star

  • Castle Keeper
  • PipPipPipPipPipPip
  • 1195 posts

Posted 05 September 2010 - 04:01 PM

no, it will definitely stream webkit (flash and silverlight) plugin videos to the ios app, and yes the media server transcodes everything to send to the ios app (hence the video quality settings in the app).

that URL you're hitting does not appear to be the video transcode service for the ios app, but rather the plain old webkit video api that the plex desktop client uses. its not working in firefox because it wan't intended for use in a browser, its just sending plex the raw framebuffer of the captured video source.

#4 Harley Hooligan

Harley Hooligan

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1261 posts

Posted 05 September 2010 - 10:57 PM

Edit. I am a doofus.

#5 dtmetz

dtmetz

    Member

  • Members
  • PipPip
  • 45 posts

Posted 06 September 2010 - 04:51 AM

Ah, it does work! Very cool - I sometimes get an error when running these, but Elan mentioned that not all the plug ins are fully tested yet so that is to be expected.

So when it did work I sniffed the network traffic when my iPhone was requesting a South Park episode and got this interesting URL instead:
http://localhost:324...&quality=4&3g=0

However I get a 401 Unauthorized error. Media Manager is does not require a username password, so I was not expecting this. Accessing other videos do not have this restriction (they just start streaming in). There also seems to be a username/password in the the TCP/IP dump, but the password looks like it is changing for each request. Same thing obviously with VLC asking for a user name and password, trying to replay the same user name and password as my iPhone does not work.

So my question is still, is it possible for me to request these videos from the Media Center directly?

#6 Jam

Jam

    Plex Dev Team

  • Plex Employee
  • PipPipPipPipPipPip
  • 4042 posts
  • Location: Manchester, UK

Posted 06 September 2010 - 03:38 PM

No, it's not possible, sorry. Only authorised clients are able to access transcoded video from the media server.

#7 Harley Hooligan

Harley Hooligan

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1261 posts

Posted 06 September 2010 - 06:22 PM

Is there something special I need to do to get my plugins streaming through iOS? They video player loads but just sits there.

#8 Harley Hooligan

Harley Hooligan

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1261 posts

Posted 06 September 2010 - 07:49 PM

Checked console says plex can't check my NBC.com siteconfig. Any suggestions? Other than that my other plugins work great. The plugins in the hooligan pack all stream fine, save NBC of course.

#9 Nick Read

Nick Read

    Newbie

  • Members
  • Pip
  • 6 posts
  • Location: Hobart, Australia

Posted 07 September 2010 - 01:22 AM

No, it's not possible, sorry. Only authorised clients are able to access transcoded video from the media server.


Can you please elaborate on what an "authorised client" is exactly? Is it only closed-source clients that you guys write? Plex 9 was/is being boasted as providing open APIs for accessing all the stored content, so I'd hate to think that suddenly the community can't write clients that work with this content. I may be totally wrong with this assumption; I'm just putting it out there because it's a valid concern.

Cheers,

#10 elan

elan

    Sheriff of Plexville

  • Sheriff Of Plexville
  • PipPipPipPipPipPip
  • 7411 posts
  • Location: Maui

Posted 07 September 2010 - 01:48 AM

Hi, Nick, note that all the metadata and direct access to your media is completely open and available, it's just the transcoding feature specifically that's restricted at the moment, for which we're requiring an API key type thing for access. One simple reason for that is that if we didn't, someone else could write an iOS app and make it free in the App Store and then nobody would buy ours. We're totally open to working with people wanting to use the API, but we want to keep a certain amount of control over it at the moment, at least.

Instagram: @elan
The Plex blog.
The wife's photography site.
The brother's photography blog.
The dog's twitter feed.


#11 Nick Read

Nick Read

    Newbie

  • Members
  • Pip
  • 6 posts
  • Location: Hobart, Australia

Posted 07 September 2010 - 02:00 AM

...it's just the transcoding feature specifically that's restricted at the moment, for which we're requiring an API key type thing for access...


Thanks for the speedy reply. While it's good to hear that it's only the transcoding functionality that is restricted, it's a bit annoying: I have an N900 and my wife a HTC Desire. I'd be looking to write clients for at least one of these (I just need to find the time somewhere!), but they too would require transcoding.

<thinking out loud>
I guess it would be possible to put together a separate process that provides a transcoding service outside of PMM (ie, device <-> standalone transcoder <-> stream from PMM), it just wouldn't be as seamless/reliable/pretty. I suppose another solution is to transcode ahead of time and let PMM index them under a different section - wastes a lot of storage space though.
</...>

Thanks anyway!

#12 dtmetz

dtmetz

    Member

  • Members
  • PipPip
  • 45 posts

Posted 07 September 2010 - 02:59 AM

Gotcha, I thought it might be the case when I saw the X-Plex-Access-Key/Code.

Well this was what I wanted to do, Elan and Jam let me know what you guys think. I wanted to watch the Daily Show/Colbert Report during lunch but cell reception and wifi for personal use is a no-go at work so I wanted to try writing the stream to a file in a format my iPod could play. Since Media Manager is doing 90% of this already (and I did help write the first iterations of The Daily Show and Colbert Report plug ins for Media Manager :)) I was trying to use that to write a simple program to check for a new episode save the file nightly.

It's not really a replacement for your iOS app (which I of course bought already), but maybe some overlap? The thought of encoding everything and trying to save it onto an iPhone would be crazy but very useful in my situation. I kinda just wanted to write some code against the Media Manager and thought of one thing I can't do yet. Obviously I don't want to step on any toes here. I would probably be okay giving you any code I write anyways, this would be useful as part of PMM.

It sounds like you would be open to letting other people play around with this, would this be possible?

#13 elan

elan

    Sheriff of Plexville

  • Sheriff Of Plexville
  • PipPipPipPipPipPip
  • 7411 posts
  • Location: Maui

Posted 07 September 2010 - 10:38 AM

Thanks for the speedy reply. While it's good to hear that it's only the transcoding functionality that is restricted, it's a bit annoying: I have an N900 and my wife a HTC Desire. I'd be looking to write clients for at least one of these (I just need to find the time somewhere!), but they too would require transcoding.


We'll be coming out with an Android client before too long, so that should cover your HTC, right? Not sure what OS the N900 runs or what video formats it supports, but if it's possible to write a client and you'd like to take a stab at it, we're always to talking about it.

Instagram: @elan
The Plex blog.
The wife's photography site.
The brother's photography blog.
The dog's twitter feed.


#14 elan

elan

    Sheriff of Plexville

  • Sheriff Of Plexville
  • PipPipPipPipPipPip
  • 7411 posts
  • Location: Maui

Posted 07 September 2010 - 10:39 AM

Well this was what I wanted to do, Elan and Jam let me know what you guys think. I wanted to watch the Daily Show/Colbert Report during lunch but cell reception and wifi for personal use is a no-go at work so I wanted to try writing the stream to a file in a format my iPod could play.
...
It sounds like you would be open to letting other people play around with this, would this be possible?


It's a possible feature, but in order to work well the offline transcoding bit would need more support from the Media Server. Stay tuned as we'll be talking about more stuff like this within fairly short order.

Instagram: @elan
The Plex blog.
The wife's photography site.
The brother's photography blog.
The dog's twitter feed.


#15 dtmetz

dtmetz

    Member

  • Members
  • PipPip
  • 45 posts

Posted 07 September 2010 - 12:38 PM

Cool - thanks for the reply Elan. I'll wait for the next round of announcements. I know you said there are a bunch of features you want to add.

#16 dtmetz

dtmetz

    Member

  • Members
  • PipPip
  • 45 posts

Posted 20 September 2010 - 05:47 AM

Elan - Just wondering if KLEXi is what you were talking about or are there more plans in the works? I would really like to see some sort of desktop app, since an iOS app wouldn't be practical for the day to day use I'm hoping to see.

#17 elan

elan

    Sheriff of Plexville

  • Sheriff Of Plexville
  • PipPipPipPipPipPip
  • 7411 posts
  • Location: Maui

Posted 20 September 2010 - 07:46 AM

Elan - Just wondering if KLEXi is what you were talking about or are there more plans in the works? I would really like to see some sort of desktop app, since an iOS app wouldn't be practical for the day to day use I'm hoping to see.


Yeah, KLEXi can do that out of the box (taking videos with you). So you're talking about a desktop app that would bring transcoded videos with, like on a laptop? Apologies if I'm totally missing the point, it's late and there's been alcohol involved.

Instagram: @elan
The Plex blog.
The wife's photography site.
The brother's photography blog.
The dog's twitter feed.


#18 dtmetz

dtmetz

    Member

  • Members
  • PipPip
  • 45 posts

Posted 20 September 2010 - 04:58 PM

So you're talking about a desktop app that would bring transcoded videos with, like on a laptop?


Umm, kind of. Really what I would like to do is transcode nightly whatever new Daily Show video that was put on the website. It would get added to a play list (or maybe even show up as a Podcast source) so that it get's synced to my iPod (classic - no iOS) every morning automagically when I get my other podcasts. It would be nice to be able to watch these on laptop too when traveling. Either on a plane or hotels where the internet sucks, which seems to be every hotel I stay at. :)

Just like I can download a podcast from my iPhone (and at times that is an awesome feature) it's not really a practical way to get my podcasts on a daily basis.

That was my goal anyways when playing around with PMS HTTP interface. Does that make sense?

#19 elan

elan

    Sheriff of Plexville

  • Sheriff Of Plexville
  • PipPipPipPipPipPip
  • 7411 posts
  • Location: Maui

Posted 21 September 2010 - 02:41 AM

Umm, kind of. Really what I would like to do is transcode nightly whatever new Daily Show video that was put on the website. It would get added to a play list (or maybe even show up as a Podcast source) so that it get's synced to my iPod (classic - no iOS) every morning automagically when I get my other podcasts. It would be nice to be able to watch these on laptop too when traveling. Either on a plane or hotels where the internet sucks, which seems to be every hotel I stay at. :)

Just like I can download a podcast from my iPhone (and at times that is an awesome feature) it's not really a practical way to get my podcasts on a daily basis.

That was my goal anyways when playing around with PMS HTTP interface. Does that make sense?


Yes, I can certainly see where you're coming from. I suspect future enhancements could make this a reality in the iOS apps :) Of course, it would also be possible to pivot things around and just use PMS as a transcoder, but that's not where our focus is at the moment, at least.

Instagram: @elan
The Plex blog.
The wife's photography site.
The brother's photography blog.
The dog's twitter feed.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users