fix local audio playing on mobile

This commit is contained in:
Egor 2017-03-18 16:00:42 -07:00
parent cb301fa998
commit 1c91d410d4
2 changed files with 5 additions and 7 deletions

View file

@ -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'] });
});
}
} }
} }
} }

View file

@ -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" />