[Solved]Any way to force flash player to play immediately instead of on-tab-focus ?

  • I'm using plugin exceptions' new "Detect content" option (where the other options are Allow, Ask, and Block) for youtube, and using DomainUserAgent extension to force flash plugin in youtube. This new setting "Detect content" is really nice, and saves me the trouble of writing an extension to, if possible, overriding the browser's settings and playing youtube playlists without considering the aforementioned settings, for the purpose of music playback.

    However, there is an obstacle that's getting in the way of the playlist playback (note that I'm referring to flash player, which is a plugin, as opposed to html5): the tab needs to be focused for the playback of each video to start. This of course means that playing a playlist you constantly need to switch to the playlist tab for each and every video to start. Is there a way around this, preferably without yet another extension ? Thank you !

  • OK, googling I found the solution, which is hidden inside the flags page (opera://flags or chrome://flags) instead of settings.

    1. Navigate to: opera://flags/#disable-gesture-requirement-for-media-playback
    2. Click "Disable" in the highlighted entry
    3. Restart Opera

    EDIT:

    It's not working for me; I still need to switch to the tab...

  • I'm using plugin exceptions' new "Detect content" option (where the other options are Allow, Ask, and Block) for youtube

    And which option is being used?

    and using DomainUserAgent extension to force flash plugin in youtube.

    Just as a curiosity: why use Flash?

    It's not working for me; I still need to switch to the tab...

    AFAIK that flag doesn't affect Flash.

    However, there is an obstacle that's getting in the way of the playlist playback (note that I'm referring to flash player, which is a plugin, as opposed to html5): the tab needs to be focused for the playback of each video to start.

    Well, using the html5 player there is no need to go to the tab for the subsequent videos to play on a playlist. I guess it should work the same for Flash.

  • And which option is being used?

    As I wrote, I'm using "Detect content", since I only want to autoplay main videos and not ads and such.

    Just as a curiosity: why use Flash?

    Although I would love to dump flash and rely on html5, the fact remains that html5 playback is kept not particularly optimized for older hardware. Playing 720p with html5 vs flash is a big differerence, almost twice the CPU usage. FWIW the flags enable-platform-accelerated-video-decoding and disable-accelerated-video-decode are set appropriately. I think those are for html5 video ?

    AFAIK that flag doesn't affect Flash.

    So it seems. But unless it's flash player itself that does that (which I doubt, not sure, but doubt) I would expect the behavior based on the flag to affect flash player as well.

    Well, using the html5 player there is no need to go to the tab for the subsequent videos to play on a playlist. I guess it should work the same for Flash.

    Yes, it should work the same for flash, but doesn't. And as I wrote earlier, I use flash because it takes almost half the CPU usage compared to html5 as far as my old(er) hardware is concerned. I have no choice but to switch to ff tomorrow or so until this is fixed.

  • As I wrote, I'm using "Detect content", since I only want to autoplay main videos and not ads and such.

    I mean Allow, Deny or Ask? Or you are using that option without any exception?

    Yes, it should work the same for flash, but doesn't.

    Well, i installed an extension to force Flash player on Youtube, ran a playlist and the videos played automatically even without the tab being the focused one.

  • I mean Allow, Deny or Ask? Or you are using that option without any exception?

    My default option is "Click to play" (which corresponds to "Ask" in Exceptions). My exception for youtube is "Detect content" (which corresponds to "Detect and run important plug-in content (recommended)" in default settings).

    So, I'm using "Click to play" as default, and "Detect content" as youtube exception.

    (Btw, different terminoligies for default vs exception settings, for same functionality, is counterintuitive, and I feel that noobs can get pretty confused)

    Well, i installed an extension to force Flash player on Youtube, ran a playlist and the videos played automatically even without the tab being the focused one.

    I tried yet gain and same outcome. refused to start playing until I focused the tab.

    Additionally, like yesterday, in order to rule out extension/userscript conflicts, I also allowed DomainUserAgent to run in private mode and then opened a new private window with 2+ tabs. In one tab I went to a random yt playlist, and immediately switched tabs before it had loaded. The outcome was the same: demanded me to focus the yt tab in order to start playing. Also moved the video position to relatively near the end of the video in the playlist, and switched tab and waited. When the video was finished I could see the tab reload, and then I waited and waited and waited... and nothing happened. I again had to switch to / focus the yt tab for the video to start.

    May I ask what extension you used to force flash ?

  • Ok, I installed "Flash Player for YouTube" (https://addons.opera.com/en/extensions/details/flash-player-for-youtubetm/?display=en), and that works flawlessly so far.

  • May I ask what extension you used to force flash ?

    Exactly that one that you've installed.

    Most probably the problem was with the other extension.

  • That's the case. Thank you for the feedback !

Log in to reply
 

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