Results 1 to 2 of 2

Thread: Ad video before live stream

  1. #1
    Join Date
    Apr 2012
    Posts
    1

    Default Ad video before live stream

    Hi guys.
    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.

    Rafal

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Rafal,

    Take a look at this post:
    http://www.wowza.com/forums/showthre...-client-side#5

    Richard

Similar Threads

  1. Way to Ad video before live stream
    By davidhan in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 10-15-2014, 04:42 AM
  2. Stream video file with cuepoints as live and then switch to live stream
    By notreemedia in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 02-28-2012, 08:23 AM
  3. How to Get Next Video on Live Stream Video Playlist?
    By paulo_mendes_ in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 01-05-2012, 01:53 PM

Posting Permissions

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