Rev 7138 | Rev 9919 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !if $wims_read_parm!=slib_header |
2 | !goto proc |
||
3 | !endif |
||
4158 | bpr | 4 | |
5 | |||
4349 | bpr | 6 | slib_author=Bernadette, Perrin-Riou |
5436 | bpr | 7 | ADDRESS=!record 0 of data/swac/packs |
20 | reyssat | 8 | slib_example=\imagedir/exemple.mp3\ |
5436 | bpr | 9 | http://$ADDRESS/eng-balm-verbs/mp3/eng-I_bought.mp3\ |
10 | http://$ADDRESS/eng-balm-verbs/mp3/eng-I_bought.mp3,width="100" height=20,player=dewplayer\ |
||
11 | http://$ADDRESS/eng-balm-verbs/mp3/eng-I_bought.mp3,,player=hbs_mp3_player\ |
||
12 | http://$ADDRESS/eng-balm-verbs/mp3/eng-I_bought.mp3,,player=player_mp3_multi |
||
20 | reyssat | 13 | !exit |
14 | |||
15 | :proc |
||
979 | bpr | 16 | !!!if ...adm/ isin ...$module or .. isin $wims_read_parm or $wims_read_parm=$empty |
17 | !! !exit |
||
18 | !!!endif |
||
7138 | bpr | 19 | ADDRESS=!record 0 of data/swac/packs |
7320 | bpr | 20 | !reset slib_out slib_player slib_son slib_option slib_option1 |
677 | bpr | 21 | !distribute items $wims_read_parm into slib_son,slib_option,slib_option1 |
20 | reyssat | 22 | |
677 | bpr | 23 | slib_option2 = !getopt option in $slib_option1 |
24 | slib_player=!getopt player in $slib_option1 |
||
20 | reyssat | 25 | |
677 | bpr | 26 | !if rename iswordof $slib_option |
20 | reyssat | 27 | slib_son=!rename $slib_son |
28 | !endif |
||
4765 | bpr | 29 | slib_sontest=!replace internal . by , in $slib_son |
7030 | bpr | 30 | !if $(slib_sontest[-1]) notwordof mp3 ogg |
6680 | bpr | 31 | slib_sontest=mp3 |
32 | !endif |
||
7320 | bpr | 33 | !! laisser slib_out sur une seule ligne (pour correspondance) |
4765 | bpr | 34 | slib_son=!replace internal cgi? by $(slib_sontest[-1])? in $slib_son |
6657 | bpr | 35 | !if $slib_player= |
36 | slib_objecttag=<object><embed src="$slib_son" $slib_option>\ |
||
6664 | bpr | 37 | <noembed> <bgsound src="$slib_son" /></noembed>\ |
6656 | bpr | 38 | </embed></object> |
7320 | bpr | 39 | |
6664 | bpr | 40 | slib_out=<audio controls="controls" class="wims_audio" $slib_option> |
6656 | bpr | 41 | !if .mp3XXXX isin $(slib_son)XXXX |
6657 | bpr | 42 | slib_out=$slib_objecttag |
7320 | bpr | 43 | |
6656 | bpr | 44 | !else |
45 | !if .oggXXXX isin $(slib_son)XXXX |
||
7320 | bpr | 46 | slib_out=$slib_out<source src="$slib_son" type="audio/ogg" />$slib_objecttag |
6656 | bpr | 47 | !else |
7138 | bpr | 48 | slib_son_ogg=$slib_son |
7320 | bpr | 49 | !if $ADDRESS isin $slib_son_ogg |
7138 | bpr | 50 | slib_son_ogg=!replace internal mp3/ by ogg/ in $(slib_son) |
51 | !endif |
||
7320 | bpr | 52 | slib_out=$slib_out<source src="$slib_son_ogg.ogg" type="audio/ogg" /><source src="$slib_son.mp3" type="audio/mpeg" /> |
6656 | bpr | 53 | !endif |
7320 | bpr | 54 | slib_out=$slib_out Your browser does not support the audio tag.</audio> |
55 | |||
6657 | bpr | 56 | !endif |
677 | bpr | 57 | !else |
739 | bpr | 58 | !if $slib_player iswordof hbs_mp3_player |
860 | bpr | 59 | !default slib_option=height="16" width="60" autostart="false" loop="false" |
7320 | bpr | 60 | slib_player=player |
739 | bpr | 61 | !else |
2096 | bpr | 62 | !default slib_option=height="20" width="180" autostart="false" loop="false" |
677 | bpr | 63 | !endif |
6656 | bpr | 64 | !if .mp3XXX notin $(slib_son)XXX |
65 | !! audio venant de lang/swac |
||
66 | slib_son=$(slib_son).mp3 |
||
67 | !endif |
||
677 | bpr | 68 | !read slib/media/$slib_player $slib_son,$slib_option |
69 | !endif |
||
20 | reyssat | 70 | |
5736 | bpr | 71 | slib_out=$slib_out |