Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

How to Stretch Vlc Control? #118

Closed
soapgu opened this issue Nov 11, 2015 · 4 comments
Closed

How to Stretch Vlc Control? #118

soapgu opened this issue Nov 11, 2015 · 4 comments

Comments

@soapgu
Copy link

soapgu commented Nov 11, 2015

Just like image control In WPF. it can fill set Stretch property stretched to fill the destination rectangle.
I do not want display black background in the control.

@devkanro
Copy link

Ummm...Maybe you can try my project http://github.com/higankanshi/xZune.Vlc
They have native WPF control, not a Win32Host.
So it has no airspace issue.

@soapgu
Copy link
Author

soapgu commented Nov 13, 2015

Thanks higankanshi.
I will try to use your project later.

@jeremyVignelles
Copy link
Collaborator

This is probably something that is in the scope of #365 . We should probably provide an ImageSource that is separate from the "default" component.

@jeremyVignelles
Copy link
Collaborator

As of 3.0.0-develop250, the WPF control has been rewritten.
The behavior of the component is to "contain" the video in a ViewBox, so that the image is not stretched.

If you want to stretch, you can probably use an Image control, create manually a VideoSourceProvider and use its VideoSource in you Image control. Then, stretch the image as you need.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants