projects
/
profile
/
ivi
/
MediaPlayer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
991bdbc
)
TIVI-2404: Handle case where tizen.speech is undefined
40/13940/1
accepted/tizen/ivi/20131219.023406
submit/tizen/20131218.195059
author
Rusty Lynch
<rusty.lynch@intel.com>
Wed, 18 Dec 2013 19:46:26 +0000
(11:46 -0800)
committer
Rusty Lynch
<rusty.lynch@intel.com>
Wed, 18 Dec 2013 19:46:26 +0000
(11:46 -0800)
Change-Id: I2dacf986e4d3da38396d4e306a8866ff1720f686
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
js/main.js
patch
|
blob
|
history
diff --git
a/js/main.js
b/js/main.js
index
5331259
..
243005a
100644
(file)
--- a/
js/main.js
+++ b/
js/main.js
@@
-597,8
+597,12
@@
function init()
//Setup voice control
if (tizen.speech)
setupSpeech();
- else
+ else
{
console.log("MediaPlayer: Speech Recognition not running, voice control will be unavailable");
+ speechObj = {
+ vocalizeString: function(item) { console.log(item); }
+ };
+ }
audioPlayer = new MediaPlayer("audio");
videoPlayer = new MediaPlayer("video");