CC-2925: Airtime scripts broken with Liquidsoap 1.0 pre-release
-fixed -also updated the liquidsoap library scripts
This commit is contained in:
parent
ed8cdc7db3
commit
b0f6f1e39b
30 changed files with 417 additions and 674 deletions
43
python_apps/pypo/liquidsoap_scripts/library/video_text.liq
Normal file
43
python_apps/pypo/liquidsoap_scripts/library/video_text.liq
Normal file
|
@ -0,0 +1,43 @@
|
|||
%ifdef video.add_text.gd
|
||||
# Add a scrolling line of text on video frames.
|
||||
# @param ~id Force the value of the source ID.
|
||||
# @param ~color Text color (in 0xRRGGBB format).
|
||||
# @param ~cycle Cycle text.
|
||||
# @param ~font Path to ttf font file.
|
||||
# @param ~metadata Change text on a particular metadata \
|
||||
# (empty string means disabled).
|
||||
# @param ~size Font size.
|
||||
# @param ~speed Speed in pixels per second (0 means no scrolling).
|
||||
# @param ~x x offset (negative means from right).
|
||||
# @param ~y y offset (negative means from bottom).
|
||||
# @param text Text to display.
|
||||
def video.add_text(~id="",~color=16777215,~cycle=true,
|
||||
~font=configure.default_font,
|
||||
~metadata="",~size=18,~speed=70,~x=-1,~y=-5,
|
||||
text,source)
|
||||
video.add_text.gd(id=id,color=color,cycle=cycle,font=font,metadata=metadata,
|
||||
size=size,speed=speed,x=x,y=y,text,source)
|
||||
end
|
||||
%endif
|
||||
|
||||
%ifdef video.add_text.sdl
|
||||
# Add a scrolling line of text on video frames.
|
||||
# @param ~id Force the value of the source ID.
|
||||
# @param ~color Text color (in 0xRRGGBB format).
|
||||
# @param ~cycle Cycle text.
|
||||
# @param ~font Path to ttf font file.
|
||||
# @param ~metadata Change text on a particular metadata \
|
||||
# (empty string means disabled).
|
||||
# @param ~size Font size.
|
||||
# @param ~speed Speed in pixels per second (0 means no scrolling).
|
||||
# @param ~x x offset (negative means from right).
|
||||
# @param ~y y offset (negative means from bottom).
|
||||
# @param text Text to display.
|
||||
def video.add_text(~id="",~color=16777215,~cycle=true,
|
||||
~font=configure.default_font,
|
||||
~metadata="",~size=18,~speed=70,~x=-1,~y=-5,
|
||||
text,source)
|
||||
video.add_text.sdl(id=id,color=color,cycle=cycle,font=font,metadata=metadata,
|
||||
size=size,speed=speed,x=x,y=y,text,source)
|
||||
end
|
||||
%endif
|
Loading…
Add table
Add a link
Reference in a new issue