Hi! I have HTTP provider that can start mp4 translation from content folder.
(pseudocode)
public void onHTTPRequest() {
switch(action)
{
case "play":
Stream stream = Stream.createInstance(vhost, "Cam", streamName);
stream.play("mp4:" + recordingName, 0, -1, true);
break;
case "stop":
IMediaStream stream = applicationInstance.getStreams().getStream(streamName);
stream.close();
break;
}
}
And stream cannot stop and stil playing. How to stop this stream properly?
Sorry for my english