"UNION", [this.audioTypeFilter, this.videoTypeFilter]);
this.sortMode = new tizen.SortMode("trackNumber", "ASC");
- this.mediaSource = tizen.mediacontent.getLocalMediaSource();
};
this.scan = function() {
this.mediaItems = [];
this.fetchOffset = 0;
- this.mediaSource.findItems(
- this.findItemsCB.bind(this),
+ tizen.content.find(
+ this.findCB.bind(this),
this.errorCB.bind(this),
null,
this.typeFilter,
throw new Error(error.name);
};
- this.findItemsCB = function(items) {
+ this.findCB = function(items) {
var self = this;
items.forEach(function(item, index, items) {
if (items.length == this.fetchCount) {
// There *might* be more items.
this.fetchOffset += this.fetchCount;
- this.mediaSource.findItems(
- this.findItemsCB.bind(this),
+ tizen.content.find(
+ this.findCB.bind(this),
this.errorCB.bind(this),
null,
this.typeFilter,
<?xml version="1.0" encoding="UTF-8"?>\r
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://otc.intel.com/hoofbeats-unittests" version="1.0.0" viewmodes="fullscreen">\r
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://otc.intel.com/hoofbeats-unittests" version="1.0.0">\r
<name>Hoofbeats Unit Tests</name>\r
<icon src="icon.png"/>\r
<tizen:application id="1234567891" required_version="1.0"/>\r
<access origin="*" subdomains="true"/>\r
\r
<feature name="http://tizen.org/privilege/application" required="false"/>\r
- <feature name="http://tizen.org/privilege/content" required="false"/>\r
+ <feature name="http://tizen.org/privilege/content.read" required="true"/>\r
<feature name="http://tizen.org/privilege/filesystem" required="false"/>\r
<feature name="http://tizen.org/privilege/time" required="true"/>\r
<feature name="http://tizen.org/privilege/tizen" required="true"/>\r