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.
22 lines
462 B
22 lines
462 B
package com.frank.ffmpeg;
|
|
|
|
/**
|
|
* Using FFmpeg to push FLV stream
|
|
* Created by frank on 2018/2/2.
|
|
*/
|
|
|
|
public class Pusher {
|
|
static {
|
|
System.loadLibrary("media-handle");
|
|
}
|
|
|
|
/**
|
|
* JNI interface: select file and push to rtmp server
|
|
*
|
|
* @param filePath liveUrl
|
|
* @param liveUrl the url of rtmp server
|
|
* @return the result of pushing stream
|
|
*/
|
|
public native int pushStream(String filePath, String liveUrl);
|
|
|
|
}
|
|
|