在M3U播放列表中指定文件的相对路径的正确方法是什么? [英] What is proper way to specify relative path to file in M3U playlists?

查看:859
本文介绍了在M3U播放列表中指定文件的相对路径的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在M3U播放列表中为mp3等硬件播放器中的播放列表指定mp3文件路径的正确方法是什么?架子音响,微型零件系统,汽车音频播放器? 我了解路径应该是相对的,以实现更可靠的播放.例如,Windows Media Player m3u播放列表的反斜杠前有两个点:

What is proper way to specify the path to mp3 file in M3U playlists, for use playlists in hardware players, like Compact & Shelf Stereos, Micro Component Systems, Car Audio Players? I understand the path should be relative, for more reliable playback. For example, Windows Media Player m3u playlist have two dots before the leading back slash:

#EXTM3U
#EXTINF:0,Artist - Track Name (Mix).mp3
..\My Album\Artist - Track Name (Mix).mp3

这些点和反斜杠对硬件播放器有意义吗?

Does this dots and leading back slashes make any sense for hardware players?

推荐答案

我见过的所有播放器(包括Windows Media Player)都接受相对路径.

All the players I've seen (Windows Media Player included) accept relative paths.

..表示一个目录.如果要指定当前路径,请使用.或完全不指定它.

The .. means one directory up. If you wanted to specify the current path, either use ., or don't specify it at all.

如果存在兼容性问题,请考虑使用常规的正向"斜杠/代替.大多数硬件播放器都不运行Windows,即使Windows路径使用反斜杠\,大多数Windows软件也可以处理常规斜杠.

If you have compatibility problems, consider using regular "forward" slashes / instead. Most hardware players aren't running Windows, and most Windows software can handle the regular slashes even though Windows paths use backslashes \.

这篇关于在M3U播放列表中指定文件的相对路径的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆