Entidad FileInfo y estructuras derivadas (2022/06)
12 min
fileinfo está relacionado principalmente con la entidad presentation, pero también se utiliza de forma limitada por otras entidades consulte asignación de referencias de tipos de medios docid\ kxqzkkwkk 7xgnpelzjbo para obtener más información sobre el uso de este tipo de datos la colección fileinfo puede contener los siguientes elementos en representación json entidad dynamicplaylistfile dynamicplaylistflle (propiedad 'fileinfo type' establecida en "dynamicplaylist") se deriva de la estructura 'storedfile' y se utiliza para hacer referencia a listas de reproducción dinámicas existentes en bsn por id consulte el siguiente ejemplo (sus valores variarán en todos los casos excepto en "type") { "type" "dynamicplaylist", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "my first dynamic playlist", // \[string] "size" 912, // \[uint] "hash" "sha1\ e7ba1a1668ab68e6a0090a0a950d43a25a316d8e", // \[string] "creationdate" "2017 01 15t23 46 46 287z", // \[datetime] "lastmodifieddate" "2018 01 11t10 17 17 960z", // \[datetime] "id" 31711, // \[int] "path" "http //localhost 8081/content/dynamicplaylists/my first dynamic playlist xml" // \[uri] } entidad livemediafeedfile livemediafeedfile (propiedad 'fileinfo type' establecida en "livemediafeed") se deriva de la estructura 'storedfile' y se utiliza para hacer referencia a fuentes de medios en vivo existentes en bsn por id consulte el siguiente ejemplo (sus valores variarán en todos los casos excepto en "type") { "type" "livemediafeed", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "my first live media feed", // \[string] "size" 378, // \[uint] "hash" "sha1 4da06fee7fdda07511bc4a876cf79989d034550b", // \[string] "creationdate" "2017 02 08t00 17 38 130z", // \[datetime] "lastmodifieddate" "2017 06 08t11 32 41 280z", // \[datetime] "id" 47324, // \[int] "path" "http //localhost 8081/content/livemediafeeds/my first live media feed xml" // \[uri] } entidad livetextfeedfile livetextfeedfile (propiedad 'fileinfo type' establecida en "livetextfeed") se deriva de la estructura 'storedfile' y se utiliza para hacer referencia a fuentes de texto en vivo existentes en bsn por id consulte el siguiente ejemplo (sus valores variarán en todos los casos excepto en "type") { "type" "livetextfeed", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "my first live text feed", // \[string] "size" 912, // \[uint] "hash" "sha1 2c95b879dd75a398cb37aaa7851f3acbc5ce7419", // \[string] "creationdate" "2017 02 08t00 17 57 573z", // \[datetime] "lastmodifieddate" "2018 01 09t23 39 02 123z", // \[datetime] "id" 47325, // \[int] "path" "http //localhost 8081/content/eugene/feeds/my first live text feed xml" // \[uri] } asignación de referencias de tipos de medios dada la jerarquía de tipos de datos fileinfo, este gráfico describe la asignación entre tipos de medios y cómo hacer referencia a ellos en una solicitud de creación o actualización de presentaciones tenga en cuenta que los elementos se actualizarán al tipo coincidente más alto en la respuesta del servidor por ejemplo, si hace referencia a "dynamic playlist" mediante el elemento "storedfile", se devolverá como un "dynamicplaylistfile" (externo) auxiliar hoja de estilos fuente texto imagen video audio lista de reproducción dinámica lista de reproducción etiquetada fuente de texto en vivo fuente multimedia en vivo página web newfile x x x x x x x x remotefile x x x x x x x x x x x x x storedfile x x x x x x x x x x x x mediafile x x x x dynamicplaylistfile x taggedplaylistfile x livetextfeedfile x livemediafeedfile x webpagefile x entidad mediafile mediafile (propiedad 'fileinfo type' establecida en "media") derivada de la estructura 'storedfile', y se utiliza para hacer referencia a archivos cargados visibles en la biblioteca de contenido de bsn por id consulte el ejemplo a continuación (sus valores variarán para todos excepto "type") { "type" "media", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "odessa rain jpg", // \[string] "size" 226675, // \[uint] "hash" "sha1 4b55491958fc06e904d78bf2c965b47629fc5d16", // \[string] "creationdate" "2017 05 22t16 20 26 430z", // \[datetime] "lastmodifieddate" "2016 09 20t09 39 42 253z", // \[datetime] "id" 64947, // \[int] "mediatype" "image", // one of { "text", "image", "video", "audio" } enumeration values "path" "http //localhost 8081/content/images/782e4c7d f5a1 4b21 bd76 3706fff20063 jpg" // \[uri] } entidad newfile newfile (propiedad 'fileinfo type' establecida en "new") se deriva de la estructura abstracta 'fileinfo', y se utiliza para cargar archivos pequeños y para la creación o actualización completa de presentaciones consulte el ejemplo a continuación (sus valores variarán para todos excepto "type") { "type" "new", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "hello txt", // \[string] "size" 12, // \[uint] "hash" "", // \[string] "creationdate" null, // \[datetime] "lastmodifieddate" null, // \[datetime] "body" "sgvsbg8gv29ybgqh", // \[string] "transferencoding" "base64" // one of { "none", "base64" } enumeration values } entidad remotefile remotefile (propiedad 'fileinfo type' establecida en "remote") se deriva de la estructura abstracta 'fileinfo', y se utiliza para hacer referencia a recursos remotos o incluso archivos cargados en bsn por url consulte el ejemplo a continuación (sus valores variarán para todos excepto "type") { "type" "remote", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "autoplugins brs", // \[string] "size" 222, // \[uint] "hash" "sha1\ ec121a89dfee4e62aa94fac4b9d80f13ea6b0fd6", // \[string] "creationdate" null, // \[datetime] "lastmodifieddate" null, // \[datetime] "path" "https //bsn staging s3 amazonaws com/content/autoplugins/autoplugins ec121a89dfee4e62aa94fac4b9d80f13ea6b0fd6 brs" // one of { "none", "base64" } enumeration values } entidad storedfile storedfile (propiedad 'fileinfo type' establecida en "stored") se deriva de la estructura abstracta 'fileinfo', y se utiliza para hacer referencia a cualquier archivo cargado en bsn por id consulte el ejemplo a continuación (sus valores variarán para todos excepto "type") { "type" "stored", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "autoplugins brs", // \[string] "size" 222, // \[uint] "hash" "sha1\ ec121a89dfee4e62aa94fac4b9d80f13ea6b0fd6", // \[string] "creationdate" null, // \[datetime] "lastmodifieddate" null, // \[datetime] "id" 9804728, // \[int] "path" "https //bsn staging s3 amazonaws com/content/autoplugins/autoplugins ec121a89dfee4e62aa94fac4b9d80f13ea6b0fd6 brs" // \[uri] } entidad taggedplaylistfile taggedplaylistfile (propiedad 'fileinfo type' establecida en "taggedplaylist") se deriva de la estructura 'storedfile', y se utiliza para hacer referencia a listas de reproducción etiquetadas existentes en bsn por id consulte el ejemplo a continuación (sus valores variarán para todos excepto "type") { "type" "taggedplaylist", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "my first tagged playlist", // \[string] "size" 0, // \[uint] "hash" "sha1\ e7ba1a1668ab68e6a0090a0a950d43a25a316d8e", // \[string] "creationdate" "2017 02 08t00 00 55 273z", // \[datetime] "lastmodifieddate" "2017 02 08t00 00 55 273z", // \[datetime] "id" 47323, // \[int] "path" "http //localhost 8080/bs/getfile ashx?type=taggedplaylist\&token=7e2dbc0cc21e2449d06ca32836ad86bb" // \[uri] } entidad webpagefile webpagefile (propiedad 'fileinfo type' establecida en "webpage") se deriva de la estructura 'storedfile', y se utiliza para hacer referencia a páginas web (normales) cargadas en bsn por id consulte el ejemplo a continuación (sus valores variarán para todos excepto "type") { "type" "webpage", // \[string], structure data type visible only in json representation and used by de serializer to determine expected property set of this object instance "name" "my first web page", // \[string] "size" 20224, // \[uint] "hash" "sha1 1f224e31b9265062be58e7d12fe3332e03536d48", // \[string] "creationdate" "2017 02 19t20 10 11 287z", // \[datetime] "lastmodifieddate" "2016 12 01t23 46 35 793z", // \[datetime] "id" 47487, // \[int] "path" "http //localhost 8081/content/webpages/9184f22b 51da 42e3 9900 c9c5bba03e6e html" // \[uri] }