[RELEASE] Norwegian NRK Web-TV (Video) Plugin

  Thread Rating:
  • 7 Votes - 4.29 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
VictorV Offline
Senior Member
Posts: 124
Joined: May 2009
Reputation: 1
Location: Norway
Thumbs Up  [RELEASE] Norwegian NRK Web-TV (Video) Plugin
Post: #1
I've seen some request for å NRK plugin, so i decided making one. Then I could both learn some myself, and make something others might enjoy Smile

I've used quite a bit of time looking at the workings of the web-tv and finally made something i think should be slightly better than the previous scripts. No offence tho Smile
The plugin are not finished and there's a lot of work left, but this release will work pretty well.
I hope some of you will give it a try and give some feedback. What can be done to make it better? Something missing? Should I implement NRK web radio or should that be a stand-alone plugin?

Download:
http://prosjektet.net/xbmc/plugins/NRK_NETT_TV.7z


I know there are some issues with the setting, and that's really just me beeing lazy.
There are no thumbnails under "Sport" and "Nyheter" becouse I haven't figured out how to fetch them yet.
I'm also working on some illustration icons for the categories so we don't will se the standard folder icon everywhere.

If someone want to help out, that's always appriciated Smile
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #2
awesome!

now, if you could set the 'title' in the video info tag so they work in video library mode as well (that goes for you and ALL OTHER PLUGIN AUTHORS) that would be even better!
find quote
The-Boxhead Offline
Donor
Posts: 958
Joined: May 2005
Reputation: 17
Location: Norway
Post: #3
Exelent, been waiting for this and i like plugins much more than
scripts since they blend better with the skins Wink

However i'm unable to play anything, it looks up all catagories and list
sub containers but all content is listed up as 0.0kb and they dont play at all.

Is there anything with my system that prevents this ? im using linux, ubuntu interpid and latest bleeding edge from yesterday when i tested this.

Could you please specify wich xbmc version this plugin was tested with ?
find quote
teddy Offline
Junior Member
Posts: 24
Joined: May 2008
Reputation: 0
Post: #4
I have the same problem, I can play some of clips in the "Nyheter" section, but that's it.

Also running XBMC on Ubuntu.
find quote
VictorV Offline
Senior Member
Posts: 124
Joined: May 2009
Reputation: 1
Location: Norway
Post: #5
I have tested with Babylon 9.04.1 t3ch build for xbox
Have you tried to play a file from nrk directly?

mms://straumod.nrk.no/disk08/arven/2009-01-07/Arven_300_449515_20090107_223000.wmv

Ii seems like the built in DVDPlayer won't decode wmv9. It works with xbmc for xbox with mplayer, but not in windows build for me.
I'm working on integrating some other media from nrk's archive that will play on all platforms, bur it's a damn shame the program section won't work.
find quote
The-Boxhead Offline
Donor
Posts: 958
Joined: May 2005
Reputation: 17
Location: Norway
Post: #6
I have tried 10-15 random items from all the Nyheter,Sport and programmer category. none of them plays.

But that can be because im running bleeding edge xbmc with ubuntu.
find quote
The-Boxhead Offline
Donor
Posts: 958
Joined: May 2005
Reputation: 17
Location: Norway
Post: #7
Hmmm - still not getting this to work. Just wondered if anyone has this semi working or whatever. That is on linux...
find quote
klikkamongo Offline
Member
Posts: 72
Joined: Jun 2009
Reputation: 0
Post: #8
I have windows xp with Babylon - 9.04, I can browse all the folders, but nothing happens when I click the programs..
find quote
VictorV Offline
Senior Member
Posts: 124
Joined: May 2009
Reputation: 1
Location: Norway
Post: #9
I've made a lot of work in a new version of this plugin, and should be releasing it in a few days.

The problem with playing media from 'program' section on a windows/linux build, seems like lack of support within the dvdplayer. (wmv9/mms)
This means that xbox is the only supported platform for this section

I'm not sure exactly what causes the failure of playback in the playlists ('sport', 'news',++).
The stream is fetched through .../stream.ashx?id=<ID>
*<ID> - a generated number (autoincremented?) from the database.
The ashx acts like a handle to the media file on the server side.
Some times it works, some times it don't. When it don't it reaches EOF immediately after starting playback
I know the location of the media files, but I can't figure out a way to match the medias id or title against the path or file name.


I will post some more information about the problems, some logs, and my notes about the structure of the plugin and NRK's hosting when I'm done. Then maybe someone can helps us get some answers and/or solutions.


I've also made some new functionality, so there will bew some working section for windows and linux users Tongue
(This post was last modified: 2009-07-03 21:14 by VictorV.)
find quote
berland Offline
Donor
Posts: 51
Joined: Jan 2009
Reputation: 0
Post: #10
This is fantastic news, I have been close to starting something similar myself, but this looks way better.

I have a question. Would you care to release the code under the license "GPL v2 or later"? This will encourage contributions from others.

Also, it would be great if we could host this at
http://code.google.com/p/xbmc-addons/

(if you agree with my license suggestion).

I do not have write access here, but someone might help out?
find quote
berland Offline
Donor
Posts: 51
Joined: Jan 2009
Reputation: 0
Post: #11
For the record, I experience the same problems with playback. Playing the mms:-stream in the url above directly with mplayer works.

xbmc-svn-21138, Ubuntu 9.04 32-bit.
find quote
VictorV Offline
Senior Member
Posts: 124
Joined: May 2009
Reputation: 1
Location: Norway
Post: #12
Berland: I will release it under GPL 2, and yes we should get in a repository, but we probably should figure out some of the major issues first?

I had a look at the problem with the playlist videoes again, and I've made a quick and dirty plugin for browsing the raw html directories.

http://www.prosjektet.net/xbmc/plugins/N...browser.7z
This is just for testing purposes, so please don't comment the code Tongue

If you try this, you can see that videos from icanal's hosting will work, but don't videos from pd.nrk.no. This implies that the playlist videos that does work in my plugin is those who are redirected to icanal's hosting.
find quote
VictorV Offline
Senior Member
Posts: 124
Joined: May 2009
Reputation: 1
Location: Norway
Post: #13
Here are the main modules for the nrk plugin, so you can see the context:

http://prosjektet.net/xbmc/src/nrk.py.html
http://prosjektet.net/xbmc/src/conman.py.html

You can also download the source, so you can be able to test your selves. I haven't implemented this new api in a functional xbmc plugin yet, so it's a command line test.

Download source:
http://prosjektet.net/xbmc/src/nrk_api_alphabeta.7z

At this stage it wouln't be much changed for the users to see. I've created some thumbnails for the various themes (found at: http://prosjektet.net/xbmc/src/images/ ), added the live section, and there's the html browser used for testing. But I've completly re-written the backend. I've added functionality for search, subtitles and use of the nrk's api for getting path (it's just show-off)

Todos:
  • Find a solution for playback of playlist videos (high priority)
  • Add support for NRK podcasts and video podcasts (medium priority)
  • Add support for NRK web radio (low priority)
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #14
hi,

okay, i sort of have this working on linux, but it needs some work

1) it needs my libmms based input stream class - it's not clean enough to be commited just yet, but within a few days
2) it needs you to
1) replace mms with http in the program section urls
2) grab that http url
3) grab the first [ref1] in there
example output
Code:
[Reference]
Ref1=http://straumod.nrk.no/disk04/Br_drene_Dal/2004-03-23/Kringkastingsr_det_650_WM_20040323_133507.wmv?MSWMExt=.asf
Ref2=http://10.103.0.61:80/disk04/Br_drene_Dal/2004-03-23/Kringkastingsr_det_650_WM_20040323_133507.wmv?MSWMExt=.asf

4) replace the http in that url with mms
5) pass that url as the playback url to the player

with that done, i have perfect playback in xbmc for linux (and osx and windows)
find quote
VictorV Offline
Senior Member
Posts: 124
Joined: May 2009
Reputation: 1
Location: Norway
Post: #15
That's really great initiative, spiff. Gives me some new inspiration to spend more time time on this plugin.
Those steps you posted above should't require more than a few lines of python code and will be easy to implement
find quote
Post Reply