Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

Since build 5.2.795 it it is possible to extract raw audio data from published stream in PCM 16 bit format with a following processing on server side. For example, stream siound sound can be recorded to a file.

...

To intercept raw audio data, a Java class implementing IDecodedPcmInterceptor implementing IDecodedPcmInterceptor interface should be developed. The method method pcmDecoded() of  of this class will receive decoded audio packets in PCM format, as byte array. Let's take a look to class implemenr=tation implementation example to record raw audio from a stream into a WAV file:

...

1. Publish a test stream in Two Way Streaming example https://test1.flashphoner.com:8444/client2/examples/demo/streaming/two_way_streaming/two_way_streaming.html, where test1.flashphoner.com is WCS server address

2. Check if WAV file existst exists in  /usr/local/FlashphonerWebCallServer/records/ folder

...