All Products
Search
Document Center

SetEditingProjectMaterials

Last Updated: Jul 11, 2019

Description

You can call this operation to set materials to be edited for an online editing project.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to SetEditingProjectMaterials.
ProjectId String Yes The ID of the online editing project.
MaterialIds String Yes The ID of the material. Separate multiple material IDs with commas (,). A material ID is a media asset ID, such as a video ID, an image ID, or an attached media asset ID.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
MaterialList Material[] The list of materials in the online editing project. For more information about the structure, see Material.

API examples

Sample request

http://vod.cn-shanghai.aliyuncs.com/?Action=SetEditingProjectMaterials&ProjectId=fb2101bf24bf41c78b2754cb318787dc&MaterialIds=9e3101bf24bf41c78b275123318788ca&Format=JSON&<Common request parameters>

Sample response

JSON format

{
    "RequestId": "746FFA07-8BBB-468B-8BB1-3E94E3B2915E",
    "MaterialList": {
        "Material": [
            {
                "CoverURL": "http://vod.testtestapasaravideo.cn/aivideocover/46fa444aa38d77ae3c44065cb9250f6c/Index_1.jpg",
                "Status": "Normal",
                "Sprites": {
                    "Sprite": [
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_big_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00001.jpg%3Fauth_key%3D"
                    ]
                },
                "CreateTime": "2017-10-18 21:42:46",
                "Duration": 15.15999984741211,
                "Snapshots": {
                    "Snapshot": [
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00001.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00002.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00003.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00004.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00005.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00006.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00007.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F0f325c15738d4bfa85456f2a7e91b2ff00008.jpg%3Fauth_key%3D"
                    ]
                },
                "MaterialId": "0f325c15738d4bfa85456f2a7e91b2ff",
                "ModifyTime": "2017-10-18 21:42:51",
                "Title": "487_copy 6",
                "Size": 1682694
            },
            {
                "CoverURL": "http://vod.testtestapasaravideo.cn/aivideocover/46fa444aa38d77ae3c44065cb9250f6c/Index_1.jpg",
                "Status": "Normal",
                "Sprites": {
                    "Sprite": [
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_big_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100001.jpg%3Fauth_key%3D"
                    ]
                },
                "CreateTime": "2017-10-18 21:42:17",
                "Duration": 15.15999984741211,
                "Snapshots": {
                    "Snapshot": [
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100001.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100002.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100003.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100004.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100005.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100006.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100007.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F07c2b35dd2f342da98b8c3e45e456a4100008.jpg%3Fauth_key%3D"
                    ]
                },
                "MaterialId": "07c2b35dd2f342da98b8c3e45e456a41",
                "ModifyTime": "2017-10-18 21:42:22",
                "Title": "487_copy 6",
                "Size": 1682694
            },
            {
                "CoverURL": "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100001.jpg%3Fauth_key%3D",
                "Status": "Normal",
                "Sprites": {
                    "Sprite": [
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_big_snapshot%2F85befc4118b84c25a7366723e53b80b100001.jpg%3Fauth_key%3D"
                    ]
                },
                "CreateTime": "2017-10-19 10:48:12",
                "Duration": 15.15999984741211,
                "Snapshots": {
                    "Snapshot": [
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100001.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100002.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100003.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100004.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100005.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100006.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100007.jpg%3Fauth_key%3D",
                        "http%3A%2F%2Fvod.testtestapasaravideo.cn%2Fmaterial_small_snapshot%2F85befc4118b84c25a7366723e53b80b100008.jpg%3Fauth_key%3D"
                    ]
                },
                "MaterialId": "85befc4118b84c25a7366723e53b80b1",
                "ModifyTime": "2017-10-19 10:48:17",
                "Title": "487_",
                "Size": 1682694
            }
        ]
    }
}

SDK examples

We recommend that you use a server SDK to call this operation. For more information about the sample code used to call this operation in various languages, see the following topics: