This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Create a Content Object
Serban Simu edited this page Nov 3, 2018
·
2 revisions
A Content Object is created in a Content Library
. In this example the Content Library ID is ilib7ZTNtob8RpatynHQy3sS1w
A Content Object is identified by an ID of the form iq__HBxcQy8Nt9kdTUPVhcbHLJ
. Each version of the Content Object is identified by a hash of the form hq__QmUuRCC1KdmQf2dSmC7LBMUk7mC7Mq6x7BUQCcXsnRgxMk
.
API reference: content-objects
Note: this is only allowed in a dev
Content Fabric
instance configured for authentication bypass
COMING SOON
The easiest way to publish video content is to use the qfab_cli
command-line client.
For help:
./qfab_cli submit video --help
./qfab_cli submit imf --help
Example:
./qfab_cli submit video --library ilibjALidS82U9EjuffFUnFWE32dHGG --name "My First Video Content" --description "Test" --source ./my-first-video-content.mp4 --log-format console --type hq__Qmf2CBb2f3k8LrMQsBb3mcsqujXJCJtQK4eVLkpBgFCegT --scriptsdir ./ondemand --caddr 0x529d72e0d6e830e3940224b0c2b572191d8d3ea7
Other useful options:
- To charge a fixed amount of credits for this content use:
--accesscharge 1.0 --accesstype paid
- To indicate that ads are available to sponsor this content use:
--sponsorlibid ilib**** --sponsorhash hq__****