943fd24a39463840adb84210ae18187a05e27935
[profile/ivi/MediaPlayer.git] / js / imageControls.js
1 /*
2  * Copyright (c) 2013, Intel Corporation.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 var slideshowInterval;
11
12 ImageControls = function()
13 {
14     this.paused = true;
15 }
16
17 ImageControls.prototype.play = function()
18 {
19         this.paused = false;
20     slideshowInterval = setInterval(function(){
21         nextButtonClick();
22     }, 3000);
23 }
24
25 ImageControls.prototype.pause = function()
26 {
27         this.paused = true;
28     clearInterval(slideshowInterval);
29 }