|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smaxe.app.uv.downloader.RtmpDownloader
public final class RtmpDownloader
RtmpDownloader
- downloads audio/video stream from the RTMP/RTMPT-enabled
server to the local FLV file.
Constructor Summary | |
---|---|
RtmpDownloader()
Constructor. |
Method Summary | |
---|---|
java.util.concurrent.Future<java.lang.Boolean> |
download(java.lang.String url,
java.lang.Object[] args,
java.util.Map<java.lang.String,java.lang.Object> configuration,
java.lang.Object stream,
java.lang.String file)
Downloads stream from the url and
saves it to the file . |
static void |
main(java.lang.String[] args)
Entry point. |
static void |
printCommandLineArguments(java.io.PrintStream ps)
Prints command line arguments. |
void |
setDebugMode(boolean debug)
Set true for debug mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RtmpDownloader()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
- if an exception occurredpublic static void printCommandLineArguments(java.io.PrintStream ps)
ps
- public void setDebugMode(boolean debug)
true
for debug mode.
debug
- set true
to enable debug mode; false
to disablepublic java.util.concurrent.Future<java.lang.Boolean> download(java.lang.String url, java.lang.Object[] args, java.util.Map<java.lang.String,java.lang.Object> configuration, java.lang.Object stream, java.lang.String file) throws java.lang.Exception
stream
from the url
and
saves it to the file
.
Note: Connection configuration fields are:
"fpad" - (default: false)
"pageUrl" - page url (default: "")
"swfUrl" - SWF url (default: "")
"flashVer" - flash version (default: "WIN 9,0,124,0")
"audioCodecs" - audio codecs (default: 615)
"videoCodecs" - video codecs (default: 124)
"videoFunction" - video function (default: 1)
stream
parameter can be either String (name of the stream) or
an array, please check developer guide for details.
url
- connection urlargs
- connection argumentsconfiguration
- connection configurationstream
- stream to recordfile
- local file to store stream
true
if succeeded to download; otherwise false
java.lang.Exception
- if an exception occurred
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |