[Live-devel] help for changing static var eventtriggerId to non-static (multi instance of rtsp server)

Ross Finlayson finlayson at live555.com
Wed Jul 20 10:24:26 PDT 2016


> I want to stream multiple webcams at the same time and so, I create new thread  for each of them.

Please read
	http://live555.com/liveMedia/faq.html#threads

Note that you can have a separate thread for each webcam *only if* these threads do not call any LIVE555 functions, *except* “triggerEvent()”.

Note also that - as explained in the comments in “liveMedia/include/DeviceSource.hh” and “liveMedia/DeviceSource.cpp” - you can redefine “eventTriggerId” as being non-static if you have multiple devices, and want a separate instance of your “DeviceSource”-like object for each one.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list