Giter Site home page Giter Site logo

maui.webrtc.demo's Introduction

MAUI.WebRTC.Demo

Demo project to try WebRTC native bindings in .net MAUI. There are two projects with Xamarin bindings

Binding libraries are based on https://github.com/dmariogatto/xamarin-webrtc

How to build via CLI from windows:

  • dotnet workload install maui-android maui-ios
  • On remote mac: dotnet workload install maui-ios
  • Check that versions of workloads are similar othewise reinstall with updated workload manifest
  • cd \src\MauiSampleApp
  • dotnet build -f:net6.0-android
  • dotnet build -f:net6.0-ios /p:ServerAddress={remote mac ip} /p:ServerUser={mac user name} /p:ServerPassword={mac user pw} /p:TcpPort=58181

Status

Android

Android working perfectly without any modifications from CLI and VS.

iOS

iOS ApiDefinitions.cs was modified in order to complie:

  • AutoGeneratedName = true - removed
  • [iOS(10, 0)] - commented
  • new RTCVideoCodecInfo[] SupportedCodecs { get; } - new added

Building from CLI

iOS working perfectly if compiled on mac os. On windows it is failing with hundreds of similar errors for all Microsoft.iOS classes used in api definitions file:

C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.0.523\tools\msbuild\iOS\Xamarin.Shared.targets(1640,3): error CS0433: The type 'ExportAttribute' exists in both 'Microsoft.iOS, Version=16.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' and 'Microsoft.iOS, Version=15.4.300.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' [C:\XXX\src\WebRtc.iOS\WebRtc.iOS.csproj]

As I understand msbuild copies all referenced libraries including Microsoft.iOS.dll to remote mac. Looks like build conflicts between original sdk libraries and copied sdk libraries.

Building from VS

Fails with issue discribed in xamarin/xamarin-macios#16001.

Feel free to suggest any solutions or create PR's from forks. I will get back here time to time and try to fix iOS bindings or check if it was fixed by .net team.

maui.webrtc.demo's People

Contributors

bohdandn avatar moralis avatar

Stargazers

Tam Nguyen Huy avatar Mohamed avatar Amjad Omar avatar Andrew Coates avatar BlueSharkPartners avatar Weslley Luiz avatar Seth Valdetero avatar  avatar JP Grusling avatar Felipe Muniz avatar Christopher H. Jansmann avatar  avatar Kevin Scheitler avatar ZeBen avatar Ronan Farrell avatar

Watchers

 avatar

maui.webrtc.demo's Issues

how to use project

Hi
how I can use your project with SBC WebRTC? How I can answer call, make call, Register/Unregister?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.