Greetings all, I don’t know if this has been answered before.
I am trying to do this.
var app = new Framework7({
// App root element
root: '#app',
// App Name
name: 'My App',
// App id
id: 'com.myapp.test',
});
var ajaxObj = function(){
photos = [{
html: '<video src="assets/video/1.mp4" height="auto" controls="controls" onclick="this.paused ? this.play() : this.pause();"></video>',
caption: "Hier Soir avec DJ Montana",
}];
return photos;
}
var myPhotoBrowserPopupDark = app.photoBrowser.create({
ajaxObj,
theme: 'dark',
type: 'standalone'
});
The photo does not display but the caption those and it loads indefinitely. I want to do this because I am trying to load the data via ajax (cross-origin. I am implementing this with jquery, tried the framework7 app.request in vain)