NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 17 18 19 20 21 … 93 Next »
PluginHelper.SetPlayerMetaData(Hashtable args) not working

 
  • 0 Vote(s) - 0 Average
PluginHelper.SetPlayerMetaData(Hashtable args) not working
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
2010-12-28, 07:38 AM
Hi,

it seems that I'm not able to set the video player's metadata with the new "PluginHelper.SetPlayerMetaData(Hashtable args)" method.

I guess that the hashtable should contain the corresponding values as used in the "Video.xml" skin ("@title", "@description" and "@coverArt"), but it does not show up in the OSD afterwards, no difference if I set the metadata before or after starting playback via "PluginHelper.PlayVideoFile(string filename)".

-alibert
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,169
Threads: 958
Joined: May 2006
#2
2010-12-28, 02:56 PM
It is simple like you suggest and I use it in Universe as follows but it must be called after PlayVideoFile() However it does not take in the first instance when the video starts

Code:
args = new Hashtable();
args["@title"] = item.properties["@shortDescription"].ToString();
args["@description"] = item.properties["@longDescription"].ToString();
PluginHelperFactory.GetPluginHelper().SetPlayerMetaData(args);

Martin
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#3
2010-12-28, 03:03 PM
Hi,

thanks for the reply. Does it mean that I simply have to set it twice to make it work?

-alibert
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,169
Threads: 958
Joined: May 2006
#4
2010-12-28, 03:07 PM
I only set it once, directly after PlayVideoFile()

Martin
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#5
2011-01-23, 10:37 AM
Hi,

it seems that after setting the metadata, it is directly overwritten by some default metadata that npvr has about the videofile.

sub, would it be possible to check whether the parameters like "@title", "@description" and "@coverArt" already exist in the hashtable, and don't overwrite them afterwards?

-alibert
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#6
2011-01-23, 04:40 PM
Did SetPlayerMetaData() before or after you started playback? It is supposed to be after your start playback.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#7
2011-01-23, 04:48 PM
Hi,

In both cases the mentioned default parameters got overwritten.

-alibert
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#8
2011-01-23, 04:57 PM
hmmm, it shouldnt do. Martin has been using it, and hasnt reported this problem.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#9
2011-01-23, 05:00 PM
Ah, I know why this is happening. I'll try to fix it and post a patch.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#10
2011-01-23, 05:01 PM
Probably they only get overwritten by the videoplayer if the played file contains embedded metadata?

-alibert
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  visible="!@hasImage & folder.jpg in Music not working Jaggy 0 1,267 2012-02-10, 10:29 PM
Last Post: Jaggy
  Numeric args[] mvallevand 14 4,036 2010-07-30, 04:55 AM
Last Post: whurlston
  anyone for working reminders? pBS 7 3,111 2009-07-03, 07:37 PM
Last Post: pBS
  PluginHelper.GetSkinRootDirectory(); returns "skin" and not "skin2" reven 6 2,626 2009-02-11, 03:15 PM
Last Post: sub
  pluginhelper.playvideofile(title,description,filen ame, float position) ?? reven 5 2,503 2009-01-12, 08:52 AM
Last Post: reven
  setPopup not working + minimize window question bgowland 5 2,416 2007-12-15, 01:15 AM
Last Post: whurlston
  Working with Character sets... zehd 7 2,739 2007-05-07, 11:56 AM
Last Post: MixMan
  IMenuTask and IEventNotification not working well together since 0.98 psycik 5 2,260 2006-10-01, 05:27 PM
Last Post: sub
  onkeydown = play, pluginHelper.IsPlaylistPaused() issue reven 2 1,826 2006-07-04, 09:28 PM
Last Post: reven
  Weather Plugin SI units not working Paul Gordash 6 2,398 2006-03-23, 02:09 AM
Last Post: fla

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode