diff --git a/README.md b/README.md index cd4cd21..75145be 100644 --- a/README.md +++ b/README.md @@ -1 +1,31 @@ -# myRtsp +myRtspClient +================================================================================ + +This package contains a RTSP Client libraries which is based on JRTPLIB. +Under the license of Apache License V2.0. + +Linux/Unix installation +-------------------------------------------------------------------------------- +Now, myRtspClient installation is not supported. You can only the library +./myRtspClient/libmyRtspClient.a. And the headers is in ./myRtspClient/include. + +Compiling based on different os-platform, you NEED to configure the +config. file. +For example: +Compiling based on x86, which configure use file 'config.linux': + $ ./genMakefiles linux + $ make + +(Configure your cross compile tool in 'config.armlinux' first) +Compiling based on armlinux, which configure use file 'config.armlinux': + $ ./genMakefiles armlinux + $ make + +Features +-------------------------------------------------------------------------------- +Video Codec Support: + H264 + +Info +-------------------------------------------------------------------------------- +Ansersion ansersion@sina.com diff --git a/config.armlinux b/config.armlinux index ff242c1..97b8215 100755 --- a/config.armlinux +++ b/config.armlinux @@ -1,5 +1,11 @@ -CROSS_COMPILE_DIR= /usr -CROSS_COMPILE= $(CROSS_COMPILE_DIR)/bin/arm-linux-gnueabi- +# Configure you cross compiling parameters here. +# If your arm-linux-gcc is installed by "apt-get", it would be: +# +# CROSS_COMPILE_DIR= /usr +# CROSS_COMPILE= $(CROSS_COMPILE_DIR)/bin/arm-linux-gnueabi- +# +CROSS_COMPILE_DIR?= +CROSS_COMPILE?= COMPILE_OPTS = $(INCLUDES) -I. -O2 C = c C_COMPILER = $(CROSS_COMPILE)gcc diff --git a/example/simple_example.cpp b/example/simple_example.cpp index 233efb0..66cd814 100644 --- a/example/simple_example.cpp +++ b/example/simple_example.cpp @@ -26,8 +26,8 @@ using std::endl; int main(int argc, char *argv[]) { - // string RtspUri("rtsp://127.0.0.1/ansersion"); - string RtspUri("rtsp://192.168.81.145/ansersion"); + string RtspUri("rtsp://127.0.0.1/ansersion"); + // string RtspUri("rtsp://192.168.81.145/ansersion"); RtspClient Client; /* Set up rtsp server resource URI */