React Native SDK

Azhar Ali

Member
Hi,

We have an app built in react native for our audio only stream. Do you have any guidance on how to implement play only stream using that?

Regards
Azhar
 

Max

Administrator
Staff member
Good day.
We have not tested React Native support yet, there is the ticket WCS-2852 for that.
Please try to use WebSDK Player example. Also, the latest Web SDK build 2.0.166 is available as NPM package
Code:
npm i @flashphoner/websdk
This should help to integrate it.
 
Last edited:

Max

Administrator
Staff member
Usually, we do not provide ETA for forum feature requests. This ticket has two votes on forum, so we raise its priority. However, the task may take a much time, please be patient.
 

Azhar Ali

Member
Hi Max,

Any update on this? We have managed to get it working using native API's but finding it impossible to connect to media volume. Its working with Call volume but thats not ideal.
Have you got an update or guidance on it?

We have used this to build it

Regards
Azhar
 

Max

Administrator
Staff member
Good day.
There is no update yet.
You can use an alternative way: browser application in WebView, this is supported both in Android SDK and iOS SDK (iOS 14.4 and newer is tested to support WebRTC).
 

Azhar Ali

Member
Hi Max,

We did tried to use that but when phone gets locked or App goes hidden, after some time stream would get closed itself. We want it to keep playing in the background until user stops manually.
As our usecase is breaking news broadcasting, stream is on all day but only voice when we have something to alert our users.

Any way round to avoid the disconnects?


Regards
Azhar
 

Max

Administrator
Staff member
Any way round to avoid the disconnects?
Have you tried to add background mode setting to app Info.plist?
Code:
<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
</array>
Also, you can try this trick to automatically reconnect to the stream from webpage displayed in WebView.
 
Top