[Tizen-submit] 21500: Changes to Tizen:IVI/MediaPlayer

noreply at tizen.org noreply at tizen.org
Fri Feb 21 21:50:48 GMT 2014


Hi,
brianjjones have made the following changes to MediaPlayer in project Tizen:IVI. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #21500

  submit:       Tizen:IVI:build/MediaPlayer(cleanup) -> Tizen:IVI


Message:
Submitter: brianjjones <brian.j.jones at intel.com>
Comments: Adding back in tizen.vehicle reference.  Also adding a check for which menu should be shown at startup
Git project: profile/ivi/MediaPlayer
Tag: submit/tizen/20140221.215118
Commit: 30c7227913d62a08cc2a24d50b9239a0158c2160 Adding back in tizen.vehicle reference.  Also adding a check for which menu should be shown at startup

State:   new        2014-02-21T21:50:29 tizenrobot
Comment: <no comment>
changes files:
--------------
--- MediaPlayer.changes
+++ MediaPlayer.changes
@@ -0,0 +1,3 @@
+* Fri Feb 21 2014 brianjjones <brian.j.jones at intel.com> accepted/tizen/ivi/20140128.214305 at dcfa371
+- Adding back in tizen.vehicle reference.  Also adding a check for which menu should be shown at startup
+

spec files:
-----------
--- MediaPlayer.spec
+++ MediaPlayer.spec
@@ -1,5 +1,5 @@
 Name:       MediaPlayer
-VCS:        profile/ivi/MediaPlayer#7f2522967d6935426a056c9e2ac1ab9334fef80d
+VCS:        profile/ivi/MediaPlayer#30c7227913d62a08cc2a24d50b9239a0158c2160
 Summary:    A HTML media player application
 Version:    0.0.1
 Release:    1

other changes:
--------------

++++++ MediaPlayer-0.0.1.tar.bz2
--- config.xml
+++ config.xml
@@ -8,4 +8,5 @@
     <tizen:privilege name="http://tizen.org/privilege/speech"/>
     <tizen:privilege name="http://tizen.org/privilege/content.read"/>
     <tizen:privilege name="http://tizen.org/privilege/content.write"/>
+    <tizen:privilege name="http://tizen.org/privilege/vehicle"/>
 </widget>
--- js/main.js
+++ js/main.js
@@ -42,6 +42,7 @@
 var playBarHeight;
 var boxWidth;
 var textStartX;
+var remoteMediaSearchAttempts = 0;
 
 var mainMenuTitleTemplateLandscape = {"font" : "oblique bolder 18pt arial", "lineWidth" : 6.5, "fillStyle" : "black", "strokeStyle" : "white", "textAlign" : "left",
 		"largeShadow" : 8, "shadowOffsetX" : 0, "shadowOffsetY" : 0, "shadowBlur" : 45, "shadowColor" : "rgba(255, 187, 0, 0.4)"};
@@ -362,7 +363,7 @@
 {
 	console.log("MediaPlayer in showMainMenu, clearing all localStorage...");
 	currentMenu = "main";
-	localStorage.prevMenu = "MAIN";
+	delete localStorage.prevMenu;
 	localStorage.prevAudioTime = undefined;
 	localStorage.prevAudioTrack = undefined;
 	localStorage.prevVideo = undefined;
@@ -620,7 +621,7 @@
 	//Resize all items and search for local media
 	resizeAll();
 
-	if (localStorage.prevMenu && localStorage.prevMenu !== "MAIN")
+	if (localStorage.prevMenu && localStorage.prevMenu !== undefined && localStorage.prevMenu !== "MAIN")
 		changeMenu(localStorage.prevMenu)
 	else
 		showMainMenu();
@@ -635,7 +636,14 @@
 		//Currently no success signal, so continue trying until a server is found.  Once that
 		//happens, clear the stopServerSearch interval
 
-		stopServerSearch = setInterval(function(){console.log("MediaPlayer searching for remote media..."); tizen.mediaserver.scanNetwork(foundMediaServer);}, 5000);
+		stopServerSearch = setInterval(function(){
+								console.log("MediaPlayer searching for remote media...");
+								if (remoteMediaSearchAttempts < 5)
+									tizen.mediaserver.scanNetwork(foundMediaServer);
+								else
+									clearInterval(stopServerSearch);
+								remoteMediaSearchAttempts++;
+							 }, 5000);
 	}
 	else
 		console.log("MediaPlayer: No DLNA server running, using local media only...");
--- packaging/MediaPlayer.changes
+++ packaging/MediaPlayer.changes
@@ -1,3 +1,6 @@
+* Fri Feb 21 2014 brianjjones <brian.j.jones at intel.com> accepted/tizen/ivi/20140128.214305 at dcfa371
+- Adding back in tizen.vehicle reference.  Also adding a check for which menu should be shown at startup
+
 * Wed Dec 18 2013 brianjjones <brian.j.jones at intel.com> submit/tizen/20131218.195059 at b3964db
 - Adding requirement to the spec for speech-recognition and wrt-plugins-ivi
 


More information about the Tizen-submit mailing list