Results 1 to 3 of 3

Thread: Add "pause" text to rtmp streaming.

  1. #1
    Join Date
    Apr 2012
    Posts
    1

    Question Add "pause" text to rtmp streaming.

    I'd like to combine some text into a video stream. Pretty simple concept, when a publisher pauses his video I'd like to display the text "Paused" in the stream so the subscriber sees the text.

    I've tweeked the Flash videochat example that comes with Wowza - it's a great starting point. Pausing the camera is easy in Flash ActionScript; just attach a null camera to the publishing netstream. ie: nsPublish.attachCamera(null);

    On the player side (I'm using JWPlayer), the play pauses. Cool. However, adding a text overlay of "Paused" would be even better - and a great clue to the subscriber that the publisher did the pausing.

    I cannot find for the life of me an example how to do this. I see the Flash netstream object has a method send() to send along metadata, but not sure how to get this to display on the player.

    Appreciating all help...
    Frank

  2. #2
    Join Date
    Sep 2011
    Posts
    1,473

    Default

    Hi
    Yes this can be done, it will require quite some work on your part but you can start by looking at the onMetaData in the client side (JWPlayer) and make JWPlayer look for this data.
    I don't think an example is present for me to point you at unfortunately.

    Jason

  3. #3
    Join Date
    Dec 2007
    Posts
    27,910

    Default

    Frank,

    A Flash RTMP client should receive "NetStream.Play.UnpublishNotify" notification in the NetStream's NetStatusEvent handler when a live RTMP stream is unpublished. It is something different for RTMP clients streaming from an edge or MediaCaster source, but you should get usable notification there as well. I don't know how to display custom messages in JW Player, but there is an extensive API and I would think it can be done.

    Richard

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •