You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
495 B
30 lines
495 B
import java.util.List;
|
|
|
|
/**
|
|
* 弹幕内容解释器
|
|
* @param <T>
|
|
*/
|
|
public interface Parser<T> {
|
|
//弹幕颜色
|
|
String color(T content);
|
|
|
|
//弹幕大小
|
|
String size(T content);
|
|
|
|
//弹幕文本
|
|
String text(T content);
|
|
|
|
//弹幕移动样式
|
|
String style(T content);
|
|
|
|
//弹幕发送时间
|
|
String time(T content);
|
|
|
|
/**
|
|
* 根据视频播放地址解析弹幕数据
|
|
* @param playUrl
|
|
* @return
|
|
*/
|
|
List<T> parse(String playUrl);
|
|
|
|
}
|
|
|