Playlist

From BC$ MobileTV Wiki
Revision as of 23:42, 10 July 2021 by Bcmoney (Talk | contribs) (Spotify)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A playlist is a collection of items, typically queued in sequential order and sorted alphabetically, numerically or alphanumerically; but this is not always the case.


Playlists are a common way of presenting a large group of media for playing sequentially or randomized, the most common and familiar example being a playlist of music that may appear on an application's playlist manager. Common examples of "media player" applications are the playback interface on Apple's iPod, the iTunes music library, Winamp's desktop and remote players such as Shoutcast for web, Microsoft's Windows Media Player, VideoLAN's VLC Media Player, Miro's Democracy Player, VoggOrbis, or any other number of media players with a full-featured playlist manager.


Specifications

XSPF

XSPF is the leading open source data format for creating and exchanging playlists.

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
  <trackList>
    <track>
      <location>example.mp3</location>
      <title>Battery</title>
      <creator>Metallica</creator>
      <album>Master of Puppets</album>
      <annotation>https://www.amazon.com/gp/product/B07554FHF5/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B07554FHF5&linkCode=as2&tag=bcmoney07-20&linkId=a1bb284dcdc8673df6b99f38c9af3b36</annotation>
      <info>https://www.metallica.com/releases/albums/release-4211.html</info>
      <image>https://upload.wikimedia.org/wikipedia/en/b/b2/Metallica_-_Master_of_Puppets_cover.jpg</image>
      <trackNum>1</trackNum>
      <duration>310000</duration>
    </track>
    ...
  </trackList>
</playlist>


ASF

[1]

ASX

Advanced Stream Redirector (ASX).

<asx version="3.0">
  <title>Example.com Live Stream</title>
  <entry>
    <title>Short Announcement to Play Before Main Stream</title>
    <ref href="http://example.com/announcement.wma" />
    <param name="aParameterName" value="aParameterValue" />
  </entry>   
  <entry>
    <title>Example radio</title>
    <ref href="http://example.com:8080" />
    <author>Example.com</author>
    <copyright>©2005 Example.com</copyright>
  </entry>
  ...
</asx>

[3] [4] [5] [6] [7] [8] [9]


QTL

<?xml version="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>
<embed src="http://example.com/somevideo.mov" autoplay="true" type="video/quicktime" controller="true" quitwhendone="false" loop="false" name="test file"></embed>

[10]

PLS

PLS is a simple text-based format started by Shoutcast for sharing via their Online Radio directory and streaming platform.

[playlist]
File1=http://stream2.streamq.net:8020/
Title1=IceCast or Shoutcast type Online Radio Station example (no length specified since its a continuous stream)

File2=http://www.example.com/music/file.mp3
Title2=Remote single file with length specified in Seconds
Length2=120

File3=C:\Users\USERNAME\Music\Band\Song.mp3
Title3=Local single file with length specified in Seconds
Length3=120

...

NumberOfEntries=3
Version=2

In the example

[11] [12]


M3U

Mp3 URLs (M3U) is an early text-based playlist format with minimal markup used primarily by Foobar2000, Winamp & WindowsMediaPlayer.

#EXTM3U #EXTINF:0,A Certain Romance 
http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/A Certain Romance.mp3 
#EXTINF:0,Dancing Shoes 
http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/Dancing Shoes.mp3 
#EXTINF:0,Fake Tales Of San Francisco 
http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/Fake Tales Of San Francisco.mp3 
#EXTINF:0,From The Ritz To The Rubble 
http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/From The Ritz To The Rubble.mp3 
...

[13] [14] [15]

M3U8

M3U8 is a unicode version of M3U which uses UTF-8-encoded characters, and is for the HTTP Live Streaming (HLS) format originally developed by Apple to stream video and radio to iOS devices, and which is now a popular format for Dynamic Adaptive Streaming over HTTP (DASH) in general.

The current proposal for the HLS playlist format uses UTF-8 exclusively and does not distinguish between the "m3u" and "m3u8" file name extensions.

EXAMPLES

[17] [18]

Spotify

Playlists in JW Player

Blip.TV (DISCONTINUED)

BCmoney Demo:

* http://bcmoney-mobiletv.com/playlist/Blip.tv_Playlist_XSPF-1.0.php?url=http://blip.tv/rss/bookmarks/164760

Blip.TV Search API:

* http://bcmoney-mobiletv.com/playlist/blip_playlist.php?search=Mobile%20TV

Tools


Resources


Tutorials


External Links

References

  1. nPlaylist: https://github.com/NPlaylist/nplaylist
  2. Adding Windows Media to Web Pages: http://msdn.microsoft.com/en-us/library/ms983653.aspx
  3. Windows Media Metafile Elements Reference: https://docs.microsoft.com/en-us/windows/win32/wmp/windows-media-metafile-elements-reference?redirectedfrom=MSDN
  4. ASX Element: https://docs.microsoft.com/en-us/windows/win32/wmp/asx-element?redirectedfrom=MSDN
  5. Quick Introduction to ASF,ASX, and Networking Media Distribution: https://web.archive.org/web/20130221045744/https://www.aspfree.com/c/a/code-examples/quick-introduction-to-asfasx-and-networking-media-distribution/
  6. Windows Media ASX Files: https://www.mediacollege.com/video/format/windows-media/files/asx.html
  7. How to loop video in ".asx" playlist using mediaelement?: https://social.msdn.microsoft.com/Forums/en-US/cf5f41ee-72e6-4a76-98ea-15469a404e28/how-to-loop-video-in-asx-playlist-using-mediaelement-
  8. Creating a Playlist For Windows Media Player With JavaScript: https://bytes.com/topic/javascript/answers/561867-creating-playlist-windows-media-player-javascript
  9. wikipedia: Windows Media Player Playlist (WPL)
  10. Link types: quicktime movies examples: http://quicktime.tc.columbia.edu/users/iml/movies/mtest.html
  11. wikipedia: PLS (file format)
  12. How do I parse the PLS playlist format in an iPhone app?: https://stackoverflow.com/questions/1692002/how-do-i-parse-the-pls-playlist-format-in-an-iphone-app
  13. wikipedia: M3U
  14. ASX/M3U/PLS On-Demand Playlist Generator: https://djlab.com/2010/08/asxm3upls-on-demand-playlist-generator/
  15. MediaMonkey -- Export/Import Playlists such as M3U: http://solair.eunet.rs/~zvezdand/ExportM3UsForSubNodesNew.htm
  16. Infowars XSPF playlist: http://rss.infowars.com/playlist.xspf
  17. Innovative Service from MyPlaylist: http://www.myplaylist.biz/ (Playlist + Lyrics)
  18. Mobile WebApp -- Playlist (prototype by SQWAQ): http://www.sqwaq.com/twain-custom-video.html
  19. Blip.tv playlist:strange code in playlist field: http://www.longtailvideo.com/support/forum/Setup-Problems/12118/Blip-tv-playlist-strange-code-in-playlist-field-
  20. Blip + JW Player example: http://www.trbailey.net/javascript/JW_API.html
  21. JW Player + XSPF example: https://web.archive.org/web/20090419133311/http://www.trbailey.net/xspf/sample1.html

See Also

Audio | Music | Video | Streaming | Captions | Subtitles | Metadata | Spotify | Pandora