播放通知中的小视频 [英] play a small video in notification
本文介绍了播放通知中的小视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在通知中播放小视频?我在网上搜索,似乎没有任何解决方案.我可以在通知中显示图片,甚至播放音乐,但不能播放视频.有什么主意吗?
Is there any way to play a small video in notification? I searched in web and appears there isn't any solution . I can show picture or even play music in notification but not video. any idea?
推荐答案
有没有办法在通知中播放小视频?
Is there any way to play a small video in notification?
不. SurfaceView
和TextureView
都不是RemoteViews
的合格窗口小部件,更不用说在它们之上分层的内容了(例如,VideoView
).
No. Neither SurfaceView
nor TextureView
are eligible widgets for a RemoteViews
, let alone things layered on top of them (e.g., VideoView
).
这篇关于播放通知中的小视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文