Created
February 3, 2016 18:38
-
-
Save zeryx/732d81437db40a5f98cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* 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