I would like to show short ad movie to every user who is starting to watch live stream in my Wowza server.
Any idea how can I do this programaticly?? I was thinking of overriding onPlay method and first showing user short movie and than redirecting him to choosen stream. I know that I can start new stream with ad video using code :
IVHost vhost = VHostSingleton.getInstance(VHost.VHOST_DEFAULT);
Stream stream1 = Stream.createInstance(vhost, "live", "Stream1");
stream1.play("mp4:sample.mp4", 0, 10, false);
but how can I redirect user to choosen stream ?? Any idea? Or maybe my idea is wrong.