Video Playback With Image Overlay, Can it be done?
#16
shouldnt be. system 1 means that those coordinates are the corner of your dialog. all control positions are then relative to this position.

** edit **
it may be... all xml tags should be lower case... im not sure how it defaults if it cant find the coordinates.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#17
changed all to lowercase but no difference... Im a total newbie when it comes to this so im stuck now... What I got so far was straight from the manual..
Reply
#18
Ok I got this working with a little thinking Huh
First off you had your code wrong
second it seems that any custom xml needs to have the word custom at the start of its filename to work Eek this I did not know Sad

Anyway copy the text in the box below and save it as somthing like custom_logooverlay.xml then put it in your skin dir if your using pm3 you might want to rename your texture to somthing else because logo.png is allready take by the main page logo. Make sure you change the window ID or call it with 1112
But in the end you will get this
Image

and here is the dialog code
Code:
<window>

  <id>1112</id>
  <type>dialog</type>
  <defaultcontrol>2</defaultcontrol>
  <allowoverlay>no</allowoverlay>

   <controls>
    <control>
          <description>logo overlay</description>
          <type>image</type>
          <id>2</id>
          <posx>100</posx>
          <posy>50</posy>
          <width>200</width>
          <height>200</height>
          <texture>logo.png</texture>
          <aspectratio>keep</aspectratio>
    </control>
  </controls>
</window>
Reply
#19
Thanks exactly what I was looking for... Will test it 2mw as it is late now.
Reply
#20
This rather intrigued me, so I gave it a go. Came up with a different method than Jezz. Don't know if my method is a step backward, though it's a different option.

For this method you need to add the below code to the VideoFullScreen.xml.

Code:
<control>
      <description>logo overlay</description>
      <type>image</type>
      <id>800</id>
      <posx>30</posx>
      <posy>60</posy>      
      <width>200</width>
      <height>50</height>
      <visible>Player.HasMedia + !Skin.HasSetting(logo)</visible>
      <colordiffuse>FFFFFFFF</colordiffuse>
      <colorkey>FFFF00FF</colorkey>
      <texture>logo.png</texture>
      <info>VideoPlayer.Title</info>
      <aspectratio>keep</aspectratio>
</control>
  
<control>
    <description>logo overlay on/off</description>
    <id>801</id>
    <type>button</type>
    <label>logo</label>    
    <visible>false</visible>
    <posx>30</posx>
    <posy>60</posy>
    <onclick>Skin.ToggleSetting(logo)</onclick>
    <width>1</width>
    <height>1</height>
    <texture>-</texture>
</control>

The below code is for your Keymap.xml. Add to the <remote> section for <FullscreenVideo>. Please note that I can only assume this is the area. I could not test it since i don't have a remote control for XBMC. It should toggle on/off pressing five, though I cant guarantee it.

Code:
<five>XBMC.Skin.ToggleSetting(logo)</five>
Reply
#21
Actually xboxbox451 yours is probably a step forward but you left in stuff that dosn't need to be in there

<visible>Player.HasMedia + !Skin.HasSetting(logo)</visible> dosn't need Player.hasmedia because the Fullscreen video xml only shows while its active and playing a video
<colordiffuse>FFFFFFFF</colordiffuse> this is just a null setting because your not defusing anything
<colorkey>FFFF00FF</colorkey> Just dosn't need to be in
<info>VideoPlayer.Title</info> Its a image control and your trying to put a text value into it

Also your adding of a button control to the window just does nothing because non of the controls will let you get to it unless you change the default controls or the onup ondown etc bits

I's just add this to the bottom of the VideoFullScreen.xml just above </controls>
Code:
    <control>
          <description>logo overlay</description>
          <type>image</type>
          <id>2</id>
          <posx>100</posx>
          <posy>50</posy>
          <width>200</width>
          <height>200</height>
          <texture>logo.png</texture>
          <aspectratio>keep</aspectratio>
          <visible>Skin.HasSetting(logo)</visible>
    </control>
Reply
#22
Jezz_X Wrote:Actually xboxbox451 yours is probably a step forward but you left in stuff that dosn't need to be in there

<colordiffuse>FFFFFFFF</colordiffuse> this is just a null setting because your not defusing anything
<colorkey>FFFF00FF</colorkey> Just doesn't need to be in
<info>VideoPlayer.Title</info> Its a image control and your trying to put a text value into it
That was from the original code from the first post. I wasn't quite sure why that was added either, though I left it in case the original poster wanted for something else.

Jezz_X Wrote:Also your adding of a button control to the window just does nothing because non of the controls will let you get to it unless you change the default controls or the onup ondown etc bits
I added that control so you can toggle the logo on or off , which can be called upon by adding the code I listed for the Keymap.xml.

I'm not sure if your modified code can be toggled on/off. If it can, then that was redundant on my part.

Jezz_X Wrote:<visible>Player.HasMedia + !Skin.HasSetting(logo)</visible>
This was added to work with the toggle on/off function, though might redundant, since I didnt test without the code.
Reply
#23
So how about adding a custom image overlay like this to the fullscreen music visualization?
Reply
#24
Morning guys, thanks for the replies.

The original code I posted was what I thought would work, this is the first time I done anything like this so I just went to the XBMC manual and tried what I thought I needed to do... Was abit wrong hence the extra coding I didnt need.

Anyways I tried Jezz_X original code he posted and it worked a treat. Then came online to post and I was surprised to see some more help and a some new code. So a even bigger Thank You. Going to test the new code now.
Reply
#25
Ok so tested the new piece of code and couldnt get it to work :S

Iv added:
Code:
    <control>
          <description>logo overlay</description>
          <type>image</type>
          <id>2</id>
          <posx>100</posx>
          <posy>50</posy>
          <width>200</width>
          <height>50</height>
          <texture>tv.png</texture>
          <aspectratio>keep</aspectratio>
          <visible>Skin.HasSetting(logo)</visible>
    </control>
to VideoFullScreen.xml

and added
Code:
<five>XBMC.Skin.ToggleSetting(logo)</five>
Keymap.xml and uploaded restarted the xbox, loaded a video and pressed 5 on the remote but nothing happens.
Reply
#26
try just <five>Skin.ToggleSetting(logo)</five>
Reply
#27
Jezz_X Wrote:try just <five>Skin.ToggleSetting(logo)</five>

No joy Oo Still nothing...
Reply
#28
It works for me if I add it to the full-screen visualization.
http://www.youtube.com/watch?v=MI74-2Q4ifg
Reply
#29
Sorry...new video link:
http://www.youtube.com/watch?v=xK-pelKClZ4
Reply
#30
EricJD Wrote:Sorry...new video link:
http://www.youtube.com/watch?v=xK-pelKClZ4
Very nice. I see you added a fade in/out effect. Cool Nod .

Btw, can you list the code you used so others can use it?
Reply

Logout Mark Read Team Forum Stats Members Help
Video Playback With Image Overlay, Can it be done?0