subtitle language infolabel in stereoscopic video
#1
When playing a 2D movie I am able to use:
PHP Code:
$INFO[VideoPlayer.SubtitlesLanguage

in VideoOSD.xml

When playing a 3D movie, this label will not display for me.

Is this a known issue?

Note that the problem also occurs when playing a 3D movie in 2D mode.

March 2nd nightly
Reply
#2
the rendermode of the video/GUI should not have any effect on the infolabels. This label contains the language of the currently applied subtitle, right? The according icon is showing up for me on Confluence in VideoFullscreen.xml
Reply
#3
Well, I use it as a suffix on the button in my OSD to enable/disable subtitles.

The code for the button:

PHP Code:
control type="togglebutton" id="603">
    <
width>317</width>
    <
label>$LOCALIZE[31321] ($INFO[VideoPlayer.SubtitlesLanguage])</label>
    <
altlabel>$LOCALIZE[13397]</altlabel>
    <
onback>SetFocus(599)</onback>
    <
onclick>Dialog.Close(VideoOSD,true)</onclick>
    <
onclick>ShowSubtitles</onclick>
    <
altclick>Dialog.Close(VideoOSD,true)</altclick>
    <
altclick>ShowSubtitles</altclick>
    <include>
dialog_ControlCommons</include>
    <
usealttexture>!VideoPlayer.SubtitlesEnabled</usealttexture>
    <
visible>VideoPlayer.HasSubtitles</visible>
</
control

When playing a 2D movie it will show up fine:
Image

However, on a 3D movie it will only show the brackets in between which the infolabel should appear:
Image
Reply
#4
thats wird i dont had that problem

Image



Code:
<control type="image">
                    <left>1820</left>
                    <top>1000</top>
                    <width>30</width>
                    <height>30</height>
                    <aspectratio>keep</aspectratio>
                    <fadetime>IconCrossfadeTime2</fadetime>
                    <colordiffuse>white2</colordiffuse>
                    <texture fallback="">special://skin/extras/BigIcons/Subtitle.png</texture>
                    <visible>!IsEmpty(VideoPlayer.SubtitlesLanguage)</visible>
                </control>
                <control type="image">
                    <left>1820</left>
                    <top>970</top>
                    <width>30</width>
                    <height>30</height>
                    <aspectratio>keep</aspectratio>
                    <fadetime>IconCrossfadeTime2</fadetime>
                    <colordiffuse>white2</colordiffuse>
                    <texture fallback="">special://skin/extras/BigIcons/Speaker.png</texture>
                    <visible>!IsEmpty(VideoPlayer.AudioLanguage)</visible>
                </control>                
                <control type="image">
                    <left>1860</left>
                    <top>970</top>
                    <width>30</width>
                    <height>30</height>
                    <aspectratio>keep</aspectratio>
                    <fadetime>IconCrossfadeTime2</fadetime>
                    <colordiffuse>white2</colordiffuse>
                    <texture fallback="">$INFO[VideoPlayer.AudioLanguage,flags/language/,.png]</texture>
                </control>
                <control type="image">
                    <left>1860</left>
                    <top>1000</top>
                    <width>30</width>
                    <height>30</height>
                    <aspectratio>keep</aspectratio>
                    <fadetime>IconCrossfadeTime2</fadetime>
                    <colordiffuse>white2</colordiffuse>
                    <animation effect="fade" time="200">VisibleChange</animation>
                    <texture fallback="">$INFO[VideoPlayer.SubtitlesLanguage,flags/language/,.png]</texture>
                </control>                            
        </control>




Image
Reply
#5
Jeroen, does the 3D movie have the language flag set for the subtitle? Or can you provide your current WIP state of the skin? Github doesn't seem to be up2date.
edit: just copied your code snippet into Confluence and it's working just fine
Reply
#6
(2014-03-05, 11:32)da-anda Wrote: Jeroen, does the 3D movie have the language flag set for the subtitle? Or can you provide your current WIP state of the skin? Github doesn't seem to be up2date.
edit: just copied your code snippet into Confluence and it's working just fine

lol, I didn't even think of that Tongue

Anyway, yes that was the problem. I'll go hide in a corner now
Reply

Logout Mark Read Team Forum Stats Members Help
subtitle language infolabel in stereoscopic video0