NRKTV.bundle icon indicating copy to clipboard operation
NRKTV.bundle copied to clipboard

Mobile issues

Open eithe opened this issue 12 years ago • 27 comments

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

  • Works on iphone and ipad
  • Works on ROKU
  • Does not work on OUYA (android)

eithe avatar May 31 '13 05:05 eithe

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

burnbay avatar May 31 '13 11:05 burnbay

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

eithe avatar May 31 '13 11:05 eithe

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

eithe avatar Nov 24 '13 21:11 eithe

Can you give it a try on Android now?

burnbay avatar Nov 26 '13 06:11 burnbay

Tried Roku and OUYA. Doesn't work

burnbay avatar Nov 26 '13 06:11 burnbay

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 avatar Nov 26 '13 08:11 eithe

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 avatar Nov 26 '13 11:11 eithe

@johnkors ?

eithe avatar Nov 26 '13 11:11 eithe

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 )

johnkors avatar Nov 26 '13 13:11 johnkors

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 [email protected]:

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

burnbay avatar Nov 26 '13 13:11 burnbay

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

eithe avatar Nov 26 '13 22:11 eithe

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

burnbay avatar Nov 26 '13 22:11 burnbay

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

http://tv.nrk.no/androidapp?url=<HDS-stream-URL-here>

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.

johnkors avatar Nov 27 '13 12:11 johnkors

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

eithe avatar Dec 13 '13 06:12 eithe

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.

jannyg avatar Jan 06 '14 11:01 jannyg

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).

eithe avatar Jan 06 '14 11:01 eithe

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?

jannyg avatar Jan 06 '14 12:01 jannyg

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 ...

meriko avatar Jan 22 '14 19:01 meriko

@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

eithe avatar Jan 28 '14 07:01 eithe

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

burnbay avatar Feb 12 '14 20:02 burnbay

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

eithe avatar Feb 12 '14 20:02 eithe

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 [email protected] 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

burnbay avatar Feb 12 '14 20:02 burnbay

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

eithe avatar Feb 24 '14 19:02 eithe

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

krsandvik avatar Feb 26 '14 14:02 krsandvik

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 [email protected] 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 avatar Feb 26 '14 18:02 burnbay

@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? ;)

burnbay avatar Nov 21 '14 14:11 burnbay

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 :/

johnkors avatar Nov 21 '14 20:11 johnkors