Video always playing in background, how?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
millhome Offline
Junior Member
Posts: 5
Joined: Feb 2014
Reputation: 0
Post: #1
Hi all,

I have first used Confluence and now switched to Metropolis which is a great skin.

There is one feature that I am missing:

With Confluence installed, I could play back a video, switch back to the menu and browse other videos, while the video kept playing in the background (to some degree faded through opacity/transparency setting).

Unfortunately that doesn't work in Metropolis: I can play back the video and browse the menu at the same time, too. But, I cannot see the video in the back while browsing the menus (instead there is standard backdrop image of Metropolis), it would be nice to have the video always in semi-transparency in the back (as in Confluence).

I was thinking I could maybe delete the standard backdrop image from Metropolis settings (Home options), but for some reason I wasn't able to delete it.

Does anybody know how to adapt the skin so that video keeps playing in the background even while searching the menus?

Regards,
Stefan
find quote
jingai Offline
Skilled Skinner
Posts: 1,060
Joined: Mar 2010
Reputation: 12
Post: #2
In Metropolis, the currently-playing video will only show in the fan art window on the Home screen in the default Home layout. This is just by design -- the main background fan art is an integral part of Metropolis and will never be covered up.
find quote
millhome Offline
Junior Member
Posts: 5
Joined: Feb 2014
Reputation: 0
Post: #3
thank you for your answer, yes, I have seen the video as background fan art on the Home screen with the menus on both sides.

Is there any way to change that designed behavior, by changing some transparency setting in some skin.xml e.g.? I mean, there should be some way that it works, sometimes I can see movie covers as semi-transparent in the main background fan art when browsing a video repository.
find quote
jingai Offline
Skilled Skinner
Posts: 1,060
Joined: Mar 2010
Reputation: 12
Post: #4
You could change it if you edited the skin's XML by hand of course, but there is currently no built-in way to make the video display as the background.
find quote
millhome Offline
Junior Member
Posts: 5
Joined: Feb 2014
Reputation: 0
Post: #5
That's good news that it's possible to change that behavior through XML, can you actually point me to some configuration file in particular? Thanks!
find quote
jingai Offline
Skilled Skinner
Posts: 1,060
Joined: Mar 2010
Reputation: 12
Post: #6
It's not as simple as a configuration option. I'm kind of dancing around giving you a direct answer because my time is limited at the moment and what little time I do have needs to be spent on the existing issues to get the next release out. Telling you how to do this would equal doing the actual work to make it happen Wink

Someone else might be able to make the modifications for you, though.
find quote
millhome Offline
Junior Member
Posts: 5
Joined: Feb 2014
Reputation: 0
Post: #7
I already noticed you were evading a direct answer ; ) Maybe this feature could be an option for some future release as I believe it's comfortable to watch the video in background while looking for other video episodes? : )
find quote
jingai Offline
Skilled Skinner
Posts: 1,060
Joined: Mar 2010
Reputation: 12
Post: #8
Feel free to submit a feature request on GitHub for it.
find quote
millhome Offline
Junior Member
Posts: 5
Joined: Feb 2014
Reputation: 0
Post: #9
ok, thanks, keep up the good work!
find quote
DProudmoore Offline
Junior Member
Posts: 9
Joined: Aug 2012
Reputation: 0
Post: #10
I made this modification in my version of Metropolis, so that the video will play and also be diffused by the background when browsing menus etc.

In the includes.xml I have
Code:
    <include name="Background_Common">
        <include>Dimensions_Fullscreen</include>
        <include>Animation_CommonFade</include>
        <include>Animation_FadedByMenu</include>
        <fadetime>200</fadetime>
    </include>
    <include name="Background_Video">
        <include>Background_Common</include>
        <visible>Player.HasVideo + Window.IsActive(home) + Skin.HasSetting(Home3)</visible>
    </include>
    <include name="Faint_Background_Video">
        <include>Background_Common</include>
        <visible>Player.HasVideo + [Window.IsActive(programs) | Window.IsActive(pictures) | Window.IsActive(filemanager) | Window.IsActive(settings) | Window.IsActive(music) | Window.IsActive(musiclibrary) | Window.IsActive(video) | Window.IsActive(videolibrary) | Window.IsActive(systeminfo) | Window.IsActive(skinsettings) | Window.IsActive(picturessettings) | Window.IsActive(programssettings) | Window.IsActive(weathersettings) | Window.IsActive(musicsettings) | Window.IsActive(systemsettings) | Window.IsActive(videosettings)]</visible>
    </include>
    <include name="No_Background_Video">
        <visible>![Player.HasVideo + [[Window.IsActive(home) + Skin.HasSetting(Home3)] | Window.IsActive(programs) | Window.IsActive(pictures) | Window.IsActive(filemanager) | Window.IsActive(settings) | Window.IsActive(music) | Window.IsActive(musiclibrary) | Window.IsActive(video) | Window.IsActive(videolibrary) | Window.IsActive(systeminfo) | Window.IsActive(skinsettings) | Window.IsActive(picturessettings) | Window.IsActive(programssettings) | Window.IsActive(weathersettings) | Window.IsActive(musicsettings) | Window.IsActive(systemsettings) | Window.IsActive(videosettings)]]</visible>
    </include>
    <!-- Global objects -->
    <include name="Global_Background">
        <!-- No Background Video -->
        <control type="image">
            <include>Dimensions_Fullscreen</include>
            <include>No_Background_Video</include>
            <texture background="true" fallback="background.png">$INFO[Skin.String(CustomBackground)]</texture>
            <colordiffuse>BackgroundColor</colordiffuse>
        </control>
        <!-- Background Video -->
        <control type="videowindow">
            <include>Background_Video</include>
        </control>
        <control type="image">
            <include>Background_Video</include>
            <texture fallback="background.png" diffuse="diffuse_fanart.png">$INFO[Skin.String(CustomBackground)]</texture>
            <colordiffuse>Home2FanartDiffuse</colordiffuse>
        </control>
        <control type="image">
            <include>Background_Video</include>
            <texture diffuse="diffuse_invert.png" fallback="background.png">$INFO[Skin.String(CustomBackground)]</texture>
        </control>
        <!-- Faint Background Video -->
        <control type="videowindow">
            <include>Faint_Background_Video</include>
        </control>
        <control type="image">
            <include>Faint_Background_Video</include>
            <texture fallback="background.png" diffuse="diffuse_fanart.png">$INFO[Skin.String(CustomBackground)]</texture>
            <colordiffuse>VideoDiffuse</colordiffuse>
        </control>
        <control type="image">
            <include>Faint_Background_Video</include>
            <texture diffuse="diffuse_invert.png" fallback="background.png">$INFO[Skin.String(CustomBackground)]</texture>
        </control>
    </include>

And in my home for example, which is based on MacGuyver's horizontal home menu I have
Code:
        <!-- Main menu background -->
        <control type="image">
            <include>Dimensions_Fullscreen</include>
            <include>Animation_CommonFade</include>
            <include>Animation_FadedByMenu</include>
            <fadetime>200</fadetime>
            <texture background="true" diffuse="diffuse_fanart.png">$INFO[Container(9000).ListItem.Icon]</texture>
            <colordiffuse>Home2FanartDiffuse</colordiffuse>
            <visible>!Player.HasVideo</visible>
        </control>

The other thing I had to do was add the visibility of background fanart to also be conditional on !Player.HasVideo
find quote
DProudmoore Offline
Junior Member
Posts: 9
Joined: Aug 2012
Reputation: 0
Post: #11
Oh, this is the diffuse_invert.png that's mentioned in that code:
[Image: UEaui9P.png]


And an example of what it looks like:
[Image: 87xGCML.jpg]
find quote
MacGyver Offline
Fan
Posts: 468
Joined: Jan 2007
Reputation: 2
Location: Weilerbach Germany
Post: #12
Looks good. I wish you had modified a newer version of include_home3, like the one from "consolidated-home" or "personal". The one you used was from an early test build, that's why it doesn't match well.
The newer version looks like this.
[Image: attachment.php?aid=300]
Attached File(s) Thumbnail(s)
   

Using a 2820FYKH0 Intel NUC, a Revo 1600, and two Foxconn NT-330i - All running OpenELEC. :)
(This post was last modified: 2014-04-07 00:51 by MacGyver.)
find quote