Parisson / TimeSide

scalable audio processing framework and server written in Python
https://timeside.ircam.fr/docs/
GNU Affero General Public License v3.0
369 stars 59 forks source link

Trying to use the Web Player (2nd posting try) #56

Closed yPhil-gh closed 6 years ago

yPhil-gh commented 10 years ago

Hi :)

I installed python-timeside (had to disable the repo to install aubio) and then I created a test dir in my http root, cd into it and

cp -R /usr/share/pyshared/timeside/static/timeside/ timeside-ui

And, as per the README, tried various markup combinations around this :

<!DOCTYPE html>
<html>

  <head>
    <meta charset="UTF-8">
      <script type="text/javascript" src="timeside-ui/lib/jquery-1.6.min.js"></script>
      <script type="text/javascript" src="timeside-ui/lib/soundmanager2-nodebug-jsmin.js"></script>
      <script type="text/javascript" src="timeside-ui/timeside.js"></script>
      <script>
    $(document).ready(function() {

       var player = jQuery('#player')

        Timeside.load({
            container: player,
            sound: "MUSIC/Azer0/Counternatures/Azer0-Counternatures-01-Takaddum.ogg",
            soundDuration: 149264,
            soundImage: "MUSIC/Azer0/Counternatures/album.jpg",
        }

    });

      </script>
    </head>

    <script type="text/javascript">
       soundManager.url = 'timeside-ui/swf/';  // path (directory) where SM2 .SWF files will be found.
    </script>

    <div id="player">plop</div>

  </html>

But no player is showing up. I must be missing something. Can somebody see what ?

PS - If there is a more appropriate place to post this, please point me to it

piem commented 10 years ago

hi @xaccrocheur,

i'm not sure about your exact issue, but i'd be interested to know more about your install:

note that the instructions to use the repository have been updated at http://debian.parisson.com/debian/

cheers, Paul

yomguy commented 10 years ago

Hi Xuff @xaccrocheur ! In fact, I've never used the TimeSide player autonomously in a static way without Telemeta because the player needs some metadata and analyses to display... But of course, it's an interesting - and needed - hack and currents devs in the timeside/server module should make it possible soon ;) Stay tuned!

yPhil-gh commented 10 years ago

Hey, I did now see this one. It's much clearer now. As for Paul questions: