Playlists

Follow

Comments

28 comments

  • Avatar
    andreadev

    I know you can embea each model one by one,but there is a smart way to embead all my model in my portfolio just whit my API token?

  • Avatar
    James

    @andreadev
    1) go to https://api.sketchfab.com/v2/users/me?token={TOKEN}
    2) find the 'uid' for yourself.
    3) embed like: https://sketchfab.com/playlists/embed?user=4a7c10685d744e47b8319bd0fe631840

  • Avatar
    maritimearchaeologytrust

    Playlists not working on our site last few days, nor on yours it seems! Or is it just us??

  • Avatar
    James

    @maritimearchaeologytrust - Yep, sorry about that! We have a fix coming ASAP.

  • Avatar
    maritimearchaeologytrust

    @James

    Looks like it's back up again, good work! Do you think it will be a stable feature or still quite experimental?

  • Avatar
    James

    @maritimearchaeologytrust

    Yep! Sorry for not following up sooner. Yes, it is expected to be a stable feature.

  • Avatar
    maritimearchaeologytrust

    @James

    Great stuff, thanks a lot.

  • Avatar
    maritimearchaeologytrust

    @James

    Oh dear James, playlists out of action again? We might have to think of a different approach to putting models on our front page. Hope it's and easy fix.

    BR

  • Avatar
    andreadev

    Hi i have found a better way to embead all my model in my portfolio gallery, you can check it at http://andreadev.wiregaming.it/?page_id=511 this is a plugin developed by a friend programmer, he is working at and making a wordpress plugin for it that allow you to embed all your models just putting in the settings your profile id, and the magic will happens...if someone want this plugin let me know at andreapomposelli@gmail.com so i can advice you when it's published. Have a nice day, i hope this can help someone as it helped me.

  • Avatar
    maritimearchaeologytrust

    @andreadev

    Looks nice, is it wordpress only or is there any other way to use this on any site, some javascript and html, etc?

    We like the sketchfab playlists though, but they're a bit wobbly lately ;)

  • Avatar
    andreadev

    Yes, he will develop a lib and an api for getting all the mosels IDS and instantiate the sketchfab player.

  • Avatar
    James

    @maritimearchaeologytrust - It's working for me. Can you elaborate?

    @andreadev - That's a nice gallery, thanks for sharing!

  • Avatar
    maritimearchaeologytrust

    Yes, it's back now. It wasn't working across Sketchfab this morning. Thanks for your reply.

  • Avatar
    QMLX

    Hi @James 

    How can I scale up the THUMBNAILS and place them on the right side of viewer?

  • Avatar
    James

    Hi @QMLX 

    You would need to do it yourself with HTML, maybe using a combination of the Viewer API and oEmbed: https://sketchfab.com/developers

  • Avatar
    inventivesoftware

    Is there a way to access all my model id's at an api end point? Using HTML and Javascript.

  • Avatar
    James

    @inventivesoftware Yep: https://api.sketchfab.com/v3/models?user=inventivesoftware

  • Avatar
    digventures

    Hello!

    Quick question about Playlists... is there anyway of making the object descriptions visible? We have descriptions of all our objects, but as far as I can see, they don't display (or even have a 'click to see description') option?

    Any clues?

  • Avatar
    James

    Hi @digventures,

    Not at the moment, but thanks for the feedback! I'll pass it on to the team :)

    James

  • Avatar
    stairwave

    Hey,

    I think this is a great feature but I ran across the limitation that it doesn't support the same URL parameters as embedding models does. Hiding the name and some controls i.e. doesn't work with playlists. I posted this on a very old forum Post but it may better suit here. It would be a great improvement imo.

  • Avatar
    James

    Hey,

    Looks like you also posted on the forum ( https://forum.sketchfab.com/t/add-url-params-to-playlists/26705 ). Let's keep the conversation there :)

  • Avatar
    spiraloid

    This is awesome. is there a way to have the next item in the playlist asynchronously load in the background while the viewer is looking at the current model? I’m looking for a way to have an instantaneous switch to the next item...

  • Avatar
    spiraloid

    is there a way to hide the thumbnails and use the next and previous buttons?

  • Avatar
    James

    @spiraloid there's not much customization possible with the native Playlist feature, but you could use the Viewer API to make a more robust gallery/playlist tool https://sketchfab.com/developers/viewer

  • Avatar
    TorbjornHagenstam

    @James

    I have been trying to customise the playlist functions like spiraloid but havn't had any luck.
    Using the Viewer API I get 404 when trying to load a playlist UID, and if I change the URL it loads from https://sketchfab.com/model/{uid}/embed?api_version=1.5.0&api_id=1_api-frame
    to
    https://sketchfab.com/playlists/embed?collection={uid}&api_version=1.5.0&api_id=1_api-frame
    It doesn't run the onSuccess function and thus I don't get an api object to interact with.

    Any tries to directly alter the iframe is ofcourse met with CORS errors.

    What I am trying to do is hide/alter the way the playlist at the bottom works and pre-load all items in a playlist for instantaneous change of current model. This is all done for a kiosk-mode computer where visitors can freely jump between what model is shown.

    Right now we have a ugly hack that loads an individual embedded iframe per model and we show/hide them with JS, but are running into max RAM usage per tab errors in Chrome and "Too many active WebGL contexts", so I would like to just load one iframe with all models.

  • Avatar
    James

    Hello,

    Sorry for any confusion. The Viewer API is not intended to work with embedded playlists, and it's not on our roadmap to implement it.

    When I suggested using the Viewer API, I meant to use a single iframe and load one model at a time (you can re-initialize the iframe with a new model using the API). Maybe you could have just 2 or 3 iframes to preload the next and previous models, rather that loading ALL the iframes - that's going to be a huge performance issue for your page.

  • Avatar
    TorbjornHagenstam

    The problem is that there is about 8-9 models and the visitors can choose anyone at any time, so all needs to be loaded.

    I tried using the Viewer API to swap models but since all I could do was swapping the ID in the src of the iframe, and the browser didn't cache the downloaded model between swaps it had to load each time another model was chosen.

    Then I suppose we hafta go with our Plan A and just double the RAM in the computer to 32GB, that seems to work on some other machines uses for deving...

  • Avatar
    James

    I would just have a button for each model then and initialize it when the user selects it.

    For example: https://50years.vola.com/configurator

Please sign in to leave a comment.