Giter VIP home page Giter VIP logo

Comments (8)

SuRGeoNix avatar SuRGeoNix commented on June 2, 2024

@Agostino44 Can you create a simplified demo so I can see what you are trying to do? I'm not sure if you want to mirror or just transfer the content. Also I'm not sure if you want to mirror the players (surfaces) the overlay content or both. Did you try to use the replica players instead as it would be better for performance if you want to mirror the players/surfaces?

from flyleaf.

Agostino44 avatar Agostino44 commented on June 2, 2024

@Agostino44 Can you create a simplified demo so I can see what you are trying to do?

I'll try if I can

I'm not sure if you want to mirror or just transfer the content. Also I'm not sure if you want to mirror the players (surfaces) the overlay content or both.

I want to mirror both.

Did you try to use the replica players instead as it would be better for performance if you want to mirror the players/surfaces?

I don't know how Replica Players works and I haven't found any documentation that explains it

from flyleaf.

SuRGeoNix avatar SuRGeoNix commented on June 2, 2024

@Agostino44 Indeed, Wiki and Samples need more work. You can find an interactive zoom and replica player for WPF under Tests/WpfFlyleafHost and in App.xaml use "OverlayStandAlone.xaml" as StartupUri. It sets the whole window as Surface with this:-

 FlyleafHost = new FlyleafHost(this) { ... Player = Player }

and passes the same Player to the replica FlyleafHost with this xaml:-

<fl:FlyleafHost x:Name="FlyleafHostReplica" ReplicaPlayer="{Binding Player}" ...

So generally, to replicate another player within a FlyleafHost instead of setting the Player you need to set the ReplicaPlayer.

If you just want to transfer to another window and not mirror you should consider Swapping the Player and the content.

from flyleaf.

Agostino44 avatar Agostino44 commented on June 2, 2024

@Agostino44 Indeed, Wiki and Samples need more work. You can find an interactive zoom and replica player for WPF under Tests/WpfFlyleafHost and in App.xaml use "OverlayStandAlone.xaml" as StartupUri. It sets the whole window as Surface with this:-

 FlyleafHost = new FlyleafHost(this) { ... Player = Player }

and passes the same Player to the replica FlyleafHost with this xaml:-

<fl:FlyleafHost x:Name="FlyleafHostReplica" ReplicaPlayer="{Binding Player}" ...

So generally, to replicate another player within a FlyleafHost instead of setting the Player you need to set the ReplicaPlayer.

If you just want to transfer to another window and not mirror you should consider Swapping the Player and the content.

Zoom on ReplicaPlayer not working?
If I set a zoom on original Player I don't see it on ReplicaPlayer.

from flyleaf.

SuRGeoNix avatar SuRGeoNix commented on June 2, 2024

They use different configuration (to be able to implement interactive zoom for example), so you will need to "sync" the rendering configuration between them.

from flyleaf.

Agostino44 avatar Agostino44 commented on June 2, 2024

I can't set the zoom on the ReplicaPlayer.

player_host.ReplicaPlayer.SetZoom(zoom);

it has no effect.
any suggestions on how to apply a zoom on the replicaplayer?

Thanks.

from flyleaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.