Skip to content

Instantly share code, notes, and snippets.

@zeryx
Created February 3, 2016 18:38
Show Gist options
  • Save zeryx/732d81437db40a5f98cd to your computer and use it in GitHub Desktop.
Save zeryx/732d81437db40a5f98cd to your computer and use it in GitHub Desktop.
/**
* Created by james on 27/01/16.
*/
import algorithmia.VideoSplits._
import com.algorithmia.Algorithmia
import org.scalatest._
class publishedSpec extends FunSuite with Matchers{
test("should properly return file"){
val input = SplitVideo("data://zeryx/testing/bird.avi", "00:00:00.000", "00:00:04.000", None)
System.out.println("working...")
val client = Algorithmia.client(System.getenv("ALGORITHMIA_API_KEY"))
val site = client.algo("algo://zeryx/VideoSplits/5c3bbc1dbfb280017ee2486d956404b7c4c4c23a").pipe(input)
val response = site
System.out.println(response.asJsonString() )
site.isSuccess shouldBe true
}
}
//{"video" : "data://zeryx/videoSplit/drop.avi", "cutStartTime" : "00:00:00.000", "cutEndTime" : "00:00:04.000", "outputFormat": null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment