Esempio n. 1
0
        public void deleteVideoTest()
        {
            var guid  = this.api.uploadVideo("./examples/video.mp4");
            var query = new VideoProcessQuery {
                guid        = guid,
                title       = "for deletion",
                description = ".net api test",
                profile     = VideoProfile.ORIGINAL
            };
            var vidId = this.api.processVideo(query);
            var res   = this.api.deleteVideo(vidId);

            this.assertEqual(res, true, "videoDelete");
        }
Esempio n. 2
0
//    public void editVideoTest() {
//      var query = new VideoEditQuery {
//        title = this.RandomString(7),
//        id = this.videoId
//      };
//      var res = this.api.editVideo(query);
//      this.assertEqual(res, true, "editVideo");
//    }


        public void videoUploadTest()
        {
            var guid  = this.api.uploadVideo("./examples/video.mp4");
            var title = String.Concat("api-net-", this.RandomString(5));

            var query = new VideoProcessQuery {
                guid        = guid,
                title       = title,
                description = ".net api test",
                profile     = VideoProfile.ORIGINAL
            };
            var vidId = this.api.processVideo(query);
            var vid   = this.api.getVideoDetails(vidId);

            this.assertEqual(vid.videoStatus.id, 11, "videoUpload");

            // clean up
            this.api.deleteVideo(vidId);
        }