this.playerControls.pause();
this.updateMediaName(this.content[this.listIndex].artists[0], this.content[this.listIndex].title, this.content[this.listIndex].coverArt);
$("#audioSrc").attr("src", this.content[this.listIndex].contentURI);
-
- //Only store track to localStorage if it's a local file, and current menu is the Audio menu
- if (!this.content[this.listIndex].remoteFile && localStorage.prevMenu === "mainMusicButton")
- {
- localStorage.prevAudioTrack = this.content[this.listIndex].contentURI;
- }
- else
- {
- localStorage.prevAudioTime = undefined;
- localStorage.prevAudioTrack = undefined;
- }
-
this.playerControls.load();
}
console.log("MediaPlayer in playLoadedMedia");
this.currentFileLoaded = true;
+ //Only store track to localStorage if it's a local file, and current menu is the Audio menu
+ if (!this.content[this.listIndex].remoteFile && localStorage.prevMenu === "mainMusicButton")
+ {
+ localStorage.prevAudioTrack = this.content[this.listIndex].contentURI;
+ }
+ else
+ {
+ localStorage.prevAudioTime = undefined;
+ localStorage.prevAudioTrack = undefined;
+ }
+
this.currentAudioContent = this.content[this.listIndex];
if (this.loadPrevAudio)
{
this.listIndex = index;
+ $("#imagePlayer").css("background", "url(" + this.content[this.listIndex].contentURI + ") no-repeat center");
+ $("#imagePlayer").css("background-size", "contain");
+
if (!this.content[this.listIndex].remoteFile)
{
localStorage.prevImage = this.content[this.listIndex].contentURI;
{
localStorage.prevImage = undefined;
}
-
- $("#imagePlayer").css("background", "url(" + this.content[this.listIndex].contentURI + ") no-repeat center");
- $("#imagePlayer").css("background-size", "contain");
}
ImagePlayer.prototype.makeListItem = function(j, k)
{
this.listIndex = index;
this.loadAndPlay = play;
- this.currentVideoContent = this.content[this.listIndex];
this.playerControls.pause();
$("#videoSrc").attr("src", this.content[this.listIndex].contentURI);
+ this.playerControls.load();
+}
+
+VideoPlayer.prototype.videoLoaded = function()
+{
+ this.currentVideoContent = this.content[this.listIndex];
//Only store track to localStorage if it's a local file, and current menu is the Video menu
if (!this.content[this.listIndex].remoteFile && localStorage.prevMenu === "mainVideoButton")
localStorage.prevVideoTime = undefined;
}
- this.playerControls.load();
-}
-
-VideoPlayer.prototype.videoLoaded = function()
-{
if (this.loadPrevVideo)
{
this.playerControls.currentTime = localStorage.prevVideoTime;
+* Tue Oct 15 2013 brianjjones <brian.j.jones@intel.com> submit/tizen/20131015.010041@0cdd066
+- Saving of the localStorage now occurs after the file has successfully loaded
+
* Mon Oct 14 2013 brianjjones <brian.j.jones@intel.com> submit/tizen/20131010.205318@a65dc75
- Image player will now remember what image it was last on