stream-m
stream-m copied to clipboard
Is it possible to dynamically create streams?
For example, let a user have his own channel once he created his account and it's in our MySQL database?
I achieved something similar using java RMI (remote method invocation). That required several modifications of stream-m code (mostly synchronization, single point of properties modification, RMI initialization). Then, an interface for RMI had to be created (and a class implementing this interface of course).
Next to stream-m, there is running a web application based on Spring framework with RMI interface included. When a user needs to start a stream, web-app remotely invokes a stream-m method, which creates all properties needed for stream registration and after that, web app starts ffmpeg (and serves a page with html5 <video> tag).
I am thinking about adding Nashorn to the project with some explicit extension points, so some Javascript code can be added at key points to add some logic.