multimediaview: Add an error message to Multimediaview
authorWonseop Kim <wonseop.kim@samsung.com>
Tue, 26 Feb 2013 12:01:13 +0000 (21:01 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Thu, 7 Mar 2013 12:10:31 +0000 (21:10 +0900)
If 'duration' property of <video> is not a numeric value,
Multimediaview will display 'Playback Error' message on the duration label.

Change-Id: I8a19eade0ecf2ed5854cd376edf413af4d6403f4

src/js/widgets/jquery.mobile.tizen.multimediaview.js

index 16cd54b..2f705ee 100644 (file)
@@ -610,8 +610,8 @@ define( [ '../jquery.mobile.tizen.scrollview' ], function ( ) {
                },
 
                _convertTimeFormat: function ( systime ) {
-                       if ( isNaN( systime ) ) {
-                               return "00:00:00";
+                       if ( !$.isNumeric( systime ) ) {
+                               return "Playback Error";
                        }
 
                        var ss = parseInt( systime % 60, 10 ).toString(),