Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2015 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8c0f30f1bf68f732b4a3 to your computer and use it in GitHub Desktop.
Save anonymous/8c0f30f1bf68f732b4a3 to your computer and use it in GitHub Desktop.
.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