PlayMedia builtin function - play correctly folders

When a folder is passed as parameter, play it correctly, either being
music, video or mixed content. For mixed content only the video part
will be reproduced without retrieving the list twice.