how to detect opera is playing a flash video or not ?

  • openSUSE 13.2 64bit
    opera 26.0.1656.60

    i try to write a shell script to detect whether opera is playing a flash video or not.
    at the very beginning of running opera (none web page opened), i find there are so many processes similar to the following one even if none flash video is playing:

    /usr/lib64/opera/opera --type=renderer --alt-high-dpi-setting=96 --disable-direct-npapi-requests --enable-deferred-image-decoding --lang=zh-CN --disable-client-side-phishing-detection --ppapi-flash-path=/opt/google/chrome-beta/PepperFlash/libpepflashplayer.so --ppapi-flash-version=16.0.0.252 --with-feature:enhanced-autofill --enable-delegated-renderer --enable-impl-side-painting --num-raster-threads=1 --disable-accelerated-video-decode --channel=12246.17.2095401806
    

    so i can not check a process info whether contains libpepflashplayer.so literal string or not to determine opera is playing flash video.

    after i open a web page containing flash video. i find a process comes out:

    /usr/lib64/opera/opera --type=ppapi --channel=12246.21.967257779 --ppapi-flash-args --lang=zh-CN
    

    i am very excited. i think maybe this process is the key to solve my problem. maybe a process similar to opera --type=ppapi means flash video being played. but after i close this web page and stop playing flash video, this process remains existent.

    so would you please to tell me how to determine whether opera is playing a flash video or not ?

  • Use opera's own built in task manager.

  • hi ruario, thanks for your reply.
    is it possible for shell script to communicate with opera's own task manager ? if so then how to do it ?

  • seems no chance to communicate with opera's own task manager, right ?

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.