EasyPusher-Android
EasyPusher-Android copied to clipboard
推流设置带黑色背景框的时间水印不起作用
public void overlay(byte[] data, String txt) {
// txt = "drawtext=fontfile="+context.getFileStreamPath("SIMYOU.ttf")+": text='EasyPusher
// 2017':x=(w-text_w)/2:y=H-60 :fontcolor=white :box=1:[email protected]";
// txt = "movie=/sdcard/qrcode.png [logo];[in][logo] "
// + "overlay=" + 0 + ":" + 0
// + " [out]";
// if (ctx == 0) throw new RuntimeException("init should be called at first!");
if (ctx == 0)
return;
String txt2 = String.format(
"drawtext=fontfile=%s: text='%s%s':x=(w-text_w)/2:y=H-60 :fontcolor=white :box=1:[email protected]",
context.getFileStreamPath("SIMYOU.ttf"), "EasyPusher",
new SimpleDateFormat("yyyy-MM-ddHHmmss").format(new Date()));
// txtOverlay(ctx, data, String.format(OVERLAY_FORMAT,
// context.getFileStreamPath("SIMYOU.ttf"), txt));
txtOverlay(ctx, data, txt2);
}
@Wellsen @babosa
Is there a way to change the color of the overlay text?