fix local audio playing on mobile
This commit is contained in:
parent
629909f8fe
commit
ac40763241
2 changed files with 5 additions and 7 deletions
|
|
@ -639,12 +639,10 @@ export default Component.extend(helperMixin, visualizerMixin, {
|
||||||
if (files.hasOwnProperty(key)) {
|
if (files.hasOwnProperty(key)) {
|
||||||
let file = files[key];
|
let file = files[key];
|
||||||
|
|
||||||
if (file.type.startsWith('audio')) {
|
ID3.loadTags("local", updatePlayQueue.bind(file), {
|
||||||
ID3.loadTags("local", updatePlayQueue.bind(file), {
|
dataReader: new FileAPIReader(file),
|
||||||
dataReader: new FileAPIReader(file),
|
tags: ['title', 'artist', 'album', 'track', 'picture']
|
||||||
tags: ['title', 'artist', 'album', 'track', 'picture']
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<widget id="com.hoboman313.huegasm" version="1.2.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
<widget id="com.hoboman313.huegasm" version="1.2.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||||
<name>Huegasm</name>
|
<name>Huegasm</name>
|
||||||
<content src="index.html" />
|
<content src="index.html" />
|
||||||
<plugin name="cordova-plugin-inappbrowser" spec="~1.6.1" />
|
<plugin name="cordova-plugin-inappbrowser" spec="~1.6.1" />
|
||||||
|
|
|
||||||
Reference in a new issue