Jump to content
  • 0

WebRTC Input from Ionic App Not Working


Hakim Zulkufli
 Share

Question

Hi,

We're a developing an app that allows user to livestream through their mobile phone's camera using Ionic version 4 framework.

Last week, we were able to stream without any problems. However, this week, we could not stream through our app. Even the sample WebRTCApp provided in the Community Edition works only some of the time but not most of the time.

We made our app to use the WebRTCApp sample as a base. We noticed that it might be that the app or the browsers we used for testing could not send the video data fast enough, so the stream did not get started immediately.
Sometimes, we had to wait for 10 minutes until we can get the video playing. Mind you that we had no problems when we setup the server freshly. After a couple of weeks, this problem started to appear and we could not figure out why.

No errors in the logs and the debug log is hard to understand. Our server is deployed on a t3a.medium AWS instance. (2 CPU, 4GB RAM)

Any help is appreciated.
Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0
Hi Hakim,

What is the server load? How many concurrent viewers and publishers are there?

Best regards,

On Wednesday, July 24, 2019 at 8:33:46 AM UTC+2, Hakim Zulkufli wrote:
Hi,

We're a developing an app that allows user to livestream through their mobile phone's camera using Ionic version 4 framework.

Last week, we were able to stream without any problems. However, this week, we could not stream through our app. Even the sample WebRTCApp provided in the Community Edition works only some of the time but not most of the time.

We made our app to use the WebRTCApp sample as a base. We noticed that it might be that the app or the browsers we used for testing could not send the video data fast enough, so the stream did not get started immediately.
Sometimes, we had to wait for 10 minutes until we can get the video playing. Mind you that we had no problems when we setup the server freshly. After a couple of weeks, this problem started to appear and we could not figure out why.

No errors in the logs and the debug log is hard to understand. Our server is deployed on a t3a.medium AWS instance. (2 CPU, 4GB RAM)

Any help is appreciated.
Link to comment
Share on other sites

  • 0
Pretty much zero. We're only doing internal testing for now.

On Tuesday, July 30, 2019 at 1:51:27 AM UTC+8, Murat Aydin wrote:
Hi Hakim,

What is the server load? How many concurrent viewers and publishers are there?

Best regards,

On Wednesday, July 24, 2019 at 8:33:46 AM UTC+2, Hakim Zulkufli wrote:
Hi,

We're a developing an app that allows user to livestream through their mobile phone's camera using Ionic version 4 framework.

Last week, we were able to stream without any problems. However, this week, we could not stream through our app. Even the sample WebRTCApp provided in the Community Edition works only some of the time but not most of the time.

We made our app to use the WebRTCApp sample as a base. We noticed that it might be that the app or the browsers we used for testing could not send the video data fast enough, so the stream did not get started immediately.
Sometimes, we had to wait for 10 minutes until we can get the video playing. Mind you that we had no problems when we setup the server freshly. After a couple of weeks, this problem started to appear and we could not figure out why.

No errors in the logs and the debug log is hard to understand. Our server is deployed on a t3a.medium AWS instance. (2 CPU, 4GB RAM)

Any help is appreciated.
Link to comment
Share on other sites

  • 0
Hi Hakim,

How many publishers are there when you are testing?

Best regards,

On Wednesday, July 31, 2019 at 7:04:50 AM UTC+2, Hakim Zulkufli wrote:
Pretty much zero. We're only doing internal testing for now.

On Tuesday, July 30, 2019 at 1:51:27 AM UTC+8, Murat Aydin wrote:
Hi Hakim,

What is the server load? How many concurrent viewers and publishers are there?

Best regards,

On Wednesday, July 24, 2019 at 8:33:46 AM UTC+2, Hakim Zulkufli wrote:
Hi,

We're a developing an app that allows user to livestream through their mobile phone's camera using Ionic version 4 framework.

Last week, we were able to stream without any problems. However, this week, we could not stream through our app. Even the sample WebRTCApp provided in the Community Edition works only some of the time but not most of the time.

We made our app to use the WebRTCApp sample as a base. We noticed that it might be that the app or the browsers we used for testing could not send the video data fast enough, so the stream did not get started immediately.
Sometimes, we had to wait for 10 minutes until we can get the video playing. Mind you that we had no problems when we setup the server freshly. After a couple of weeks, this problem started to appear and we could not figure out why.

No errors in the logs and the debug log is hard to understand. Our server is deployed on a t3a.medium AWS instance. (2 CPU, 4GB RAM)

Any help is appreciated.
Link to comment
Share on other sites

  • 0
Not sure what you mean by publishers but that was one stream in the WebRTCApp with only one stream connected.

The weird thing is that at one time it worked flawlessly, the video gets streamed immediately after clicking Start Streaming. And then the other times we had to wait many minutes before the stream started kicking in.

On Wednesday, July 31, 2019 at 5:53:37 PM UTC+8, Murat Aydin wrote:
Hi Hakim,

How many publishers are there when you are testing?

Best regards,

On Wednesday, July 31, 2019 at 7:04:50 AM UTC+2, Hakim Zulkufli wrote:
Pretty much zero. We're only doing internal testing for now.

On Tuesday, July 30, 2019 at 1:51:27 AM UTC+8, Murat Aydin wrote:
Hi Hakim,

What is the server load? How many concurrent viewers and publishers are there?

Best regards,

On Wednesday, July 24, 2019 at 8:33:46 AM UTC+2, Hakim Zulkufli wrote:
Hi,

We're a developing an app that allows user to livestream through their mobile phone's camera using Ionic version 4 framework.

Last week, we were able to stream without any problems. However, this week, we could not stream through our app. Even the sample WebRTCApp provided in the Community Edition works only some of the time but not most of the time.

We made our app to use the WebRTCApp sample as a base. We noticed that it might be that the app or the browsers we used for testing could not send the video data fast enough, so the stream did not get started immediately.
Sometimes, we had to wait for 10 minutes until we can get the video playing. Mind you that we had no problems when we setup the server freshly. After a couple of weeks, this problem started to appear and we could not figure out why.

No errors in the logs and the debug log is hard to understand. Our server is deployed on a t3a.medium AWS instance. (2 CPU, 4GB RAM)

Any help is appreciated.
Link to comment
Share on other sites

  • 0
Hi Hakim,

Is player embedded in another web site?
Could you plase provide the steps how to reproduce? Perhaps a simple project that shows the problem?
#Steps to reproduce
1.
2.
3.
#Expected and Actual Behavior

Best regards,

On Friday, August 2, 2019 at 5:14:12 AM UTC+2, Hakim Zulkufli wrote:
Not sure what you mean by publishers but that was one stream in the WebRTCApp with only one stream connected.

The weird thing is that at one time it worked flawlessly, the video gets streamed immediately after clicking Start Streaming. And then the other times we had to wait many minutes before the stream started kicking in.

On Wednesday, July 31, 2019 at 5:53:37 PM UTC+8, Murat Aydin wrote:
Hi Hakim,

How many publishers are there when you are testing?

Best regards,

On Wednesday, July 31, 2019 at 7:04:50 AM UTC+2, Hakim Zulkufli wrote:
Pretty much zero. We're only doing internal testing for now.

On Tuesday, July 30, 2019 at 1:51:27 AM UTC+8, Murat Aydin wrote:
Hi Hakim,

What is the server load? How many concurrent viewers and publishers are there?

Best regards,

On Wednesday, July 24, 2019 at 8:33:46 AM UTC+2, Hakim Zulkufli wrote:
Hi,

We're a developing an app that allows user to livestream through their mobile phone's camera using Ionic version 4 framework.

Last week, we were able to stream without any problems. However, this week, we could not stream through our app. Even the sample WebRTCApp provided in the Community Edition works only some of the time but not most of the time.

We made our app to use the WebRTCApp sample as a base. We noticed that it might be that the app or the browsers we used for testing could not send the video data fast enough, so the stream did not get started immediately.
Sometimes, we had to wait for 10 minutes until we can get the video playing. Mind you that we had no problems when we setup the server freshly. After a couple of weeks, this problem started to appear and we could not figure out why.

No errors in the logs and the debug log is hard to understand. Our server is deployed on a t3a.medium AWS instance. (2 CPU, 4GB RAM)

Any help is appreciated.
Link to comment
Share on other sites

 Share

×
×
  • Create New...