Handling uploaded videos

Thanks for this, I think our requirement was mainly to allow users to directly upload a video into discourse - which I understand is an edge-case at best.

We will attempt something a bit like this;

  • User uploads video file
  • Use post events / hooks to transfer the file to a video encoding service (vimeo, coconut or something)
  • Use API / Webhooks to respond to external video ready event
  • Re-write / Rebake the original post with a URL to the externally hosted, encoded video (e.g. vimeo.com/12345) which OneBox can handle nicely for us.

At least, that’s the theory. It’s a long way around, but it will fit the client’s requirements nicely.