3

I'm using the Streamio gem for Rails to transcode a video file to .webm format. I'm able to display the progress of the transcoding on the console using:

movie.transcode("public/uploads/#{current_user.id}/#{@userfile.name}.webm") { |progress| puts progress }

It's showing the progress on the console like this:

enter image description here

My question is, how do I display this on the browser? Where the user can actually see the progress of the transcoding?

Swaathi Kakarla
  • 2,227
  • 1
  • 19
  • 27
  • 1
    you can use progess chart of jquery to display it – Rajarshi Das Dec 26 '14 at 07:32
  • `ActionController::Live`? – D-side Dec 26 '14 at 08:41
  • What's `ActionController::Live` ? – Swaathi Kakarla Dec 26 '14 at 09:15
  • I also face this same problem. @Swaathi K, you found any proper solution for this ? If yes then please please share that :). – Jiggs Dec 17 '15 at 13:25
  • Yup. You need to use Websockets. The easiest solution was to use a service like Pusher. Just open up a channel, and pass the progress data through it. On the client side you'll have to listen to the channel and display it using some progress graph. – Swaathi Kakarla Dec 17 '15 at 16:46
  • Thank you @SwaathiK, it's work for me. But there i one more problem with this. When i upload video from two different browser then it's update only in one browser. It's mix up other browser's output in first browser. – Jiggs Dec 22 '15 at 06:45

0 Answers0