throwingmuse Posted February 13, 2019 Share Posted February 13, 2019 (edited) The following BigBox View code snippet plays platform video files correctly when the video player is set to Windows Media Player. When the video player is set to VLC, the audio of the video may be heard, but nothing is displayed. <Viewbox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="4" Grid.RowSpan="9" Stretch="UniformToFill" VerticalAlignment="Center" HorizontalAlignment="Center" Panel.ZIndex="2"> <transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding ImageVideoView}" IsContentVideo="true" /> </Viewbox> When the code snippet above is replaced with the following code, the video plays correctly when the video player is set to VLC. <transitions:TransitionPresenter Grid.Column="1" Grid.Row="0" TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding ImageVideoView}" IsContentVideo="true" Panel.ZIndex="2" /> Is there any known issue with the Viewbox object and its ability to span columns/rows while simultaneously stretching video content when using VLC? What else could be causing this display issue? I need to be able to dynamically resize the video in the platform view across the designated grid. Edited February 13, 2019 by throwingmuse Quote Link to comment Share on other sites More sharing options...
throwingmuse Posted February 13, 2019 Author Share Posted February 13, 2019 (edited) I was able to get the video to resize and play in VLC by replacing Viewbox with StackPanel and removing the Stretch, VerticalAlignment, and HorizontalAlignment parameters: <StackPanel Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="4" Grid.RowSpan="9" Panel.ZIndex="2"> <transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding ImageVideoView}" IsContentVideo="true" /> </StackPanel> No amount of fiddling with Viewbox parameters would work with VLC. Edited February 13, 2019 by throwingmuse Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.