Playing sound from YouTube but hiding the video

I am trying to use other ways to play sounds rather than attaching mp3, ogg files etc that make for a really large file size and loading time.

I tried to follow this -
to test having a video's sound playing in the background (without showing the video)
but something is not working...

Here is my initial code:

<!--Saved by Quest 5.8.6836.13983-->
<asl version="580">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <game name="An Heirloom">
    <setbackgroundopacity />
    <backgroundopacity type="double">0.9</backgroundopacity>
    <showpanes type="boolean">false</showpanes>
    <showlocation type="boolean">false</showlocation>
    <showborder type="boolean">false</showborder>
    <showcommandbar type="boolean">false</showcommandbar>
    <defaultfont>'Courier New', Courier, monospace</defaultfont>
    <defaultfontsize type="int">20</defaultfontsize>
    <showdescriptiononenter />
    <autodescription />
    <attr name="autodescription_youcansee" type="int">0</attr>
    <attr name="autodescription_youcango" type="int">0</attr>
    <attr name="autodescription_youarein" type="int">0</attr>
    <attr name="autodescription_description" type="int">1</attr>
  <object name="room">
    <inherit name="editor_room" />
    <description type="script"><![CDATA[
      TextFX_Unscramble ("An Heirloom<br/>Memory Retrieval Software 3.1<br/><br/>", 100, 1)
      ShowYouTube ("VQ9LxaYDjyc")
      JS.JS.uiHide ("#my-video")
    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
  <function name="SetLastIframeID">
    // Find all the iframes
    js = "var iframes = document.getElementsByTagName('iframe');"
    // Find the last iframe, and call it "lastIframe"
    js = js + "var lastIframe = iframes[iframes.length-1];"
    js = js + " = '"+id+"'"
    JS.eval (js)
    JS.eval ("$('#my-video').width('10%');")
    SetLastIframeID ("my-video")

JS.JS.uiHide ("#my-video") looks strange

Log in to post a reply.