NRK Browser (2 Viewers)

Vattenmelon

Portal Pro
June 1, 2007
159
22
Home Country
Norway Norway
I'm not sure. I just doesn't hope NRK has changed something in the website. There's no flash support in the last version I uploaded, but Wallander is .vmw. Are you located in Norway? Wallander is blocked from outside Norway. But if the "unknown clip" happens for everything you try, there is problably some other problem.
 

Vattenmelon

Portal Pro
June 1, 2007
159
22
Home Country
Norway Norway
You could try this version:
View attachment 24162

To get the clips in Natur and Super to play, you would need to have the mplayerplugin installed. I have hardcoded it to use it.. Should probably be a configuration setting. But would be nice the see if the "unknown clip" error is fixed.
 

paalkr

Portal Pro
June 30, 2008
145
20
Home Country
Norway Norway
Hi!

Yes, I'm located in Norway, and I have used the plugin with success before. Below is a snippet form Mediaportal.log, to me it looks like it's the gif (see text in bold) file that is reported at a unknown clip type, but I may bee wrong. Thanks for helping. For some reason NRK Browser tries to play a gif. file.

2008-08-10 10:54:41.632896 [Info.][MPMain]: FetchUrl(String): NRK Nett-TV - hastighetsmåling
2008-08-10 10:54:42.903896 [Info.][MPMain]: FetchUrl(String): NRK Nett-TV - hastighetsmåling
2008-08-10 10:54:44.372896 [Debug][MPMain]: GetClipUrl(Clip): (Clip) Antarktis - en eventyrlig reise: Episode 3
2008-08-10 10:54:44.373896 [Info.][MPMain]: FetchUrl(String): NRK Nett-TV - hastighetsmåling
2008-08-10 10:54:44.880896 [Info.][MPMain]: FetchUrl(String): http://www1.nrk.no/nett-tv/asx.aspx...431F0E27ED36D1EDA45B869EA8B771&browser=IE
2008-08-10 10:54:44.904896 [Info.][MPMain]: <asx version="3.0">
<param name="Encoding" value="utf-8" />
<abstract>NRK Nett-TV</abstract>
<title>NRK Nett-TV</title>
<author>NRK - Norsk Rikskringkasting</author>
<copyright> </copyright>
<entry>
<starttime value="162" />
<duration value="1738" />
<ref href="mms://straumOD.nrk.no/h/Antarktis___en_eventyrlig_reise/2008-04-02/Antarktis___en_eventyrlig_reise__3__02_04_08_1000_344469_20080402_195300.wmv" />
<ref href="http://fil.nrk.no/nett-tv/data/bilder/fullt.gif" />
<title>Antarktis - en eventyrlig reise: Episode 3</title>
<author>NRK - Norsk Rikskringkasting</author>
<abstract>Arne Nævra og Stein P. Aasheim fortsetter sin rundreise i Sørishavet.</abstract>
<copyright> </copyright>
</entry>
</asx>

2008-08-10 10:54:44.905896 [Info.][MPMain]: NrkBrowser PlayClip <ref href="http://fil.nrk.no/nett-tv/data/bilder/fullt.gif" />
2008-08-10 10:54:44.907896 [Info.][MPMain]: NrkBrowser Unknown clip type <ref href="http://fil.nrk.no/nett-tv/data/bilder/fullt.gif" />
2008-08-10 10:54:44.915896 [Debug][MPMain]: WindowManager: route NrkBrowser.NrkPlugin:40918376->MediaPortal.Dialogs.GUIDialogNotify:2016
2008-08-10 10:54:44.917896 [Debug][MPMain]: Window: MediaPortal.Dialogs.GUIDialogNotify init
2008-08-10 10:54:48.192896 [Debug][MPMain]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogNotify:2016->NrkBrowser.NrkPlugin:40918376
2008-08-10 10:54:48.193896 [Info.][MPMain]: No translation found for id 41018376

Regards,
PK

You could try this version:
View attachment 24162

To get the clips in Natur and Super to play, you would need to have the mplayerplugin installed. I have hardcoded it to use it.. Should probably be a configuration setting. But would be nice the see if the "unknown clip" error is fixed.

Hi!

Where do I get the mplayerplugin?

Regards,
PK
 

paalkr

Portal Pro
June 30, 2008
145
20
Home Country
Norway Norway
MEDIAPORTAL - free MediaCenter HTPC Software - My MPlayer , but it is only needed if you access the clips under "Natur" and "Super" I believe. I have no answer for the error in your log yet..will try to figure it out.

Thanks!

Strange if I should be the only one with this problem. I guess that the plugin works perfectly in your environment, and if it does, then there is not likely to be any errors in the plugin. I did a quick skim of the source code, and thinks I understand how it works. For some reason the GetClipUrl returns the gif file link.

protected void PlayClip(Clip item)
{
string url = _nrk.GetClipUrl(item);
Log.Info(PLUGIN_NAME + " PlayClip " + url);

PlayUrl(url, item.Title);

And because that string does not end with either .wma, .wmv or _h this control loop kicks in:

PlayListType type;
if (url.EndsWith(".wmv")) type = PlayListType.PLAYLIST_VIDEO_TEMP;
else if (url.EndsWith(".wma")) type = PlayListType.PLAYLIST_RADIO_STREAMS;
//FIXME: Hangs on some audio streams...
else if (url.EndsWith("_h")) type = PlayListType.PLAYLIST_VIDEO_TEMP; //det er en av live streamene
else
{
Log.Info(PLUGIN_NAME + " Unknown clip type " + url);
ShowError("Unknown clip type, please contact author");
return;
}

hens returning my on-screen error and log file statements.

The thing I cant figure out though is why the GetClipUrl fetches the link to the fullt.gif.

Regards,
PK
 

Vattenmelon

Portal Pro
June 1, 2007
159
22
Home Country
Norway Norway
Yep... don't know what has happened. But seems like the link to the "fullt.gif" file is new, and the method that returns the vidoeo-url know returned the url to the fullt.gif file. It didn't work for me either, but haven't used it for some days. But i believe the last upload should fix it. I will upload the source to.
 

paalkr

Portal Pro
June 30, 2008
145
20
Home Country
Norway Norway
Yep... don't know what has happened. But seems like the link to the "fullt.gif" file is new, and the method that returns the vidoeo-url know returned the url to the fullt.gif file. It didn't work for me either, but haven't used it for some days. But i believe the last upload should fix it. I will upload the source to.

Hi!

Thanks! It now works great!! Finally my last issue (so far) with MediaPortal is resolved, and I am one happy MP user. :D Thanks again for fixing this bug.

Regards,
PK
 

orz

Portal Member
March 22, 2008
11
7
Home Country
Norway Norway
Great work, Vattenmelon! I'm glad someone has taken the time to keep the plugin up to date :) I recently bought a Popcorn Hour A-100, and haven't really used Media Portal after that...

Have you committed the changes you have done to the subversion repository? Also, would you like me to publish a new version on the plugins page, or alternately remove the one I have there so that you can upload your versions directly?

Terje
 

Vattenmelon

Portal Pro
June 1, 2007
159
22
Home Country
Norway Norway
I haven't commited to subversion repository, I guess one needs an account to do that?, but I have uploaded the src files I have changed (see last post with both binary and source). Mostly quick-fixes i have applied. Perhaps a link to this tread from the plugin-page could be an idea? You can ofcourse just take the last binary from my post and upload it there if you want.
 

Users who are viewing this thread

Top Bottom