Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

[BUG-228938] Media on a prim - loops when it should not. #6911

Closed
sl-service-account opened this issue Jun 17, 2020 · 0 comments
Closed

[BUG-228938] Media on a prim - loops when it should not. #6911

sl-service-account opened this issue Jun 17, 2020 · 0 comments

Comments

@sl-service-account
Copy link

What just happened?

when playing an MP3 (or other audio) via a URL using the attached script the media will loop endlessly, despite the script setting LOOP to false.

What were you doing when it happened?

reproducing a bug reported in Firestorm

To recreate do the following.

  1. rez a lovely cube
  2. create a script and open it for editing
  3. highlight all and delete.
  4. paste the following
string url = "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.mp3";
default
{
    state_entry()
    {
        llSetPrimMediaParams(0, [
            PRIM_MEDIA_AUTO_PLAY, TRUE,
            PRIM_MEDIA_AUTO_SCALE, FALSE,
            PRIM_MEDIA_AUTO_LOOP, FALSE,
            PRIM_MEDIA_WIDTH_PIXELS, 1,
            PRIM_MEDIA_HEIGHT_PIXELS, 1,
            PRIM_MEDIA_CURRENT_URL, url
        ]);
    }
}
  1. save the script
  2. the top face of the cube should turn white and the media start to play (a short 15sec jaunty little ditty)
  3. once it ends there will be a short pause, it will then restart.
  4. TP away, sound stops
  5. TP back again, sound will start/continue and loop again

What were you expecting to happen instead?

Assuming media is enabled and set to autoplay, etc. The audio clip should play once and stop.

Other information

(also repros in OpenSim on Firestorm Release OS)
Related report : https://jira.firestormviewer.org/browse/FIRE-29676

Original Jira Fields
Field Value
Issue BUG-228938
Summary Media on a prim - loops when it should not.
Type Bug
Priority Unset
Status Closed
Resolution Triaged
Reporter Beq Janus (beq.janus)
Created at 2020-06-17T00:02:26Z
Updated at 2022-09-13T16:02:04Z
{
  'Build Id': 'unset',
  'Business Unit': ['Platform'],
  "Is there anything you'd like to add?": '(also repros in OpenSim on Firestorm Release OS)\r\nRelated report : https://jira.firestormviewer.org/browse/FIRE-29676',
  'ReOpened Count': 0.0,
  'Severity': 'Unset',
  'System': 'SL Viewer',
  'Target Viewer Version': 'viewer-development',
  'What just happened?': 'when playing an MP3 (or other audio) via a URL using the attached script the media will loop endlessly, despite the script setting LOOP to false.\r\n',
  'What were you doing when it happened?': 'reproducing a bug reported in Firestorm\r\n\r\nTo recreate do the following.\r\n1) rez a lovely cube\r\n2) create a script and open it for editing\r\n3) highlight all and delete.\r\n4) paste the following\r\nstring url = "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.mp3";\r\ndefault\r\n{\r\n    state_entry()\r\n    {\r\n        llSetPrimMediaParams(0, [\r\n            PRIM_MEDIA_AUTO_PLAY, TRUE,\r\n            PRIM_MEDIA_AUTO_SCALE, FALSE,\r\n            PRIM_MEDIA_AUTO_LOOP, FALSE,\r\n            PRIM_MEDIA_WIDTH_PIXELS, 1,\r\n            PRIM_MEDIA_HEIGHT_PIXELS, 1,\r\n            PRIM_MEDIA_CURRENT_URL, url\r\n        ]);\r\n    }\r\n}\r\n\r\n5) save the script\r\n6) the top face of the cube should turn white and the media start to play (a short 15sec jaunty little ditty)\r\n7) once it ends there will be a short pause, it will then restart.\r\n8) TP away, sound stops\r\n9) TP back again, sound will start/continue and loop again\r\n',
  'What were you expecting to happen instead?': 'Assuming media is enabled and set to autoplay, etc. The audio clip should play once and stop.',
  'Where': 'aditi, agni ',
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant