Created
February 27, 2015 03:26
-
-
Save anonymous/8c0f30f1bf68f732b4a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller ('VideoCtrl', function($scope, $cordovaCapture, VideoService){ | |
$scope.clip = ''; | |
$scope.urlForClipThumb = function(clipUrl) { | |
var name = clipUrl.substr(clipUrl.lastIndexOf('/') + 1); | |
var trueOrigin = cordova.file.dataDirectory + name; | |
var sliced = trueOrigin.slice(0, -4); | |
return sliced + '.png'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment