[Live-devel] 答复: How to stop the one streaming in other thread?

Zhang Qian(张倩) qianzhang at asrmicro.com
Mon Nov 18 20:48:25 PST 2019


Sorry, I got it. I can use triggerEvent() method to call live555 functions in multiple threads. 

Thanks. :)


-----邮件原件-----
发件人: live-devel [mailto:live-devel-bounces at us.live555.com] 代表 Ross Finlayson
发送时间: 2019年11月18日 10:06
收件人: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
主题: Re: [Live-devel] How to stop the one streaming in other thread?

> I found that sometimes crash will happen if I call RtspServer->deleteServerMediaSession to stop the streaming in other thread but not live555 thread.  

I’m sorry, but I’m not sure that I understand this.  What is the “other thread”, and what/how is it “streaming”?

I hope you have read:
	http://live555.com/liveMedia/faq.html#threads

LIVE555-based applications use a single-threaded event loop for concurrency, rather than multiple threads.  (If your application consists of multiple threads, then *only one* of these threads can call LIVE555 functions (except for “triggerEvent()”).


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


_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel



More information about the live-devel mailing list