client communicate to server for dynamic overlay of images in real-time
We want to give control to client(who broadcasts live sessions to server), so that he can show some images to viewers whenever the client wants. I followed your tutorial of image overlay, but it's bit different than what we are looking for. If the server already knows when client wants to show images, that tutorial is great.
How can the broadcaster communicate to server that he wanted to show images at a particular time in real-time?
Any help or suggestions will be appreciated..thanks
Let's use case this out. Putting aside implementation, is this what you mean?
A: Publish client
C: Playback client
1) Publish client publishes a live stream to Wowza
2) Playback client subscribes to the live stream
3) Publish client inserts an image by some user action/command
4) Playback client displays that image
Images are stored in Wowza?
What is the publisher client?
What is the playback client?
If the playback client is Flash RTMP only, you can use cuepoints (time text) on the NetStream. You can develop Flash app that streams and reads your cue-points (which can be named whatever you want) and do some overlay client-side. You would probably store images on a web server to do this. It's not that complicated but would take some work.
If the playback client might be a HTTP client, e.g. iOS device, or if it is a RTSP client, then you will have to take another approach, which might be easier than the above. You could convert the static images to .mp4 files and use the Stream class streams, for example what is used in the
scheduler and the
LoopUntilLive example, which might be the best starting place.
In any case, it will take some work. If you need help with it you can post a job description in the
Find a Consultant forum, or write to
email@example.com and ask for the list of independent consultants.
Yes, cuepoints are triggered in the Flash RTMP playback client, according to your custom coding in most cases (there is some built-in cuepoint handling in some players involving closed caption). Cuepoints can be put into the stream in the Flash RTMP publishing client or server-side as shown.