1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Plex HTML5 App WorldWide Request

Discussion in 'Developers Corner' started by jgametest, Dec 17, 2013.

  1. Dec 17, 2013 #1 of 457
    jgametest

    jgametest New Member

    117
    0
    Oct 30, 2013
    I have reached out to the Plex team to see about them helping us and all to work on a HTML5 client. If anyone can pull this off it's them.. So many variations of that product are in use for multiplatform. Just note it's going to take time.

    https://forums.plexapp.com/index.php/topic/90423-html5-app-worldwide-request/
     
  2. Dec 17, 2013 #2 of 457
    bradleys

    bradleys It'll be fine....

    3,687
    4
    Oct 31, 2007
    I know a version was being developed for Boxee before it was purchased by Samsung and shelved...

    fyi - Boxee was using the Opera SDK, according to this article.

    The source code is still available.

    And it looks pretty good:

    [​IMG]
     

    Attached Files:

  3. Dec 18, 2013 #3 of 457
    jgametest

    jgametest New Member

    117
    0
    Oct 30, 2013
  4. Dec 18, 2013 #4 of 457
    Philmatic

    Philmatic Member

    524
    0
    Sep 17, 2003
    FYI, the Opera TV Store only supports H.264 video and MPEG1/MPEG2/AAC audio inside MP4 containers. It DOES support HLS though, so Plex would work somewhat reliably if you use their transcoding server.

    If you were hoping for more native codec support (Like XBMC), it's not going to happen.
     
  5. Dec 20, 2013 #5 of 457
    jtclark

    jtclark New Member

    11
    0
    Apr 22, 2005
    You can remotely pass your Plex Media Server URL to the Tivo Opera browser via kmttg, but as you guys have mentioned there are no browser controls.

    Just seeing the Plex web interface displayed by the Tivo gives me possibly unfounded hope.

    Like everyone else, still looking for that one box that does it all.

    With a little more open browser on the Tivo, I think it would win hands down.
     
  6. Dec 20, 2013 #6 of 457
    jgametest

    jgametest New Member

    117
    0
    Oct 30, 2013
    This team decided to providing the sourcecode to the general public. Will it be enough Or is the current product to reliant on a pc.

    With a modified code could it possible to put on a public/private server to emulate a pc/mac model?

    [media]http://www.youtube.com/watch?v=jeh0eQTTTEQ[/media]

    http://kylo.tv/ - Product
    http://code.kylo.tv/ - Sourcecode
     
  7. Jan 14, 2014 #7 of 457
    ntlord

    ntlord New Member

    183
    0
    Nov 30, 2013
    So I spent a bit of time looking into this, but I could not get very far.

    First, I started with this: (forum won't let me post links-but search for "plex.h3consulting" on google)

    It is a javacript based plex frontend for LG TVs. I got it to work, and navigation works pretty well but video will not play.

    LG TVs use a custom video object, so I modified it to use an HTML5 video tag. I got it full working in Safari (which means HTML5 HLS video is working), but it will not work on the Tivo.

    As best as I can tell, Tivo does NOT support HLS. I am not familar enough with Plex's transcoder to go much further, but I did try to use the "generic" (as opposed to the universal) transcoder to produce an MP4 file. For example, as in this thread (search for "transcoder help" in plex devel forum) But, everytime I executed the command, it locked up the transcoder (windows) or killed plex process (OS X). The logs weren't any help either.
     
  8. Jan 14, 2014 #8 of 457
    gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    It looks like Opera has confirmed no HLS support on TiVo (which is a bummer for transcoding purposes):
    http://my.opera.com/community/forums/topic.dml?id=1811322

    I've been toying around with the Opera html5 support on TiVo though, and there are still some interesting apps that could be created for TiVo.
     
  9. Jan 15, 2014 #9 of 457
    ntlord

    ntlord New Member

    183
    0
    Nov 30, 2013
    That is too bad. The documentation on the Opera SDK is seriously lacking. There also does not seem to be much of a developer community (i.e. you question went unanswered for days).

    My hope is that if I can get Plex's transcoder to pop out an mp4 then this would still have a chance at working. But as of right now, when I try that Plex crashes.
     
  10. Jan 15, 2014 #10 of 457
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I don't see how that's possible. mp4 container requires MOOV atom among others that can only be generated once the encoding is complete, so on the fly transcoding to mp4 I don't think is possible...
    IMO, mp4 container is lousy and I wish at least mpeg2 transport container would work since it's much more flexible.
     
  11. Jan 15, 2014 #11 of 457
    ntlord

    ntlord New Member

    183
    0
    Nov 30, 2013
    I thought so too. But if you search for "transcoder help" (again sorry can't post links yet) on the Plex dev forums, somebody seems to indicate they got it to work with a Vizio tv and a .mp4 container that was transcoded on-the-fly.

    I will try a couple of basic tests later on tonight, just to verify the only container the Tivo can support is .mp4. But, I'm not hopeful.
     
  12. Jan 15, 2014 #12 of 457
    gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
  13. Jan 15, 2014 #13 of 457
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    It's good to have independent confirmation, but from my tests not too long ago the only thing that works inside a <video> tag for TiVo Opera browser is mp4 container with H.264 video and AAC audio. (The MOOV atom does not have to be at start of the file from what I recall).

    NOTE: mp4 container with H.264 video and AC3 audio will actually play, but you don't get any sound.
     
  14. Jan 15, 2014 #14 of 457
    ntlord

    ntlord New Member

    183
    0
    Nov 30, 2013
    I tested with ogg, webm, mpegts. No dice. I also extracted the .ts files from the .m3u8 file, also no dice.

    At this point, my only hope is that I get an answer on the Plex forums, and somehow that generic transcoder mp4 thing magically works.

    As an aside, is the new netflix app HTML5? Is it possible we could try to intercept the traffic, and see if there are some custom objects being passed around not documented in the Opera web SDK?

    Has there been any news as to when tivo is going to post the SDK info on their website? It seems to have been down for "maintenance" and awful long time.
     
  15. Jan 16, 2014 #15 of 457
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    No. Back when "opera:history" still worked before 20.3.8 update, Dan203 was able to confirm that after launching Netflix no URL showed up in Opera browser history for his TiVo. After launching YouTube HTML version it did show up in history. Also, the URL for Netflix App launch is a special type:
    Code:
    x-tivo:netflix:netflix
    vs the YouTube one:
    Code:
    x-tivo:web:https://www.youtube.com/tv
    So YouTube videos are being launched using <video> tags in html5 while Netflix is doing its own custom thing. YouTube videos are mp4 container with H.264 video and AAC audio which is why that's not a problem.

    It would be wonderful for us to get access to same TiVo SDK that Netflix must be using, but that's likely never going to happen...
     
  16. Jan 16, 2014 #16 of 457
    ntlord

    ntlord New Member

    183
    0
    Nov 30, 2013
    Hmm that's too bad. Although, I guess you never know, who knows what Netflix is sending back and forth? Maybe, if I have time this weekend, I'll try to set up a packet sniffer. Even if it is HTTPS it still may be possible to intercept by setting up a man-in-the-middle proxy.
     
  17. Jan 16, 2014 #17 of 457
    gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    ^
    Love to hear the results of this.

    I started looking into WebRTC during my break at work today..I'm wondering if there isn't a way to implement streaming by pretending we're a webcam on the server side. If it works at all on the TiVo, there'll probably be a bunch of limiting factors like dropping frames when it can't keep up, the codecs only support low-bitrates designed for real-time video chats and such. It's relatively new, and I'm betting isn't even included in Opera's device sdk(and thus on tivo), but it was a passing thought.
     
  18. Jan 17, 2014 #18 of 457
    sirfergy

    sirfergy New Member

    288
    0
    May 18, 2002
    Could you share the changes you made go get it working? Most of my media is h264/aac so I don't need transcoding support.
     
  19. Jan 17, 2014 #19 of 457
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,454
    166
    Apr 17, 2000
    Nevada
    You are correct. MP4 files require a MOOV atom and the MOOV atom can not be generated until the file has finished encoding, so MP4 can not be used for realtime transcoding and streaming.

    HLS is really our only hope for that functionality. I wonder why it's not included in the TiVo version of Opera?
     
  20. Jan 17, 2014 #20 of 457
    ntlord

    ntlord New Member

    183
    0
    Nov 30, 2013
    This moov atom thing has me confused. I get that when you are transcoding a live stream it may not be possible to generate the moov atom. But that is not the case with Plex. Instead, with Plex, you are transcoding a fixed file. It would seem to me to be completely within the realm of possibility to generate the correct MOOV atom in that case.

    There must be some third party transcoders that can do that. Has anybody looked into that? I know it somewhat defeats the purpose of using plex, but I guess for now it would work.


    @sirfergy - As to sharing the code. I really just hacked something together. It was never fully functional. Just enough to get it to the point to play a video, so there really isn't much to share. But, in general all you need to do is change the LG custom object html tag to a video tag and modify the Javascript to change the "src" attribute of that tag. After that, you would need to mess a bit with the player controls to get them to work.

    -Dan
     

Share This Page