Patching Icecast2 audio issue, fixes #288
This commit is contained in:
@ -58558,7 +58558,7 @@ var PlaybackControls = function (_React$Component) {
|
||||
return _react2.default.createElement(
|
||||
'div',
|
||||
{ className: this.state.expanded ? "expanded playback-controls" : "playback-controls" },
|
||||
this.props.http_streaming_enabled && this.props.http_streaming_active && this.props.play_state == 'playing' ? _react2.default.createElement(
|
||||
this.props.http_streaming_enabled && this.props.play_state == 'playing' ? _react2.default.createElement(
|
||||
'audio',
|
||||
{ id: 'http-streamer', autoPlay: true, preload: 'none' },
|
||||
_react2.default.createElement('source', { src: this.props.http_streaming_url, type: "audio/" + this.props.http_streaming_encoding })
|
||||
@ -58687,7 +58687,6 @@ var PlaybackControls = function (_React$Component) {
|
||||
var mapStateToProps = function mapStateToProps(state, ownProps) {
|
||||
return {
|
||||
snapcast_enabled: state.pusher.config.snapcast_enabled,
|
||||
http_streaming_active: state.core.http_streaming_active,
|
||||
http_streaming_enabled: state.core.http_streaming_enabled,
|
||||
http_streaming_encoding: state.core.http_streaming_encoding,
|
||||
http_streaming_url: state.core.http_streaming_url,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -77,7 +77,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1527842697";
|
||||
var build = "1527844844";
|
||||
var version = "3.19.0";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -73,7 +73,7 @@ class PlaybackControls extends React.Component{
|
||||
return (
|
||||
<div className={(this.state.expanded ? "expanded playback-controls" : "playback-controls")}>
|
||||
|
||||
{this.props.http_streaming_enabled && this.props.http_streaming_active && this.props.play_state == 'playing' ? <audio id="http-streamer" autoPlay preload="none">
|
||||
{this.props.http_streaming_enabled && this.props.play_state == 'playing' ? <audio id="http-streamer" autoPlay preload="none">
|
||||
<source src={this.props.http_streaming_url} type={"audio/"+this.props.http_streaming_encoding} />
|
||||
</audio> : null}
|
||||
|
||||
@ -151,7 +151,6 @@ class PlaybackControls extends React.Component{
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
return {
|
||||
snapcast_enabled: state.pusher.config.snapcast_enabled,
|
||||
http_streaming_active: state.core.http_streaming_active,
|
||||
http_streaming_enabled: state.core.http_streaming_enabled,
|
||||
http_streaming_encoding: state.core.http_streaming_encoding,
|
||||
http_streaming_url: state.core.http_streaming_url,
|
||||
|
||||
Reference in New Issue
Block a user