Video Import

10 Dec 2009 - 14:25 | Version 4 |

Die Videos können mit folgendem API Call importiert werden.

Test System

curl --cacert .cert/api.cast.switch.ch/quovadis_ca.crt -E .cert/api.cast.switch.ch/daniel.crt \
    --key .cert/api.cast.switch.ch/daniel_no_passphrase.key \
    -H "Content-type: text/xml" \
    -d "<?xml version="1.0" encoding="UTF-8"?><clip><import><object>unterrichtsvideos_ch/ID_12_LK3.mov</object><type>video</type><options><auto_publish>1</auto_publish></options></import></clip>" \
    https://cast-test.switch.ch/api/v1/users/166732@switch.ch/channels/11x3clcb2k/clips.xml

w2mfq2m1g => Channel 2523 "secure"

24933@phz.ch => philippe.braxmeier@phz.ch

ID_12_LK3.mov => ID des Videos

password => Passwort des Zertifikates

Produktiv System

curl -k --cacert quovadis_ca.crt -E /etc/pki/unterrichtsvideos_api/unterrichtsvideos.ch.crt:password  \
    --key unterrichtsvideos.ch.key \
    -H "Content-type: text/xml" \
    -d "<?xml version="1.0" encoding="UTF-8"?><clip><import><object>unterrichtsvideos_ch/ID_12_LK3.mov</object><type>video</type><options><auto_publish>1</auto_publish></options></import></clip>" \
    https://cast.switch.ch/api/v1/users/24933@phz.ch/channels/w2mfq2m1g/clips.xml

w2mfq2m1g => Channel 2523 "secure"

24933@phz.ch => philippe.braxmeier@phz.ch

ID_12_LK3.mov => ID des Videos

password => Passwort des Zertifikates
logo_phsz.png

Dies ist ein Wiki des Fachkerns Medien und Informatik der Pädagogischen Hochschule Schwyz. Für Fragen wenden Sie sich bitte an beat.doebeli@phsz.ch