2012-03-27 25 views
12

Tôi đang sử dụng PhantomJS 1.4.1 (hỗ trợ cho các plugin như Flash đã bị xóa trong 1.5) tuân theo --qt-4.8.Cách flash hoạt động với PhantomJS?

Tôi không thể bật Flash được bật trong PhantomJS. Tôi sử dụng tùy chọn --load-plugins=yes. Tôi thiết lập QTWEBKIT_PLUGIN_PATH cho tất cả các đường dẫn có chứa libflashplayer.so:

QTWEBKIT_PLUGIN_PATH=/usr/lib/browser-plugins:/usr/lib/flash-plugin:/usr/lib/mozilla/plugin:/usr/lib64/flash-plugin:/usr/lib64/mozilla/plugins:/usr/lib64/opera/plugins 

tôi có thể nhìn thấy trong strace rằng PhantomJS không tìm libflashplayer.so:

stat("/usr/lib64/opera/plugins/libflashplayer.so", {st_mode=S_IFREG|0755, st_size=18782520, ...}) = 0 
lstat("/usr/lib64/flash-plugin/libflashplayer.so", {st_mode=S_IFREG|0755, st_size=18782520, ...}) = 0 
stat("/usr/lib64/flash-plugin/libflashplayer.so", {st_mode=S_IFREG|0755, st_size=18782520, ...}) = 0 
stat("/usr/lib64/flash-plugin/libflashplayer.so", {st_mode=S_IFREG|0755, st_size=18782520, ...}) = 0 
stat("/usr/lib/flash-plugin/libflashplayer.so", {st_mode=S_IFREG|0755, st_size=17047372, ...}) = 0 
[..] 

Trên cùng một máy chủ, Flash hoạt động tốt với Firefox 10.0

Bất kỳ ý tưởng nào tại sao Flash không được PhantomJS sử dụng?

Trả lời

0

Đây là example thiết lập môi trường làm việc cho CentOS 5.7 với phantomjs 1.4.1

Các vấn đề liên quan