• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
    • Products

      • Wowza ClearCaster
      • Facebook Live appliance
      • Wowza Streaming Cloud
      • Cloud streaming services
      • Wowza Streaming Engine
      • Streaming server software
      • Wowza GoCoder & SDK
      • Mobile capture and encoding app
    • Capabilities

      • CDN
      • Ultra Low Latency
      • SRT
      • Player
      • WebRTC
      • Live Transcoding
      • See All Capabilities
  • DOCS & APIS

      Docs & APIs

      • Getting Started
      • User Guides
      • Technical Articles
      • Video Tutorials
      • API & SDK Docs
  • SOLUTIONS
    • Streaming Types

      • Live Video Streaming
      • Video on Demand
      • Audio-Only Streaming
      • IP Camera Streaming
      • VR and 360° Streaming
      • Chat
    • Industries

      • Broadcast & OTT
      • Education
      • Enterprise
      • Government
      • Live Events
      • Live Sports
      • Religious Organizations
    • Streaming Solutions

      • MediaDS—Integrated Streaming Device
      • Streaming Service Providers
      • Live Mobile Broadcasting
  • PRICING
    • Wowza ClearCaster

      • Facebook Live appliance
      • Starting at $2,995
      • Add to Cart
      • Request a Demo
    • Wowza Streaming Cloud

      • Cloud streaming services
      • Starter Plan: $49/month
      • Add to Cart
      • See All Plans
    • Wowza Streaming Engine

      • Streaming server software
      • Annual Plan: $65/month
      • Add to Cart
      • See All Plans
    • Wowza GoCoder SDK

      • SDK for mobile streaming
      • Talk to a Streaming Expert
      • Contact Us
      • Free Trial
  • RESOURCES

      Resources

      • Blog
      • Case Studies
      • Webinars
      • Videos
      • Podcasts
      • Test Players
      • Developer Tools
  • SUPPORT
    • Support

      • Forums
      • Software Updates
      • Open a Support Ticket
    • Plans & Services

      • Support Plans
      • Advisory Services
      • Live Event Support
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • General Forum /
avatar image
Question by krishna mohan · Mar 11, 2014 at 04:11 PM ·

inject custom metadata to video on demand stream server side at time intervels

I saw this link about how to modify the metadata of on-demand streams.

I can use that if i wanted to "modify" metadata in beginning of stream. But i need to "add" metadata dynamically on server-side at variable time-intervals( ie. client sends cue-points to server in-middle of playing the vod stream and server has to inject metadata with some custom keys to vod stream).

Below is my code inside cue-point method on server-side to send metadata to vod :

            List<IMediaStream> playStreams = client.getAppInstance().getPlayStreamsByName(vodStreamName);
	    AMFDataObj data = new AMFDataObj();
	    AMFDataArray parameters = new AMFDataArray();
	    parameters.add("param1");
	    parameters.add("param2");
	    data.put("testMetadata", parameters);
	    for(IMediaStream streamInstance:playStreams)
           {
	    	if(streamInstance != null)
		    {
	    		streamInstance.sendDirect("onMetaData", data);//working
		    	((MediaStream)streamInstance).processSendDirectMessages();
		    }
          }


I used the same code to send metadata to live(non-vod) streams, it works just fine. It doesn't work in case of vod stream. Can anyone tell what's wrong with my code? Any help is appreciated.
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

3 Replies

· Add your reply
  • Sort: 
avatar image

Answer by sal jefferson · Mar 11, 2014 at 08:24 AM

This method is for live streams. It will write cuepoints to recordings for later VoD playback, but does not write to VoD directly.

You can use a 3rd party injector, Captionate would be one option.

Salvadore
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 sal jefferson · Mar 11, 2014 at 09:01 AM 0
Share
There is also a way to do this thru Wowza.

You can create a schedule to run VoD content as a live source, then use the LiveStreamRecord API to record the stream back to VoD with the metadata included. you will need to use the LiveStreamRecord API because a StreamType of "live-record" is not supported by Stream class Streams.

How to do scheduled streaming with Wowza Streaming Engine (StreamPublisher)

How to record live streams (HTTPLiveStreamRecord)

Salvadore
avatar image krishna mohan sal jefferson · Mar 11, 2014 at 10:44 PM 0
Share
Hi Salvadore,

I appreciate ur reply. It took a whole day for me to experiment the ways to send metadata in vod stream in real-time. It turned out that a simple modification in the code would do the trick.

Replacing below code

streamInstance.sendDirect("onMetaData", data);
((MediaStream)streamInstance).processSendDirectMessages();


with

streamInstance.send("onMetaData", data);


did the help to my purpose.

I thought streamInstance.sendDirect() is kind of much better way of injecting metadata to streams, as streamInstance.send() failed in case of transcoded streams in my early project. It seems i have to use streamInstance.send() to send metadata to all the clients,those are playing an vod stream.

Hope my whole day effort will be useful to some ppl looking for the same :)

Krishna
avatar image

Answer by Roger Littin · Mar 12, 2014 at 09:30 AM

Hi,

Answered here.

Roger.
Comment

People who like this

0 Show 0 · 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

Answer by sal jefferson · Mar 11, 2014 at 12:33 PM

You were saying metadata and I was hearing cuepoints, that is my fault. Sorry for the confusion and I am glad to hear you got this working.

Thanks for the update.

Salvadore
Comment

People who like this

0 Show 0 · 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

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

2 People are following this question.

avatar image avatar image

Related Questions

Push mp4 file 1 Answer

Using Amazon's S3 as a repository 3 Answers

RTSP restream dies after 2 hours 1 Answer

Call Wowza web service not success. 6 Answers

Wowza Dynamic Bitrate Streaming 3 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • 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
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2018 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
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Users
  • Badges