Jump to content
LaunchBox Community Forums

BigBox VLC Display Issue w/XAML Example


throwingmuse

Recommended Posts

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 by throwingmuse
Link to comment
Share on other sites

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 by throwingmuse
Link to comment
Share on other sites

  • throwingmuse changed the title to BigBox VLC Display Issue w/XAML Example

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...