Kodi Community Forum

Full Version: Audio codec image is not displayed ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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>
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>
Yes it is displaying: flagging/audio/MP3.png
for a mp3 song.