Skip to content

About stopping a running ffmpeg process #372

Answered by RafaJurado
RafaJurado asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again. As you suggested I tried with HLS and it worked, but with some changes. The process is somewhat similar to the one I use to download a file: A controller method launches the ffmpeg process by ajax request. That ajax request starts an interval to another js function that asks for a m83u file. When the file is created, another controller method serves the files (m3u8 and ts). The FFmpegResultFuture is stored in a global class map variable and called when the user clicks the stop button. Thank you very much for your help! (Is there any way to contribute to the project?). The code is like this:

let streamIntervalId;
/* play button launches process */
    $("#modalPlayButton").click(…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@RafaJurado
Comment options

@kokorin
Comment options

@RafaJurado
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by RafaJurado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants