Embedding Gnash into PyGame?

2019-08-04 05:23发布

Is there a way to display flash applications using Gnash renderer (I'm not averse to Adobe's renderer but would prefer not to use it) in a PyGame application?

1条回答
Juvenile、少年°
2楼-- · 2019-08-04 05:42

Does Gnash allow drawing to an SDL_Surface? If so, Pygame has a C API that would make gluing these together easy. If not your best bet will be Pygame's frombuffer command. This will interepret a raw block of data as an image. You'll still need some way of getting that pointer from Gnash to your Python code.

查看更多
登录 后发表回答