• Resolved vadim s. sabinich

    (@vadim-s-sabinich)


    Hello! I choose your plugin for my huge collection of local bands (thousands files)

    This collection places in tree-views catalogue: music/BAND_NAME/ALBUM/(1-10 mp3 files)

    And your plugin exactly has matched with my aim. But.. ??

    Can you do something for performance playlist’s generation? The first request to a new page takes about 30 seconds. After: much better (WordPress cache, maybe).

    And I see direct match for generation time: number of mp3 files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vadim s. sabinich

    (@vadim-s-sabinich)

    Also, I used this short-code: [cpm-player skin="classic-skin" width="100%" playlist="true" preload="auto" type="audio" dir="music/band/album/" ] [/cpm-player]

    Plugin Author codepeople

    (@codepeople)

    Hello @vadim-s-sabinich

    The idea of including the “dir” attribute in the shortcode is to generate the playlist from the files directory each time you load the page. This allows you to upload, remove, or update the audio files from the directory structure. Note that if your files directory has multiple levels the plugin must walk all of them. Note that the preload=”none” improves the performance because the audio files would be loaded only by the direct user action (pressing the play button).

    Best regards.

    Thread Starter vadim s. sabinich

    (@vadim-s-sabinich)

    Hello!

    It’s really true and when I’ve removed this option it improved well performance. but… How about generating playlist with help background tasks and something queue?
    Now (a lot of sorry ?? I’ve “hacked” procedure of generating playlist from dir and use a cache.

    Plugin Author codepeople

    (@codepeople)

    Hello @vadim-s-sabinich

    The problem with caching the playlist from the directory structure is that it could be outdated. Note you can upload or delete the files via FTP. If we load the playlist from the cache and you deleted some files, it would be outdated and the user experience would be unsatisfactory.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.