You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>will instruct <strong>PyRadio</strong> to look for VLC, then MPlayer and finaly for MPV and use whichever it finds first; if none is found, the program will terminate with an error.</p>
277
279
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> The default player to use can also be set in <strong>PyRadio</strong>’s <ahref="#config-file">configuration file</a>, parameter <strong>player</strong> (default value is <strong>mpv, mplayer, vlc</strong>).</p>
280
+
<h2id="player-connection-protocol">Player connection protocol <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
281
+
<p>Most radio stations use plain old http protocol to broadcast, but some of them use https.</p>
282
+
<p>Experience has shown that playing a <strong>https</strong> radio station depends on the combination of the station’s configuration and the player used.</p>
283
+
<p>If such a station fails to play, one might as well try to use <strong>http</strong> protocol to connect to it.</p>
284
+
<p><strong>PyRadio</strong> provides a way to instruct the player used to do so; the “<em>Force http connections</em>” configuration parameter. If it is <em>False</em> (the default), the player will use whatever protocol the station proposes (either <strong>http</strong> or <strong>https</strong>). When changed to <strong>True</strong>, all connections will use the <strong>http</strong> protocol.</p>
285
+
<p>When the selected player is initialized (at program startup), it reads this configuration parameter and acts accordingly.</p>
286
+
<p>If the parameter has to be changed mid-session (without restarting the program), one would press “<em>z</em>” to display the “<em>Connection Type</em>” window, where the parameter’s value can be set as desired.</p>
287
+
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> Changes made using the “<em>Connection Type</em>” window are not stored; next time the program is executed, it will use whatever value the configuration parameter holds.</p>
278
288
<h2id="player-default-volume-level">Player default volume level <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></style></h2>
279
289
<p>MPV and MPlayer, when started, use their saved (or default) volume level to play any multimedia content. Fortunately, this is not the case with VLC.</p>
280
290
<p>This introduces a problem to <strong>PyRadio</strong>: every time a user plays a station (i.e restarts playback), even though he may have already set the volume to a desired level, the playback starts at the player’s default level.</p>
*[Displaying Station Info](#displaying-station-info)
23
24
*[Copying and pasting - Registers](#copying-and-pasting---registers)
@@ -112,6 +113,7 @@ J Create a jump tag
112
113
<n>^U <n>^D Move station up / down. - -
113
114
' \ y Get into Registers, Extra Commands y (yank) is not applicable -
114
115
and Yank modes, respectively
116
+
z Toggle "Force http connections" - -
115
117
? Show keys help [Valid] [Valid]
116
118
# Redraw window [Valid] [Valid]
117
119
Esc/q Quit - -
@@ -393,6 +395,22 @@ will instruct **PyRadio** to look for VLC, then MPlayer and finaly for MPV and u
393
395
**Note:** The default player to use can also be set in **PyRadio**'s [configuration file](#config-file), parameter **player** (default value is **mpv, mplayer, vlc**).
394
396
395
397
398
+
## Player connection protocol
399
+
400
+
Most radio stations use plain old http protocol to broadcast, but some of them use https.
401
+
402
+
Experience has shown that playing a **https** radio station depends on the combination of the station's configuration and the player used.
403
+
404
+
If such a station fails to play, one might as well try to use **http** protocol to connect to it.
405
+
406
+
**PyRadio** provides a way to instruct the player used to do so; the "*Force http connections*" configuration parameter. If it is *False* (the default), the player will use whatever protocol the station proposes (either **http** or **https**). When changed to **True**, all connections will use the **http** protocol.
407
+
408
+
When the selected player is initialized (at program startup), it reads this configuration parameter and acts accordingly.
409
+
410
+
If the parameter has to be changed mid-session (without restarting the program), one would press "*z*" to display the "*Connection Type*" window, where the parameter's value can be set as desired.
411
+
412
+
**Note:** Changes made using the "*Connection Type*" window are not stored; next time the program is executed, it will use whatever value the configuration parameter holds.
413
+
396
414
## Player default volume level
397
415
398
416
MPV and MPlayer, when started, use their saved (or default) volume level to play any multimedia content. Fortunately, this is not the case with VLC.
Copy file name to clipboardExpand all lines: pyradio.1
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
.\" Copyright (C) 2011 Ben Dowling <http://www.coderholic.com/pyradio>
2
2
.\" This manual is freely distributable under the terms of the GPL.
3
3
.\"
4
-
.TH PYRADIO 1 "October 2020"
4
+
.TH PYRADIO 1 "November 2020"
5
5
6
6
.SH NAME
7
7
.PP
@@ -459,6 +459,24 @@ will instruct \fBpyradio\fR to look for VLC, then MPlayer and finaly for MPV and
459
459
.IP\fBNote\fR
460
460
The default player to use can also be set in \fBpyradio\fR’s configuration file, parameter \fIplayer\fR (default value is \fImpv,mplayer,vlc\fR).
461
461
462
+
463
+
.SH PLAYER CONNECTION PROTOCOL
464
+
465
+
Most radio stations use plain old http protocol to broadcast, but some of them use https.
466
+
467
+
Experience has shown that playing a \fBhttps\fR radio station depends on the combination of the station's configuration and the player used.
468
+
469
+
If such a station fails to play, one might as well try to use \fBhttp\fR protocol to connect to it.
470
+
471
+
\fBpyradio\fR provides a way to instruct the player used to do so; the "\fIForcehttpconnections\fR" configuration parameter. If it is \fIFalse\fR (the default), the player will use whatever protocol the station proposes (either \fBhttp\fR or \fBhttps\fR). When changed to \fBTrue\fR, all connections will use the \fBhttp\fR protocol.
472
+
473
+
When the selected player is initialized (at program startup), it reads this configuration parameter and acts accordingly.
474
+
475
+
If the parameter has to be changed mid-session (without restarting the program), one would press "\fIz\fR" to display the "\fIConnectionType\fR" window, where the parameter's value can be set as desired.
476
+
477
+
.IP\fBNote\fR
478
+
Changes made using the "\fIConnectionType\fR" window are not stored; next time the program is executed, it will use whatever value the configuration parameter holds.
479
+
462
480
.SH PLAYER DEFAULT VOLUME LEVEL
463
481
.PP
464
482
\fIMPV\fR and \fIMPlayer\fR, when started, use their saved (or default) volume level to play any multimedia content. Fortunately, this is not the case with \fIVLC\fR.
@@ -766,4 +784,7 @@ On \fBMac OS\fR, these file may be installed in \fI/usr/local/share/doc/pyradio\
Copy file name to clipboardExpand all lines: pyradio/config_window.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ class PyRadioConfigWindow(object):
60
60
_help_text.append(['PyRadio will wait for this number of seconds to get a station/server message indicating that playback has actually started.', '|',
61
61
'If this does not happen within this number of seconds after the connection is initiated, PyRadio will consider the station unreachable, and display the "Failed to connect to: station" message.', '|', 'Press "h"/Left or "l"/Right to change value.',
_help_text.append(['Most radio stations use plain old http protocol to broadcast, but some of them use https.', '|', 'If this is enabled, all connections will use http; results depend on the combination of station/player.', '|', 'This value is read at program startup, use Ctrl-S to change its effect while mid-session.',
63
+
_help_text.append(['Most radio stations use plain old http protocol to broadcast, but some of them use https.', '|', 'If this parameter is enabled, all connections will use http; results depend on the combination of station/player.', '|', 'This value is read at program startup, use "z" to change its effect while mid-session.',
64
64
'|', 'Default value: False'])
65
65
_help_text.append(None)
66
66
_help_text.append(['The theme to be used by default.', '|',
0 commit comments