Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008749opensim[REGION] Script Functionspublic2020-08-19 13:332020-08-29 11:53
ReporterJeffKelley 
Assigned ToJeffKelley 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0008749: llClearPrimMedia disables capability to play a media
DescriptionOnce llClearPrimMedia or llClearLinkMedia has been called, subsequent calls to llSetPrimMediaParams (resp. llSetLinkMedia) won't play the media.
Steps To ReproduceRez a prim, put this script.

integer MEDIA_SIDE = 2;
integer PLAYING = FALSE;
string MEDIA_URL = "http://ignis-fatuus.no-ip.biz/video/4K_video_test.mp4"; [^]

MediaOn()
{
    llSetPrimMediaParams (MEDIA_SIDE, [
            PRIM_MEDIA_CURRENT_URL, MEDIA_URL,
            PRIM_MEDIA_AUTO_SCALE, TRUE,
            PRIM_MEDIA_AUTO_PLAY, TRUE
            ] );
}

MediaOff()
{
    llClearPrimMedia (MEDIA_SIDE);
}



default
{
    touch_start (integer n) {
        
        if (PLAYING = ! PLAYING) {
            MediaOn();
            llSetText ("Now playing "+MEDIA_URL, <0,1,0>, 1.0);
        } else {
            MediaOff();
            llSetText ("Not playing ", <0,1,0>, 1.0);
        }
    }
}


Click the prim : The media plays.

Click the prim again (since a media is playing, a simple click won't go to the sript. You have to Right-click > Touch) : The media stops.

Click the prim again : The media won't start.


Leave the region and re-enter. Chances are that it works (but not always).

Additional InformationWork-around: do not use llClearPrimMedia but llSetPrimMediaParams with an empty URL.

Note: This may be a viewer issue.

Firestorm 6.0.2, Yeti Dev 0dc925b.
TagsNo tags attached.
Git Revision or version number0dc925b
Run Mode Grid (1 Region per Sim)
Physics EngineBulletSim
Script EngineXEngine
EnvironmentUnknown
Mono VersionNone
ViewerFirestorm 6.0.2
Attached Files

- Relationships

-  Notes
(0036721)
JeffKelley (reporter)
2020-08-19 16:10

0.9.2.0 Yeti Dev 2020-08-20-71cb702 seems to fix the issue.

Letting open to further tests.
(0036722)
UbitUmarov (administrator)
2020-08-19 16:16

Thanks
(0036723)
JeffKelley (reporter)
2020-08-19 16:16

Thanks to you.
(0036743)
JeffKelley (reporter)
2020-08-29 11:52

Tested again in commit 4b91a93 and works ok. Closing.

- Issue History
Date Modified Username Field Change
2020-08-19 13:33 JeffKelley New Issue
2020-08-19 16:10 JeffKelley Note Added: 0036721
2020-08-19 16:16 UbitUmarov Note Added: 0036722
2020-08-19 16:16 JeffKelley Note Added: 0036723
2020-08-29 11:52 JeffKelley Note Added: 0036743
2020-08-29 11:52 JeffKelley Status new => resolved
2020-08-29 11:52 JeffKelley Resolution open => fixed
2020-08-29 11:52 JeffKelley Assigned To => JeffKelley


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker