Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Update of "player"

Overview

Artifact ID: 9e369eee071d41b3c3dab13cdc83a28288775057
Page Name:player
Date: 2017-01-23 19:38:39
Original User: Oliver
Mimetype:text/x-markdown
Parent: 667fa441de3f1942dc4546c6f7b3f8ac94b01e8a (diff)
Content

Player config

See also Configuration Apps.

The config dialog for player settings allows to associate different media playback apps for different audio streams.

  • In practice you may want to define the same application for both.

  • You could even edit out all but the audio/* fallback entry.

  • Note that you have to specify an actual player (audacious, vlc, exaile, mplayer, totem). Playlist manager apps (banshee, rhythmbox, gmusicbrowser, streamtuner2 itself) will not work.

After changing an application name, a green indicator should appear. This however does not apply to Windows. The automatic application detection is not supported on this platform.

Note also that on Windows any path containing spaces must be enclosed in double quotes ("P:\Mozilla Firefox\firefox.exe", e.g) (which is of course not an audio player, but can also be configured on this settings page). You may also consider to add any path to your audio/video player application or preferred internet browser to the %Path% environment variable.

Placeholders

Various placeholders can be specified after the command:

<style> article .content table { width: 75%; margin: 5pt 15pt; } </style>

%m3u Locally (downloaded/converted) .m3u file
%f aliases to %m3u
%g
%m
%pls Link to on-server .pls stream list (default, works with most players, and is often faster as ST2 does not need to convert the playlist)
%url
%u Aliases for %pls and %url
%r
%l
%srv Extracted direct link to streaming server (e.g. http://example.com/stream:25078)
%d Aliases for %srv
%s
%xspf Xiph shareable playlist format (for newer apps)
%x Alias for %xspf
%jspf Not widely supported
%smil Not widely supported
%asx Outdated format

If no placeholder is specified in the configuration a default %pls is appended.

Shell syntax

The commands are mostly free-form. You can use various shell idioms. For example pkill vlc ; vlc %url to only have one running instance of players that would otherwise run in parallel (VLC also has an option for that, which would apply globally then).

Notes for Windows: Shell commands are invoked using the Windows Start command. If they are targeting a non-GUI-application like streamripper.exe the syntax is:

   /D ["][Path-to-streamripper]["] streamripper.exe %srv [parameters for streamripper.exe]

For killing an application (GUI or not) use e.g.

   Taskkill.exe /IM streamripper.exe

Configuration samples for selected Windows players

While for the common players on Linux no special config options are needed there are differences when using players on the Windows platform. The following table is a non-representative selection of some.

VLC Media Player [Path]vlc.exe --one-instance
You can omit the --one-instance parameter if you set Allow only one instance in the VLC preferences.
(Applies likewise to the Linux version of VLC)
Windows Media Player [Path]wmplayer.exe %asx
The Path parameter is usually not needed
Media Player Classic /D [Path] mpc-hc64.exe
/D [Path] mpc-hc.exe
In order to reuse any open MP Classic instance set Use the same player for each media file in the player's options.
AIMP3 [Path]aimp.exe /ADD_PLAY "%pls"
The %pls placeholder must be given enclosed in double quotes.
Some stations therefore will not play.
foobar2000 [Path]foobar2000.exe