展现Android硬编码下的视频数据流动,可以对视频做处理,例如加滤镜,加水印等,做直播推流(用RTMP)。 Show the stream of Android video hardware encode, including video processing and video publishing by RTMP.
private void drawVideoFrame(ICanvasGL canvasGL, @Nullable SurfaceTexture outsideSurfaceTexture, @Nullable BasicTexture outsideTexture) {
// Here you can do video process
// 此处可以视频处理,例如加水印等等
if(textureFilterLT == null) {
textureFilterLT = new BasicTextureFilter();
}
if(textureFilterRT == null) {
textureFilterRT = new HueFilter(180);
}
}
这里说了可以加水印,但是还是不会加text的文本水印,求教