We are developing a module for WMS and we need to cut/resume audio/video on live stream to specific clients.
In RTMP streams it is possible to do with:
public class EdgeStreamListener implements IMediaStreamActionNotify2 {
...
onPlay(IMediaStream iMediaStream, String streamName, double v, double v1, int i) {
Boolean video=false;
Boolean audio=false;
/*
Determine if audio and video should be enabled
*/
iMediaStream.setReceiveVideo(video);
iMediaStream.setReceiveAudio(audio);
}
...
}
We have saved that iMediaStream in a HashMap and from external call to wowza we could change setRecieveVideo and setRecieveAudio values.
In RTMP that works like charm.
But with HLS it makes nothing.
Is there any implementation to cut/resume audio/video in HLS?
The connection shouldn’t be reset and the URL should remain the same.
Thanks,
Elliot Morales Solé