Download the PHP package pushinbr/pam-native-webrtc without Composer

On this page you can find all versions of the php package pushinbr/pam-native-webrtc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pam-native-webrtc

**Voice and video calls from PHP, with every frame staying native.**
Native WebRTC peer connections, GPU video rendering and call audio routing for PAM Native applications. [![Packagist](https://img.shields.io/packagist/v/pushinbr/pam-native-webrtc?label=packagist&color=f53003)](https://packagist.org/packages/pushinbr/pam-native-webrtc) ![PHP 8.5](https://img.shields.io/badge/php-8.5-777bb4) [![License](https://img.shields.io/github/license/push-in/pam-native-webrtc?color=1f6feb)](LICENSE) [Install](#install) · [Quick example](#quick-example) · [Platforms](#platform-support) · [Permissions](#requirements) · [Guide](docs/guide.md) · [Issues](https://github.com/push-in/pam-native-webrtc/issues)

Install

Inside a PAM Native project, add only this capability:

The package is a PAM Native plugin discovered from Composer; nothing is added to pam-native.json. It requires pushinbr/pam-native >=1.0.35 <2.0.0 and PHP 8.5. The PHP provider registers the <RtcVideoView> template tag.

New to PAM? Create a project with pam init my-app --template native (see the PAM Native overview).

Quick example

PHP drives the call (signalling, state, UI); the platform WebRTC stack moves the media. Session descriptions and ICE candidates cross the bridge as small typed values, events are pushed through one pending module completion per session (no polling, no timers), and video frames are drawn natively into the view tree without ever reaching PHP.

The full walk-through (peer connection, group calls with LocalMedia, RtcVideoView, CallAudio, the event contract, a real app example) and the API reference are in docs/guide.md.

Platform support

Platform Support Notes
Android API 26+ WebRTC M124 (org.jitsi:webrtc 124.0.0)
iOS 15.0+ GoogleWebRTC M124 (stasel/WebRTC Swift package); not validated on a device yet
PAM Native 1.0.35 to < 2.0.0 From pam-native.plugin.json; PHP 8.5+

Permissions and requirements

Platform Declared by the plugin
Android INTERNET, ACCESS_NETWORK_STATE, CAMERA, RECORD_AUDIO, MODIFY_AUDIO_SETTINGS, WAKE_LOCK, VIBRATE, and BLUETOOTH (maxSdkVersion="30", for SCO routing on Android 11 and older). Camera and microphone are optional features (android:required="false").
iOS NSCameraUsageDescription ("Capture photos and videos."), NSMicrophoneUsageDescription ("Record audio with videos."), UIBackgroundModes: audio (ios/Info.plist) so calls keep running in the background. Frameworks AVFoundation, AudioToolbox.

Request PermissionKind::Microphone (and PermissionKind::Camera for video) with the core Permissions API before startLocal().

What you can build

Best for 1:1 and small-group (mesh) voice and video calls, support video chat, telemedicine, walkie-talkie
Application model Composer package + generated native integration (webrtc and call-audio modules, webrtc.video view)
Design rule Media and audio routing only; signalling, TURN credentials and the call UI belong to your app

Limits and troubleshooting

Compatibility

pushinbr/pam-native-webrtc pushinbr/pam-native Android iOS
0.3.0 >=1.0.35 <2.0.0 (tested with 1.14.x) API 26+, WebRTC M124 15+, GoogleWebRTC M124
0.2.1 >=1.0.35 <2.0.0 (tested with 1.14.x) API 26+, WebRTC M124 15+, GoogleWebRTC M124
0.2.0 >=1.0.35 <2.0.0 API 26+ 15+ (Info.plist strings conflict with pam-native-media)
0.1.x >=1.0.35 <2.0.0 API 26+ Not supported

Tests: pam tests/run.php runs the PHP contracts; the instrumented Android suite runs a real loopback call. Details in docs/guide.md#tests.

Docs

Part of the PAM ecosystem

PAM runs PHP natively on servers, desktops and phones. This repository is one piece of it.

PAM PAM Desktop PAM Native Ecosystem
the runtime and CLI native desktop apps in PHP native Android and iOS apps in PHP every official package and plugin

Docs: push-in.github.io/pam-docs · Issues

Apache License 2.0 · Made in Brazil by Pushin


All versions of pam-native-webrtc with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
pushinbr/pam-native Version ^1.53.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pushinbr/pam-native-webrtc contains the following files

Loading the files please wait ...