2
liusuyi
2026-05-12 9b5c9db9189493fbc6db48f55a7b7311b2a3253c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.ard.zlm.mediaServer;
 
import com.ard.zlm.api.domain.ZlmMediaServer;
import com.ard.zlm.hook.OnStreamNotFoundHookParam;
import org.springframework.context.ApplicationEvent;
 
/**
 * 发送流停止事件
 */
public class MediaSendRtpStoppedEvent extends ApplicationEvent {
    public MediaSendRtpStoppedEvent(Object source) {
        super(source);
    }
 
    private String app;
 
    private String stream;
 
    private ZlmMediaServer mediaServer;
 
    public static MediaSendRtpStoppedEvent getInstance(Object source, OnStreamNotFoundHookParam hookParam, ZlmMediaServer mediaServer) {
        MediaSendRtpStoppedEvent mediaDepartureEven = new MediaSendRtpStoppedEvent(source);
        mediaDepartureEven.setApp(hookParam.getApp());
        mediaDepartureEven.setStream(hookParam.getStream());
        mediaDepartureEven.setMediaServer(mediaServer);
        return mediaDepartureEven;
    }
 
    public String getApp() {
        return app;
    }
 
    public void setApp(String app) {
        this.app = app;
    }
 
    public String getStream() {
        return stream;
    }
 
    public void setStream(String stream) {
        this.stream = stream;
    }
 
    public ZlmMediaServer getMediaServer() {
        return mediaServer;
    }
 
    public void setMediaServer(ZlmMediaServer mediaServer) {
        this.mediaServer = mediaServer;
    }
}