【发布时间】:2025-12-20 12:20:12
【问题描述】:
我在尝试加载 SWF 文件以在我的网站上嵌入 Flash 视频时遇到了一些问题。该网站已通过 Google App Engine(PHP 运行时)部署。闪动似乎在那里,但它只是一个白色的屏幕。当您右键单击它时,它会显示“电影未加载...”
我尝试了几种方法,每种方法都得到了相同的结果。通过这些网址可以看到源代码。
http://www.andrewrgoss.com/iidfinalproject.html
http://www.andrewrgoss.com/iidfinalproject2.html
我确实确保将 .swf 扩展名添加到我的 app.yaml 文件中,如下所示。 .swf 文件与 .html 文件位于同一目录中。任何想法为什么我不能让它工作?此外,这里是否可以使用更好(理想情况下相对简单)的替代方法?
application: andrewrgoss
version: 1
runtime: php
api_version: 1
handlers:
# All URLs beginning with /stylesheets are treated as paths to static files in
# the stylesheets/ directory.
- url: /images\.ico
static_files: images/db_favicon.ico
upload: images/db_favicon\.ico
- url: /(.*\.(gif|png|jpg|ico|js|css|swf))
static_files: \1
upload: (.*\.(gif|png|jpg|ico|js|css|swf))
- url: /.*
script: index.php
【问题讨论】:
标签: php html google-app-engine flash