• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster Pro
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Developer Dojo /
  • Wowza Streaming Server Java API /
avatar image
Question by Vincent Chan · Oct 28, 2013 at 06:11 PM · wowza streaming server java api

Insert preroll ad in RTSP / HLS / SmoothStreaming

Hi,

I knew from previous post that it's possible to insert preroll advertisement before main video. However, the method (using AMFDataItem) applies to RTMP only, and the other, with the help of scheduled videolist, is too unstable. In my case, RTSP / HLS / SmoothStreaming have to be supported as well. Would there be any means to tackle this problem?

Thanks.
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Richard Lanham · Oct 29, 2013 at 02:08 PM

There isn't a way to do pre-roll across client types at present, for live or on demand streaming. The scheduler is not a solution anyway because it cannot play the clip first per viewer. It can play a clip intermittently, but not as the first thing the user sees.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vincent Chan · Oct 30, 2013 at 07:37 PM 0
Share
Will it be supported in the near future? Any ways, even very low level api, to do something before wowza actually sends video data to users?
avatar image

Answer by Richard Lanham · Oct 31, 2013 at 01:08 PM

It is a future feature, but I don't have a time frame. There is not a low-level api either at present.

The only way to do this at present is client-side. In Flash RTMP it is straightforward if you are developing the player: the client plays a static video, listens for "NetStream.Play.Stop" notification in the NetStream.onPlayStatus handler, then plays the live stream.

This is an iOS client-side work-around

Similar can be done with a Silverlight player, but there is not a solution like that for RTSP.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vincent Chan · Nov 01, 2013 at 12:49 AM 0
Share
Is it possible to add video data into the stream, perhaps like IMediaStream.addVideoData? If so, in which situtations it would work?
avatar image

Answer by Richard Lanham · Nov 01, 2013 at 02:53 PM

Sorry, we don't have a server-side solution for this at present.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Michał Margula · Dec 04, 2013 at 09:30 AM 0
Share
Hello,

Did something change in that matter? Is it possible to have pre-roll video

server-side?

Thank you
avatar image

Answer by Richard Lanham · Dec 04, 2013 at 02:20 PM

Pre-roll for on demand RTSP playback is not supported at present. It only works with RTMP.

Richard
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Michał Margula · Dec 05, 2013 at 10:46 PM 0
Share
Thanks, I know that specific article. But it is not clear to me - if I connect to RTMP stream via VLC it will still give pre-roll or do I need to use flash client mandatory?
avatar image ceyhun ceyhun · Jan 17, 2017 at 10:51 AM 0
Share
Pre-roll for on demand RTSP playback is not supported at present. It only works with RTMP.

Richard


Hi Richard

Pre-roll for advertisement before live HLS playback is supported at present?

Thank you.
avatar image

Answer by Richard Lanham · Dec 05, 2013 at 09:03 PM

It does work in VLC 2.1.1 in my test with rtmp connection/stream.

I happened to have a h.264 webcam recording setup to switch with sample.mp4, which Flash was able to handle well but VLC did not switch and display well. It played but wasn't watchable. When I only used sample.mp4, there was no problem. I.e. the different clips you use with this method have to be very similar. Ideally the video and audio codecs should be identical. Otherwise, you will have to test with your content. This is a client problem, Wowza has no problem switching between clips with different audio and video encoding details, as long as within supported specs.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Michał Margula · Dec 05, 2013 at 11:14 PM 0
Share
I see. Thank you!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Sample code to use MediaCaster API to start/stop a stream 2 Answers

A question about the IPushPublishRTMPNotify class in the PushPublishing API 1 Answer

StreamPublisher and corrupted video playback 1 Answer

StreamPublisher Module 1 Answer

Howto reject connections while playing streams 9 Answers

Hot Topics
  • Streaming Protocols
  • Wowza SDKs
  • AWS Hosting
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Partners
  • Partners Overview
  • Find a Reseller
  • Channel Partner Program
  • OEM Program
  • Wowza Reseller Portal
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Contact Us
Stay Connected
Sign Up for Our Blog
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster Pro
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges