颤动中的视频背景 [英] Video background in flutter

查看:56
本文介绍了颤动中的视频背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能一直在播放背景视频吗?

It is possible to have a background video playing all time in flutter?

我一直在寻找一些软件包,并试图使其运行,但我不知道如何.

i was looking for some packages and trying to make it function but i dont know how.

也许在视频中使用类似的东西.

maybe using something like this but with video.

decoration: new BoxDecoration(

    image: new DecorationImage(
    image: new AssetImage("images/f1.jpg"),
    fit: BoxFit.cover,
),),

在容器内.

推荐答案

尝试此包 https://pub.dartlang.org/packages/video_player 提供的示例非常简单.然后,您可以将视频窗口小部件放置在Stack布局内,并将其内容叠加显示-https://docs.flutter.io/flutter/widgets/Stack-class.html 您可以通过github链接通过电子邮件向创建者发送任何功能请求

Try this package https://pub.dartlang.org/packages/video_player the example provided is pretty straight forward to follow. You can then just place the video widget inside a Stack layout with your content displayed overlayed - https://docs.flutter.io/flutter/widgets/Stack-class.html Any feature request you can email the creator via the github link

这篇关于颤动中的视频背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆