Hi,
I have a desktop application like Skype, for video call I have achieved the feature for join call, but I won't add feature like Skype when someone call me, I am getting call ring or notification like Skype call, in our application so please suggest me, how can I implemented it.

Laxmidhar SahooRank #383 · 6.6K reputationPosted Jan 2, 2018, 6:43 PM EST
Shefali LahariyaRank #6,715 · 258 reputationPosted Jan 2, 2018, 9:57 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jan 2, 2018, 11:13 PM EST
Alex Davis3 reputationPosted Jan 17, 2025, 8:55 AM EST
Hi,
To implement a feature like Skype where users receive a call ring or notification when someone calls them, you can use a combination of push notifications and real-time communication.
Here are some steps to help you:
If you're building a video calling feature from scratch or want to learn more about how to build a video chat app, there are great resources and SDKs like WebRTC, Agora, or Twilio that can simplify the process.
Tuhin PaulRank #7 · 71.9K reputationPosted Jan 17, 2025, 10:39 PM EST
You would need some event-driven logic where your application listens for incoming calls, usually from a server or signaling service. Here's a simplified way to represent that:
public class VideoCallApp { private void StartListeningForIncomingCalls() { // Simulating listening for calls Task.Run(() => { // Simulate incoming call after 3 seconds Thread.Sleep(3000); OnIncomingCall(new CallInfo { CallerName = "John Doe", CallId = Guid.NewGuid() }); }); } private void OnIncomingCall(CallInfo call) { // Play ringtone sound PlayRingtone(); // Show incoming call notification window ShowIncomingCallNotification(call); } private void ShowIncomingCallNotification(CallInfo call) { // Create and show the incoming call window var incomingCallWindow = new IncomingCallWindow(call, AcceptCall, RejectCall); incomingCallWindow.Show(); } private void AcceptCall(CallInfo call) { // Handle call acceptance logic, e.g., show video call UI Console.WriteLine($"Accepting call from {call.CallerName}"); } private void RejectCall(CallInfo call) { // Handle call rejection logic, e.g., notify the caller Console.WriteLine($"Rejecting call from {call.CallerName}"); } private void PlayRingtone() { // Play a sound to notify the user of the incoming call var player = new System.Media.SoundPlayer("ringtone.wav"); player.PlayLooping(); } } public class CallInfo { public string CallerName { get; set; } public Guid CallId { get; set; } }This is a high-level approach,