# llGetParcelMusicURL

*LSL function*

```lsl
string string llGetParcelMusicURL();
```

- Returns: `string`
- Energy: 10

The object owner must also be the land owner. If the land is deeded to a group the object will need to be deeded to the same group for this function to work.

Returns a [string](https://wiki.secondlife.com/wiki/string) containing the parcel [streaming audio](https://wiki.secondlife.com/wiki/Streaming_Music) URL.

```lsl title="How to use" frame="terminal"
string result = llGetParcelMusicURL();
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={6-20}
string parcel_music_url()
{
    string parcelMusicURL = llGetParcelMusicURL();

    if (parcelMusicURL != "")
        return parcelMusicURL;
//  else
        return "Sorry, could not retrieve parcel's music URL.\n"
            + "You'll either need to be the land owner or able to deed me.";

}

default
{
    touch_start(integer num_detected)
    {
        // PUBLIC_CHANNEL has the integer value 0
        llSay(PUBLIC_CHANNEL, parcel_music_url() );
    }
}
```

</details>

## History

- Suggested: [SCR-31](https://jira.secondlife.com/browse/SCR-31)
- Server release notes for [11.12.03.246118](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_Server/11#11-12-03-246118) on the main channel indicate that this function was added. Testing on the main release on 19-Dec-2011 has this function compiling without error but the output is empty.
- Tests OK on main channel as of January 22 2012

## See also

### Functions

- [llSetParcelMusicURL](/functions/llSetParcelMusicURL/) — Sets the music stream URL for the parcel object is on

---

*Source: [LlGetParcelMusicURL](https://wiki.secondlife.com/wiki/LlGetParcelMusicURL) on the Second Life Wiki. Content from the Second Life Wiki article LlGetParcelMusicURL (revision 1194228, 2015-01-22), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetParcelMusicURL/
