eithe / NRKTV.bundle

Plex-tillegg for NRKs innhold på nett
https://forums.plex.tv/discussion/47234/the-new-nrk-site/p1
25 stars 10 forks source link

Mobile issues #7

Open eithe opened 11 years ago

eithe commented 11 years ago

Seems to be some issues on Android, possibly also IOS. Must look into ...

burnbay commented 11 years ago

Works on my iphone and iPad. Haven't tried android.

eithe commented 11 years ago

Ok, good to know. Mixed results on Android here, but haven't looked into why yet.

eithe commented 10 years ago

Just a note: Current live tv does not work on Android (latest plexpass) (PS: works on Plex/Web and PHT)

burnbay commented 10 years ago

Can you give it a try on Android now?

burnbay commented 10 years ago

Tried Roku and OUYA. Doesn't work

eithe commented 10 years ago

Yeah, no go on Android either, but I'm at work so didnt look at logs etc. Anyway, I think we are on the right track with the way you did it now, really nice idea and code!

eithe commented 10 years ago

On Mac PHT and Android, http://v7.psapi.nrk.no/mediaelement/nrk1 gives mediaUrl http://nrk1us-f.akamaihd.net/z/nrk1us_0@102847/manifest.f4m?ma=on which only gives me 403 Forbidden whatever user-agent I try to set in my browser ..

2013-11-26 12:11:21,256 (10b551000) : DEBUG (networking:172) - Requesting 'http://v7.psapi.nrk.no/mediaelement/nrk1' 2013-11-26 12:11:21,583 (10b551000) : DEBUG (ServiceCode:91) - CLIENT: Plex Home Theater, USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10 2013-11-26 12:11:21,613 (10b551000) : DEBUG (networking:172) - Requesting 'http://nrk1us-f.akamaihd.net/z/nrk1us_0@102847/manifest.f4m?ma=on' 2013-11-26 12:11:21,698 (10b551000) : ERROR (networking:219) - Error opening URL 'http://nrk1us-f.akamaihd.net/z/nrk1us_0@102847/manifest.f4m?ma=on' ... HTTPError: HTTP Error 403: Forbidden

eithe commented 10 years ago

@johnkors ?

johnkors commented 10 years ago

When asking mediaelement/nrk, you are asking getting the live stream in return and I think there was work done on adding some sort of encryption to it earlier this fall due to some external demands (not NRK). Have you tried an ondemand program? Does that work?

For instance: http://v7.psapi.nrk.no/mediaelement/koid28006011 (related to this program: http://tv.nrk.no/serie/irak-krigen/koid28006011/sesong-1/episode-3 )

burnbay commented 10 years ago

The live stream is working for iphone/ipad. We're only getting errors using other clients (Roku, OUYA, android, Plex Home Theater). Ondemand programs work (at least on the clients I have tested). Ooh! the web client doesn't work, but that's a plugin issue I think.

Erling

On Tue, Nov 26, 2013 at 2:30 PM, John Korsnes notifications@github.comwrote:

When asking mediaelement/nrk, you are asking getting the live stream in return and I think there was work done on adding some sort of encryption to it earlier this fall due to some external demands (not NRK). Have you tried an ondemand program? Does that work?

For instance: http://v7.psapi.nrk.no/mediaelement/koid28006011 (related to this program: http://tv.nrk.no/serie/irak-krigen/koid28006011/sesong-1/episode-3 )

— Reply to this email directly or view it on GitHubhttps://github.com/eithe/NRKTV.bundle/issues/7#issuecomment-29291951 .

Erling Brandvik +4790851110

eithe commented 10 years ago

If you by web client mean the Plex/Web client, I do believe it worked before the latest commit.

burnbay commented 10 years ago

OK, I'll have a look.

tirsdag 26. november 2013 skrev Eirik H følgende:

If you by web client mean the Plex/Web client, I do believe it worked before the latest commit.

— Reply to this email directly or view it on GitHubhttps://github.com/eithe/NRKTV.bundle/issues/7#issuecomment-29339329 .

Erling Brandvik +4790851110

johnkors commented 10 years ago

For Android, the API returns a mediaURL that redirects the user to NRKs native apps on Android.

http://tv.nrk.no/androidapp?url=

If you're targeting higher versions of Android, I think they might support HLS as well - so you might get it to work by using a user-agent generating HLS-streams instead?

As we don't support any of the other clients you just listed, I'm not sure what the API returns nor what kind of streams they are able to play.

eithe commented 10 years ago

Note to self: Do not send android client user agent to NRK when Android client, let Plex handle some transcoding instead.

jannyg commented 10 years ago

I can't get the latest revision to play anything from the library on my Minix X5 with Android 4.2.2. I just get the error "Can't play video" and i can't see anything relevant in the plugin log so I guess the Plex client don't like the videoformat or something.

eithe commented 10 years ago

Yeah, no go on Android yet, @thinktwo, hence this issue. Indeed probably an issue with the video format. Also, for Android NRK actually redirects to the NRK app so we need to send a different user agent than Android and make Plex Media Server transcode it I believe (or send a user agent to NRK that generates HLS streams and see if Android will play it).

jannyg commented 10 years ago

Just wanted to confirm the issue as there seemed to be some unclarity :) I'm new to Plex, but the NRK plugin for XBMC worked flawlessy on the same device (without NRK native app). I know there's no transcoding done there, but maybe it could be useful to check how they solved it anyway?

meriko commented 10 years ago

The Android client requires that "video_resolution" is set in the returned MediaObject(even though it is HLS, any resolution will do), see https://github.com/plexinc-plugins/ViasatPlay.bundle/pull/6

This might not be the only issue though ...

eithe commented 10 years ago

@meriko Do you see any obvious faults in the way @burnbay has tried to implement your solution both with regards to video_resolution and the https issue on various clients? https://github.com/eithe/NRKTV.bundle/commit/c41bc6655302b942a93e5595270d8b9c7e686681#commitcomment-5196028

burnbay commented 10 years ago

Got it working on iOS, PHT (Windows), Roku and OUYA. Maybe we can close this one now. Feel free to test

eithe commented 10 years ago

I've also asked the community to test on as many setups as they can: https://forums.plex.tv/index.php/topic/47234-the-new-nrk-site/page-2#entry578126

burnbay commented 10 years ago

OK, good!

I'm not committing anything more until we get it more tested.

On Wed, Feb 12, 2014 at 9:48 PM, Eirik H notifications@github.com wrote:

I've also asked the community to test on as many setups as they can: https://forums.plex.tv/index.php/topic/47234-the-new-nrk-site/page-2#entry578126

Reply to this email directly or view it on GitHubhttps://github.com/eithe/NRKTV.bundle/issues/7#issuecomment-34915964 .

Erling Brandvik +4790851110

eithe commented 10 years ago

Closing, it really does seem to work now, good job, @burnbay!

krsandvik commented 10 years ago

When I try to watch live tv the stream stops after 30 - 40 seconds. I am using a nexus 5 same problem when I cast to chromecast

burnbay commented 10 years ago

Same here on OUYA the first time I start a live stream. The second and third time everything is OK. Noticed a bug: The "progress wheel" keeps spinning after the stream has started.

Den onsdag 26. februar 2014 skrev krsandvik notifications@github.com følgende:

When I try to watch live tv the stream stops after 30 - 40 seconds. I am using a nexus 5 same problem when I cast to chromecast

Reply to this email directly or view it on GitHubhttps://github.com/eithe/NRKTV.bundle/issues/7#issuecomment-36129372 .

Erling Brandvik +4790851110

burnbay commented 9 years ago

@johnkors Hei. Ser det har skjedd spennende ting på API-fronten (http://v8.psapi.nrk.no/), men ser man må ha en key for å kunne aksessere. Har dere diskutert om å gi tilgang til eksterne? Spesielt til ihuga PLEX plugin-utviklere? ;)

johnkors commented 9 years ago

Det er ikke så mye nytt å melde dessverre, dette er endepunkter som fantes i v7 også, men er bak API-nøkler (fortsatt). Jeg kan videreformidle ønsket om aksess, men kan ikke love noe dessverre :/