Skip to content

Media First click interact doesnt respect setting correctly #4330

@WolfGangS

Description

@WolfGangS

Environment

Second Life Test 7.1.14.15948523592 (64bit)
Release Notes

System Info (not really relevant) CPU: AMD Ryzen 7 5700X 8-Core Processor (3393.62 MHz) Memory: 32037 MB OS Version: Microsoft Windows 10 64-bit (Build 19043) Graphics Card Vendor: AMD Graphics Card: AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 20.1.6, DRM 3.61, 6.12.34-1-MANJARO)

Windows Graphics Driver Version: 31.0.21902.5
OpenGL Version: 4.6 (Core Profile) Mesa 25.1.4-arch1.1

Window size: 3440x1358
Font Size Adjustment: 96pt
UI Scaling: 1
Draw distance: 128m
Bandwidth: 3000kbit/s
LOD factor: 1.75
Render quality: 5
Texture memory: 16384MB
Disk cache: Max size 1638.4 MB (10.2% used)

J2C Decoder Version: OpenJPEG runtime: 2.5.2
Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.24.2 / OpenAL Community / OpenAL Soft: OpenAL Soft
Dullahan: 1.14.0.202408091639
CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54
Chromium: 118.0.5993.54
LibVLC Version: 3.0.21
Voice Server Version:

July 02 2025 11:13:51

Description

The media first click option in Preferences > Sound & Media > Media first-interact is not respected correctly.

Any option apart from Disabled, leads to ALL media being first click interact, due to a mistake in the bitfield comparison logic

Reproduction steps

In general this testplan should be fine

But for a simpler repro

LSL Script

default {
    state_entry() {
        llSetPrimMediaParams(4,[
            PRIM_MEDIA_CURRENT_URL, "https://marketplace.secondlife.com",
            PRIM_MEDIA_HOME_URL, "https://marketplace.secondlife.com",
            PRIM_MEDIA_AUTO_PLAY, TRUE,
            PRIM_MEDIA_FIRST_CLICK_INTERACT, TRUE
        ]);
    }
}
  1. In Preferences > Sound & Media set media first-interact to Worn HUDs only
  2. Rez a cube on the ground, and place the above script in it
  3. Allow the media to play
  4. Click away from the cube so the media is not focused.
  5. Click on the media, getting first click interact despite the setting, being Worn HUDs only

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions