flash - 如何从 PPAPI 内容调试器 Flash Player 获取跟踪输出

标签 flash google-chrome ppapi

我在 Windows 8 上使用 Chrome 39.0.2171.95。我运行了 Adob​​e 的 uninstall_flash_player.exe。我安装了 this Adobe blog post. 中宣布的 PPAPI 内容调试器 Flash Player

当我转到 chrome://plugins 并使用右上角的链接展开详细信息时,我可以看到内置的 PepperFlash 播放器仍然存在,但已被禁用。插件一:

Location:   C:\WINDOWS\system32\Macromed\Flash\pepflashplayer32_16_0_0_235.dll
Type:   PPAPI (out-of-process)

已启用。到现在为止还挺好。

根据我从 this Adobe forum post 收集到的信息,我将我的 mm.cfg 文件复制到:

%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/System

(我必须创建系统目录。)

mm.cfg 文件包含:
TraceOutputFileEnable=1
ErrorReportingEnable=1
AS3Verbose=0
TraceOutputBuffered=1
AS3Trace=0

我假设这个 Flash 播放器写入的日志文件与 NPAPI 播放器写入的日志文件不同,因为 Chrome 对文件系统访问有非常严格的限制。在任何情况下,都不会向 NPAPI 插件使用的 flashlog.txt 文件写入任何内容。我也找不到类似于下面的日志文件的任何内容

%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash

而且我找不到任何类似于 Adob​​e 有意义的文档的内容。

有没有人成功地完成了我想要做的事情?

最佳答案

创建您的 mm.cfg 后文件到 "%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/System" , 你应该重新启动 chrome 然后运行你的 swf 文件,你的日志文件将在这里创建:"%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/WritableRoot/Logs"它的名字是 flashlog.txt .如果路径WritableRoot/Logs不存在,它将自动创建。

因此,回顾一下 Chrome 上的 PPAPI Flash Player 调试器版本和 Windows 7/8 上的 Opera 的所有内容:

Windows 7/8 PPAPI

毫米.cfg:

TraceOutputFileEnable=1
ErrorReportingEnable=1

mm.cfg 位置:

Chrome 合金 :
"%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/System"

歌剧:
"%USERPROFILE%/AppData/Roaming/Opera Software/Opera Stable/Pepper Data/Shockwave Flash/System"

日志文件位置:

Chrome 合金 :
"%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"

歌剧:
"%USERPROFILE%/AppData/Roaming/Opera Software/Opera Stable/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"  

Windows 7/8 NPAPI/ActiveX

mm.cfg 位置:
%USERPROFILE%

日志文件位置:
"%USERPROFILE%/AppData/Roaming/Macromedia/Flash Player/Logs/flashlog.txt"

Mac Chrome PPAPI

mm.cfg 位置:
"/Users/%USERNAME%/Library/Application Support/Google/Chrome/Default/Pepper Data/Shockwave Flash/System/mm.cfg"

日志文件位置:
"/Users/%USERNAME%/Library/Application Support/Google/Chrome/Default/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"

Mac Chrome NPAPI(不推荐使用 chrome NPAPI,但这可能也适用于其他浏览器,如 firefox)

mm.cfg 位置:
"/Library/Application Support/Macromedia/mm.cfg"

日志文件位置:
"/Users/%USERNAME%/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt"

欲了解更多信息,请点击此处了解如何to edit the mm.cfg file从这里 to know the log file location .警告 - 本文档中的日志文件位置可能不是最新的。

希望能帮到大家。

关于flash - 如何从 PPAPI 内容调试器 Flash Player 获取跟踪输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27791515/

相关文章:

由于缓存的 JS 文件,JavaScript 函数无法正常工作

google-chrome - 如何使用 chrome devtools 推送调试功能?

web-services - 运行本地 dll 文件,选择打印机等... NPAPI 的替代方案

flash - 无法在 Electron 应用程序中显示Flash内容

javascript - 使用 JavaScript 定位 Flash 对象

javascript - 是否有可能在网络音频 api 中获取从 Flash 生成的声音?

JavaScript 不工作,但在设置断点并从 Chrome 调试器工具中单击文件时工作正常

google-chrome-app - 是否可以使用 NaCL/PPAPI 在 Chrome 插件中录制视频流?

javascript - Flowplayer 在 Google Chrome 中加载但无法播放视频,但可以在其他浏览器中运行

html - SWF 文件在我的网站上不起作用