()
| 48 | |
| 49 | // Start and stop the transfer process |
| 50 | function startStop() { |
| 51 | if (isTransferring) { |
| 52 | select('#startStop').html('Start'); |
| 53 | } else { |
| 54 | select('#startStop').html('Stop'); |
| 55 | // Make a transfer using the video |
| 56 | style.transfer(gotResult); |
| 57 | } |
| 58 | isTransferring = !isTransferring; |
| 59 | } |
| 60 | |
| 61 | // When we get the results, update the result image src |
| 62 | function gotResult(err, img) { |