Audio codec image is not displayed ...

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Exclamation  Audio codec image is not displayed ...
Post: #1
Audio codec image is not displayed when I write following in MusicOSD.xml
<control type="image">
<description>Audio Codec Image</description>
<posx>1</posx>
<posy>1</posy>
<width>80</width>
<height>35</height>
<aspectratio align="right">keep</aspectratio>
<texture>$INFO[MusicPlayer.Codec,flagging/audio/,.png]</texture>
</control>
Same code displays images in confluence.
It displays codec image when I play some thing from internet through Music Add-on but not when I play anything from Music library.
I think, It has path problem , it works with absolute path but not with relative path.
here "flagging/audio/" is relative path from media directory.
All codec images are present in "media/flagging/audio/".

Please help.
Thanks for help in advance.
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #2
I prefixed the path with "special://skin/media/" like following and it worked Smile
<texture>$INFO[MusicPlayer.Codec,special://skin/media/flagging/audio/,.png]</texture>
find quote
pieh Offline
Team-Kodi Member
Posts: 672
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #3
could You add label control and check what it will display when codec image will be missing?
Code:
<control type="label">
  <description>Audio Codec Image</description>
  <posx>1</posx>
  <posy>1</posy>
  <width>400</width>
  <height>35</height>
  <label>$INFO[MusicPlayer.Codec,flagging/audio/,.png]</label>
</control>

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #4
Yes it is displaying: flagging/audio/MP3.png
for a mp3 song.
find quote