简体   繁体   English

是否可以在Monocross Apps中播放GIF或FLASH格式的图像?

[英]Is it Possible to play GIF or FlASH format images in Monocross Apps?

I want to add play gif format to my monocross app. 我想将play gif格式添加到我的monocross应用程序中。 So that it can support in iphone android and windows phone, Could this be done, and how would I do it? 以便它可以在iPhone android和Windows Phone中支持,请问这能完成吗,我该怎么做?

I am new to Monocross Please help me. 我是Monocross的新手,请帮助我。

You can play Animated GIF images in Android using a VideoView - so by extension you can also do this in MonoDroid and in MonoCross. 您可以使用VideoView在Android中播放Animated GIF图像-因此,通过扩展,您也可以在MonoDroid和MonoCross中执行此操作。

You can't out-of-the-box decode and display GIFs in WindowsPhone - but you can use one of the imaging libraries from nuget. 您不能在WindowsPhone中开箱即用地解码和显示GIF,但可以使用nuget中的映像库之一。 I don't know if any of these work with animated GIFs - I would guess they don't. 我不知道这些动画是否可以与GIF动画配合使用-我猜想它们不能。


My gut reaction is to recommend you do not use Animated Gifs - sorry, but they're last century tech and should stay there http://www.lingscars.com/ ! 我的直觉反应是,建议您不要使用GIF动画-对不起,但他们上个世纪高科技和应该呆在那里http://www.lingscars.com/

Instead, look at using your own stop-frame animations, use short videos or look at coding the animations natively on each platform (I've seen some attempts at cross-platform animations in jscript - eg http://speckyboy.com/2012/05/09/jcsml-a-new-cross-platform-animation-library/ - would be cool to see a version in C# too!) 相反,您可以使用自己的停止帧动画,使用短片或在每个平台上本地编码动画(我已经看到了一些尝试在jscript中进行跨平台动画的尝试-例如http://speckyboy.com/2012 / 05/09 / jcsml-a-new-cross-platform-animation-library / -也很高兴看到C#中的版本!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM