• 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
    • 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 Janez Makovsek · Jun 02, 2015 at 10:50 AM · wowza streaming server java api

IMediaStream

Hi!

I have:

import com.wowza.wms.stream.publish.Stream;

...

private Stream MyStream;

...

How can I obtain IMediaStream which is associated with the MyStream? I need IMediaStream to insert live captions:

public void sendTextDataMessage(IMediaStream stream, OnTextData onTextData)

{

..

}

Thanks!

Atmapuri
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

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Janez Makovsek · Jun 02, 2015 at 04:48 PM

Hi!

I have:

import com.wowza.wms.stream.publish.Stream;

...

private Stream MyStream;

...

How can I obtain IMediaStream which is associated with the MyStream? I need IMediaStream to insert live captions:

Ok, found a solution for that:

IMediaStream stream = publishedStream.getPublisher().getStream();

Now, the question. Are these two lines thread safe:

stream.sendDirect("onTextData", amfData);

((MediaStream)stream).processSendDirectMessages();

In the sense that I could have multiple clients calling these two lines each client from their own thread but all using the same stream object? Or is a lock required?

Thanks!

Atmapuri
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

1 Person is following this question.

avatar image

Related Questions

http provider 0 Answers

HTTPProvider POST parameters 0 Answers

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

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