Okay
  Public Ticket #2793572
Download Playlist Option
Closed

Comments

  • lazybeaches started the conversation

    Hi there,

    I see on the 'projects' player there is the option to download individual files from the media player.  

    Can we include this feature on the other media player styles that comes with the Voicer theme as well?  Also, is there a feature to download the entire playlist?  How do we enable this?  Thank you

  •  58
    Olga replied

    Hello,


    All these are the default player scripts settings. By default, there are no such options in the theme. You can read default manuals of the player and follow their instructions.

    But I’ve analyzed this and can give you the common instructions.

    I’ve checked the projects player options in the jquery initialization

    The function in the file -  voicer\js\voicer-custom.js

    if ($("#awp-project-player").length) {

    ...

    Here you can see the setting

    useDownload: true,

    It seems like  the same setting you should add to other players to add the option of downloading.

    Use the functions

    if ($("#awp-home-player").length) {

    ….

    if ($("#awp-grid-player").length) {

    ….

    Then in the file - \theme-core\theme-core.php

    Use the function

    function voicer_aw_player( $atts, $content = "" ) {

    ….

     case 'projects':

    You see that the code 

    $player_content_projects.= '<li class="awp-playlist-item" …..

    Has the option  data-download=

    So, you should try to add the same option for other players.

    Use the codes after

    case 'popup':

    And 

    case 'home':

    ...





    thanks!