1

Тема: Автоматическая смена плейлистов (sc_trans)

Есть вопрос
Я хочу сделать чтоб в течении суток менялись плей листы
calendar.xml

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="1">1</playlist>
<calendar starttime="16:30:00" duration="00:10:00" repeat="127"/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="2">2</playlist>
<calendar starttime="16:40:00" duration="00:10:00" repeat="127"/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="3">3</playlist>
<calendar starttime="16:50:00" duration="00:10:00" repeat="127"/>
</event>
</eventlist>

1. Вопрос такой если продолжительность проигрования плей листа длиннее (или короче) чем в duration то как будет вещать радио?
2. Также repeat="127" это т.е каждый день будет повторять плей лист?
3. При обновлении плейлистов придется ли перезапускать радио или они сами открываются при наступлении времени?

2

Re: Автоматическая смена плейлистов (sc_trans)

могу только догадываться, но лучше просто проверить
1. если длиннее скорее всего пойдет следуущий по спику плейлист
2. а что в мануале написано?
3. перезапускать ненадо

3

Re: Автоматическая смена плейлистов (sc_trans)

В мануале есть такое

    1 - Every Sunday
    2 - Every Monday
    4 - Every Tuesday
    8 - Every Wednesday
    16 - Every Thursday
    32 - Every Friday
    64 - Every Saturday
    128 - Time periodic

Про 127 там ничего не сказано

4

Re: Автоматическая смена плейлистов (sc_trans)

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
    <!-- see the Ajax API calendar tag for more information about the fields in the event tag
    <event type="playlist|dj|relay" >
        <calendar  startdate="yyyy/mm/dd" enddate="yyyy/mm/dd" starttime="hh:mm:ss" duration="hh:mm:ss" repeat="#" />

        <!------ for playlist type ----------->
        <playlist loopatend="1|0" shuffle="1|0|inherit" priority="#">   
            foo.lst                   
        </playlist>       
        <!------------------------------------>

        <!------------ for dj type ----------->
        <dj archive="1|0|inherit">djname</dj>       
        <!------------------------------------>
       
        <!------------ for relay type --------->
        <relay url="" priority="#" />
        <!------------------------------------->
    </event>
</eventlist>



playlist tag attributes
    loopatend - if set to one, the playlist will restart if the end is reached before the duration
                of the event is completely fullfilled. Default is zero.
    shuffle    - indicates whether the playlist should be shuffled 1 - yes 0 - no inherit - use value of config file shuffle flag
                default is inherit.
    priority - indicates the priority of the playlist. This is used to resolve situations where events
                overlap. The highest priority playlist becomes the active one. Legal values are >= 1.
                Default is 1.
    archive    - indicates whether the dj should be archived. 1 - yes 0 - no inherit - use value from config file. default is inherit
   
    url - url for source relay
               
dj events grant access for the time of the event