Rev 7030 | Rev 7320 | 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 |
677 | bpr | 20 | !reset slib_out |
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 |
||
4765 | bpr | 33 | slib_son=!replace internal cgi? by $(slib_sontest[-1])? in $slib_son |
6657 | bpr | 34 | !if $slib_player= |
35 | slib_objecttag=<object><embed src="$slib_son" $slib_option>\ |
||
6664 | bpr | 36 | <noembed> <bgsound src="$slib_son" /></noembed>\ |
6656 | bpr | 37 | </embed></object> |
6657 | bpr | 38 | |
6664 | bpr | 39 | slib_out=<audio controls="controls" class="wims_audio" $slib_option> |
6656 | bpr | 40 | !if .mp3XXXX isin $(slib_son)XXXX |
6657 | bpr | 41 | slib_out=$slib_objecttag |
6656 | bpr | 42 | |
43 | !else |
||
44 | !if .oggXXXX isin $(slib_son)XXXX |
||
45 | slib_out=$slib_out\ |
||
46 | <source src="$slib_son" type="audio/ogg" />\ |
||
47 | $slib_objecttag |
||
48 | !else |
||
7138 | bpr | 49 | slib_son_ogg=$slib_son |
50 | !if $ADDRESS isin $slib_son_ogg |
||
51 | slib_son_ogg=!replace internal mp3/ by ogg/ in $(slib_son) |
||
52 | !endif |
||
6656 | bpr | 53 | slib_out=$slib_out\ |
7138 | bpr | 54 | <source src="$slib_son_ogg.ogg" type="audio/ogg" />\ |
6657 | bpr | 55 | <source src="$slib_son.mp3" type="audio/mpeg" /> |
56 | |||
6656 | bpr | 57 | !endif |
6657 | bpr | 58 | slib_out=$slib_out\ |
6654 | bpr | 59 | Your browser does not support the audio tag.\ |
6656 | bpr | 60 | </audio> |
6657 | bpr | 61 | !endif |
677 | bpr | 62 | !else |
739 | bpr | 63 | !if $slib_player iswordof hbs_mp3_player |
860 | bpr | 64 | !default slib_option=height="16" width="60" autostart="false" loop="false" |
739 | bpr | 65 | slib_player=player |
66 | !else |
||
2096 | bpr | 67 | !default slib_option=height="20" width="180" autostart="false" loop="false" |
677 | bpr | 68 | !endif |
6656 | bpr | 69 | !if .mp3XXX notin $(slib_son)XXX |
70 | !! audio venant de lang/swac |
||
71 | slib_son=$(slib_son).mp3 |
||
72 | !endif |
||
677 | bpr | 73 | !read slib/media/$slib_player $slib_son,$slib_option |
74 | !endif |
||
20 | reyssat | 75 | |
5736 | bpr | 76 | slib_out=$slib_out |