Jump to content

Experience WebRTC Samples with Ant Media Server


Recommended Posts

Hi Guys

We've just prepared first version of WebRTC Samples so that users/developers can experience/play WebRTC Samples with Ant Media Server easily. There are 3 samples for now and we're going to add a new sample in each week. The full draft list is below.

If you have any idea for samples or feedback for the samples or  want to take part in preparing an easy to use webrtc sample, let me know. We can also discuss in the community hours tomorrow. 

Here is the webrtc samples link -> https://antmedia.io/webrtc-samples/

 

Cheers

Oguz

 

Full WebRTC Samples List(Draft)

- PARTIALLY DONE: Publish and Play in the Same Page(Needs Refactor)
- DONE: Publish and Play in different pages 
- DONE: Audio Only Publish and Play

- DONE: Virtual Background
- DONE: Data Only Publish and Play in different pages
- RTMP Publishing and Playback
- ScreenSharing Publish
- Canvas Publishing
- Show the Latency in Publish and Play
- Change the video tracks or audio tracks on the fly
- Conferencing
- Multitrack Streaming
- SRT Publishing and Playback
- RTSP(IP Camera Streaming) and Playback
- PTZ Functions for IP Camera
- White Board Publish & Play
- Embedded Player
- Publish with User and Screen with high performance(Insertable Streams)
- Transmit File with Data Publishing
- Change bandwidth on the fly
- Change Camera Resolution
- Change Camera and Microphone
- Constraints and Statistics
- Session Restored Sample

- requestVideoFrameCallback
- Web Audio output as input to peer connection
- Peer connection as input to Web Audio 
- Use different TURN/STUN Servers
- Support SVC before the call 
- Check bandwidth and connectivity (test tool)
- Insertable Streams:
   - Video Processing
   - Audio Processing 

 

 

  • Like 3
Link to comment
Share on other sites

On 1/4/2023 at 12:36 PM, mekya said:

Hi Guys

We've just prepared first version of WebRTC Samples so that users/developers can experience/play WebRTC Samples with Ant Media Server easily. There are 3 samples for now and we're going to add a new sample in each week. The full draft list is below.

If you have any idea for samples or feedback for the samples or  want to take part in preparing an easy to use webrtc sample, let me know. We can also discuss in the community hours tomorrow. 

Here is the webrtc samples link -> https://antmedia.io/webrtc-samples/

 

Cheers

Oguz

 

Full WebRTC Samples List(Draft)

- PARTIALLY DONE: Publish and Play in the Same Page(Needs Refactor)
- DONE: Publish and Play in different pages 
- DONE: Audio Only Publish and Play

- Virtual Background
- Publish and Play in different pages with Data Channel
- ScreenSharing Publish
- Canvas Publishing
- Audio Only Publish and Play
- Data Only Publishing
- Show the Latency in Publish and Play
- Conferencing
- Multitrack Streaming
- RTMP Publishing and Playback
- SRT Publishing and Playback
- RTSP(IP Camera Streaming) and Playback
- PTZ Functions for IP Camera
- White Board Publish & Play
- Embedded Player
- Publish with User and Screen with high performance(Insertable Streams)
- Transmit File with Data Publishing
- Change bandwidth on the fly
- Change Camera Resolution
- Change Camera and Microphone
- Constraints and Statistics
- Session Restored Sample

- requestVideoFrameCallback
- Web Audio output as input to peer connection
- Peer connection as input to Web Audio 
- Use different TURN/STUN Servers
- Support SVC before the call 
- Check bandwidth and connectivity (test tool)
- Insertable Streams:
   - Video Processing
   - Audio Processing 

 

 

Hello @mekya

I think we already have more than 3 samples in the enterprise edition. If this draft is not at priority we can distribute these samples with community individuals (With some pay (win-win)).

Is there any theme layout and color combination for all these samples ? In my opinion should have.

Also it would be better to have some explanation about these samples on blog (for non tech person to understand what the application is all about).

I am already in for these development (Currently working on co-watching).

  • Like 1
Link to comment
Share on other sites

Hi @rahul7827

Quote

I think we already have more than 3 samples in the enterprise edition. If this draft is not at priority we can distribute these samples with community individuals (With some pay (win-win)).

Yes, definitely. 
Guys, please let me know if you would like to take any of these things. 

Quote

Is there any theme layout and color combination for all these samples ? In my opinion should have.

Yes, it should be in the sample format provided. Check this WebRTC publish and Play sample

This is the page and this is the source code

Quote

Also it would be better to have some explanation about these samples on blog (for non tech person to understand what the application is all about).

At the top of samples, there are basic explanations. We can also publish a blog post to announce it and give the basic explanations.

https://antmedia.io/webrtc-samples/webrtc-publish-webrtc-play/


Happy Sunday
Oguz

  • Thanks 1
Link to comment
Share on other sites

32 minutes ago, mekya said:

Hey Guys,

WebRTC Virtual Background sample is available for your experience. 

https://antmedia.io/webrtc-samples/webrtc-virtual-background/

 

Let me know if you have feedbacks/forwards @rahul7827, @C.K and for everyone.  

Hi @mekya

Its really good feature. 👍

Convey my special thanks to the developer (I guess mustafa developed this ?)

Can we have a pre-loader at the video frame while loading the virtual background (Virtual background takes few seconds to apply, may be due to iframe ? not sure.)

Also we can disable the buttons to set background until video start publishing.

Edited by rahul7827
Link to comment
Share on other sites

11 minutes ago, rahul7827 said:

Also we can disable virtual background buttons to set background until video start publishing.

Before publishing the video i clicked on virtual background, nothing happened (Did not waited long).

In second attempt, I got the background (After 8-10 second).

Link to comment
Share on other sites

Hi Rahul,

21 hours ago, rahul7827 said:

Convey my special thanks to the developer (I guess mustafa developed this ?)

 

Yes, @mustafabolekenhas developed this feature. 

 

21 hours ago, rahul7827 said:

Can we have a pre-loader at the video frame while loading the virtual background (Virtual background takes few seconds to apply, may be due to iframe ? not sure.)

It's generally 1 sec or similar to make the virtual background appear.

Let me understand your problem. Is it taking 8-10 seconds? 

  • Like 2
Link to comment
Share on other sites

Yes @mekya Its improved by 2 second, I checked this in Chrome and Firefox (Incognito mode).

👍 for understanding the reason so quickly, that I couldn't figured out.

Also did you observed, We need camera permission twice. First when the sample page starts loading and second when we select any background then again it asks for camera permission.

  • Like 1
Link to comment
Share on other sites

3 hours ago, mekya said:

Hi @rahul7827

It calls getUserMedia again when video effect is enabled because WebRTCAdaptor stops the previous track in updating video track. I think it's disturbing for you, could you please help by creating an issue for this?

Additionally, I've enabled the WebRTC data channel only sample 

 

Regards

Oguz

Hello @mekya

I have created the issue here.

Thanks for the explanation, I got it.

 

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...