是否有c ++库在跨平台应用程序中包含Flash视频?

时间:2022-01-29 12:00:58

I'm developing a c++ applicaton using Qt, and we're looking to include swf files. Is there a way I can include swfs in my application? I'm open to different solutions for windows, mac, and linux, but a single cross-platform solution would be best.

我正在使用Qt开发一个c ++应用程序,我们正在寻找包含swf文件。有没有办法在我的应用程序中包含swfs?我对Windows,Mac和Linux的不同解决方案持开放态度,但单一的跨平台解决方案将是最好的。

Thanks!

4 个解决方案

#1


You can use WebKit (in sufficiently recent versions of Qt; it's included for sure in 4.4 and 4.5) and embed the flash animations via that. This depends on having a flash plugin installed and accessible to WebKit, but it should be workable on Mac, Windows, and Linux (with either gnash/swfdec or Adobe's plugin).

你可以使用WebKit(在Qt的最新版本中;肯定包含在4.4和4.5中)并通过它嵌入flash动画。这取决于安装了Flash插件并可以访问WebKit,但它应该适用于Mac,Windows和Linux(使用gnash / swfdec或Adobe的插件)。

#2


It's not free, but Scaleform GFx provides a cross-platform Flash player. It can work with multiple different kinds of renderers, including but not limited to DirectX and OpenGL.

它不是免费的,但Scaleform GFx提供了一个跨平台的Flash播放器。它可以与多种不同类型的渲染器一起使用,包括但不限于DirectX和OpenGL。

#3


You could use swfdec or gnash, however I don't know how portable they will be. It might be worth checking out the VLC source as well. To ensure cross-platform however I would suggest going with a more standard, even better open, video format. An example of using gnash with GTK is below:

你可以使用swfdec或gnash,但是我不知道它们有多便携。也可能值得查看VLC源。为了确保跨平台,我建议采用更标准,更好的开放视频格式。使用gnash与GTK的一个例子如下:

http://blog.tomeuvizoso.net/2009/04/embed-flash-movies-with-gnash-in-your.html

#4


Your best bet is to try to run the plugin version of Flash Player in your application. Projects like Screenweaver have implemented their own Netscape plugin API wrappers to do this.

最好的办法是尝试在应用程序中运行Flash Player的插件版本。像Screenweaver这样的项目已经实现了自己的Netscape插件API包装器来实现这一目标。

You can also look at NSPluginWrapper project, they have a standalone plugin player implemented, which you possibly might be able to adapt into your own project.

您还可以查看NSPluginWrapper项目,它们实现了一个独立的插件播放器,您可能可以适应自己的项目。

#1


You can use WebKit (in sufficiently recent versions of Qt; it's included for sure in 4.4 and 4.5) and embed the flash animations via that. This depends on having a flash plugin installed and accessible to WebKit, but it should be workable on Mac, Windows, and Linux (with either gnash/swfdec or Adobe's plugin).

你可以使用WebKit(在Qt的最新版本中;肯定包含在4.4和4.5中)并通过它嵌入flash动画。这取决于安装了Flash插件并可以访问WebKit,但它应该适用于Mac,Windows和Linux(使用gnash / swfdec或Adobe的插件)。

#2


It's not free, but Scaleform GFx provides a cross-platform Flash player. It can work with multiple different kinds of renderers, including but not limited to DirectX and OpenGL.

它不是免费的,但Scaleform GFx提供了一个跨平台的Flash播放器。它可以与多种不同类型的渲染器一起使用,包括但不限于DirectX和OpenGL。

#3


You could use swfdec or gnash, however I don't know how portable they will be. It might be worth checking out the VLC source as well. To ensure cross-platform however I would suggest going with a more standard, even better open, video format. An example of using gnash with GTK is below:

你可以使用swfdec或gnash,但是我不知道它们有多便携。也可能值得查看VLC源。为了确保跨平台,我建议采用更标准,更好的开放视频格式。使用gnash与GTK的一个例子如下:

http://blog.tomeuvizoso.net/2009/04/embed-flash-movies-with-gnash-in-your.html

#4


Your best bet is to try to run the plugin version of Flash Player in your application. Projects like Screenweaver have implemented their own Netscape plugin API wrappers to do this.

最好的办法是尝试在应用程序中运行Flash Player的插件版本。像Screenweaver这样的项目已经实现了自己的Netscape插件API包装器来实现这一目标。

You can also look at NSPluginWrapper project, they have a standalone plugin player implemented, which you possibly might be able to adapt into your own project.

您还可以查看NSPluginWrapper项目,它们实现了一个独立的插件播放器,您可能可以适应自己的项目。