2015-01-11, 03:27
This is one of the last features I need for my new skin and I'm really struggling with it. My question is: When a video is playing and the video playback controls are showing I would like the controls to be hidden when the video itself is (left) clicked. Is this at all possible to do?
I would really appreciate your help! Thank you for reading.
Here is the code on Github if that helps: https://github.com/craig131/iOSinspired. It is mostly Confluence code right now, so if it works for Confluence it will definitely work for my skin.
----------------------------------------------
SOLUTION for anyone from the future who stumbles across this thread and wants to implement the same feature, here is an excellent solution as proposed by joe6pack below. (Thank you to everyone else who commented as well, you are all awesome!)
We are going to make a big invisible button that is only active when the playback controls are displayed. This button will only cover the area between the playback controls and will only be active when the controls are displayed. This may seem like a dumb solution, but the end result is actually excellent.
I am inserting this code into VideoOSD.xml but place it wherever you feel is appropriate:
That should do it!
I would really appreciate your help! Thank you for reading.
Here is the code on Github if that helps: https://github.com/craig131/iOSinspired. It is mostly Confluence code right now, so if it works for Confluence it will definitely work for my skin.
----------------------------------------------
SOLUTION for anyone from the future who stumbles across this thread and wants to implement the same feature, here is an excellent solution as proposed by joe6pack below. (Thank you to everyone else who commented as well, you are all awesome!)
We are going to make a big invisible button that is only active when the playback controls are displayed. This button will only cover the area between the playback controls and will only be active when the controls are displayed. This may seem like a dumb solution, but the end result is actually excellent.
I am inserting this code into VideoOSD.xml but place it wherever you feel is appropriate:
Code:
<control type="button" id="1">
<description>Invisible button so controls hide when video tapped</description>
<!-- Change the following positioning tags so button is in correct place, see last comment below for easy positioning -->
<posx>0</posx>
<posy>84</posy>
<!-- Set width and height to cover the correct amount of space -->
<width>1280</width>
<height>518</height>
<!-- If not placing this code in VideoOSD.xml, change visibility settings as appropriate -->
<visible>true</visible>
<!-- For easier positioning of button, delete the following 2 lines to temporarily make button appear as a blue box instead of transparent -->
<texturefocus></texturefocus>
<texturenofocus></texturenofocus>
<align>left</align>
<aligny>top</aligny>
<onclick>Dialog.Close(videoosd)</onclick>
</control>
That should do it!