Comments (8)
@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 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.
@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 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.
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.
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)
- about key redefine~ HOT 2
- Audio render should be on different thread HOT 4
- Open/OpenAsync with ClearScreenOnOpen still shows black frame HOT 3
- I would like to print a specific part of the image by blurring it, is this possible? HOT 1
- About ShowFramePrev HOT 2
- Overlaps and Refresh in SharedOverlay
- Stream synchronization issue HOT 7
- Possible handle leak when repeatedly create/play/stop/dispose flyleaf players HOT 13
- Open stream at current position HOT 6
- FlyleafSharedOverlay in wpf ViewBox HOT 3
- Renderer: Level/Gamma Support HOT 4
- crash by set curtime HOT 2
- SharedOverlay as the Visual of a VisualBrush
- Decoder (Subtitles): Bitmap Support HOT 1
- Issues of brightness control HOT 1
- [New feature requests]Added multi-threading support for M3U8 HOT 3
- Demuxer: Blu-Ray Support HOT 2
- Subtitles seeking support HOT 2
- Memory Leakage HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyleaf.