Skip to content

luowuf/live555helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

live555helper

Helper for live555

The aim of this project is to simplify usage of live555, that is powerful but need to implement lots of logic.

For instance a dummy RTSP client could be implement with :

#include <iostream>
#include "environment.h"
#include "rtspconnectionclient.h"


int main(int argc, char *argv[])
{
	class MyCallback : public RTSPConnection::Callback
	{
		public:
			virtual bool    onData(const char* id, unsigned char* buffer, ssize_t size, struct timeval presentationTime) {
				std::cout << id << " " << size << " ts:" << presentationTime.tv_sec << "." << presentationTime.tv_usec << std::endl;
				return true;
			}
	};

	Environment env;
	MyCallback cb;
	RTSPConnection rtspClient(env, &cb, "rtsp://pi2.local:8554/unicast");
	env.mainloop();
	return 0;
}

About

Helper for live555

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.3%
  • Makefile 3.7%