【问题标题】:Video doesnot show correctly视频无法正确显示
【发布时间】:2017-03-02 21:15:42
【问题描述】:

我正在使用 rox videoView 在 Xamarin 上显示视频。

我的 XAML 内容是

<Grid Grid.Row="0">
  <rox:VideoView AutoPlay="True"
                  LoopPlay="True"
                  ShowController="True"
                  Source="http://fightathlete.com.rose.arvixe.com//Upload/Late%20For%20Work.mp4" />
</Grid>

这会加载视频并完美运行,但不显示任何内容。我完美地听了音频。这有什么问题?

【问题讨论】:

    标签: xaml xamarin xamarin.forms


    【解决方案1】:

    试着给你的Grid一些WidthHeight

    例如:

    <Grid>
         <Grid.ColumnDefinitions>
             <ColumnDefinition Width="*" />
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
             <RowDefinition Height="*" />
         </Grid.RowDefinitions>
        <rox:VideoView AutoPlay="True"
                      LoopPlay="True"
                      ShowController="True" Source="http://fightathlete.com.rose.arvixe.com//Upload/Late%20For%20Work.mp4" />
    </Grid>
    

    【讨论】:

      猜你喜欢
      • 2014-12-08
      • 1970-01-01
      • 2016-05-26
      • 2019-01-20
      • 1970-01-01
      • 1970-01-01
      • 2012-12-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多