Skip to content

Commit 5075f7e

Browse files
committed
docs: advertise the media module
The README gains a feature entry and a short section on sending media files: what the module does, a five line example with MediaFileSource, the formats it reads, and a link to the guide. The formats listed are the ones the FFmpeg build enables, and only files are named, since the build leaves networking out. The documentation home gets a feature card for it, and the guide overview now lists the Media Files guide, which only the sidebar did so far. The link to MediaFileExample's source pointed into a source directory that does not exist; it points to the example now.
1 parent af7fcee commit 5075f7e

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The library provides a comprehensive set of Java classes that map to the WebRTC
1616
- **Cross-platform support** - Works on Windows, macOS, and Linux (x64, ARM, ARM64)
1717
- **Media capabilities** - Audio and video capture from cameras and microphones
1818
- **Desktop capture** - Screen and application window sharing
19+
- **Media file playback** - Send video and audio files over a peer connection in place of a camera and microphone, with the optional FFmpeg-based `webrtc-java-media` module
1920
- **Data channels** - Bidirectional peer-to-peer data exchange
2021
- **Statistics API** - Detailed metrics for monitoring connection quality
2122
- **Simple integration** - Available as a Maven dependency
@@ -28,6 +29,7 @@ For more detailed information, check out the documentation:
2829
- [Quickstart](https://jrtc.dev/guide/get-started) - Get up and running quickly with webrtc-java
2930
- [Guides](https://jrtc.dev/guide/) - Comprehensive documentation on using the library
3031
- [Examples](https://jrtc.dev/guide/examples) - Sample code demonstrating various features
32+
- [Media Files](https://jrtc.dev/guide/media/media-files) - Sending video and audio files with the media module
3133
- [Build Notes](https://jrtc.dev/guide/build) - Instructions for building the library from source
3234

3335
## License

‎docs/guide/examples.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This example is particularly useful for applications that need to implement scre
5454

5555
## Media File
5656

57-
The [`MediaFileExample`](https://github.com/devopvoid/webrtc-java/blob/master/webrtc-examples/src/media/java/dev/onvoid/webrtc/examples/MediaFileExample.java) demonstrates how to send a media file over a peer connection, in place of a camera and a microphone. See the [Media Files](/guide/media/media-files) guide for the API it uses.
57+
The [`MediaFileExample`](https://github.com/devopvoid/webrtc-java/blob/master/webrtc-examples/src/main/java/dev/onvoid/webrtc/examples/MediaFileExample.java) demonstrates how to send a media file over a peer connection, in place of a camera and a microphone. See the [Media Files](/guide/media/media-files) guide for the API it uses.
5858

5959
**Key features demonstrated:**
6060
- Opening a media file with a `MediaFileSource`

‎docs/guide/index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This section provides detailed guides for various features of the webrtc-java li
77
- [Media Devices](/guide/media/media-devices) - Working with audio and video devices
88
- [Bitrate and Framerate Constraints](/guide/media/constraints) - Controlling media quality
99
- [Send-only and Receive-only](/guide/media/directionality) - Configure transceiver directions (send-only, receive-only or inactive)
10+
- [Media Files](/guide/media/media-files) - Sending video and audio files instead of a camera and microphone
1011

1112
## Audio
1213

‎docs/index.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ features:
2626
details: Thin JNI layer with minimal overhead, delivering near-native performance with minimal context switching between Java and native code.
2727
- title: Audio and video streaming
2828
details: Audio and video capture from cameras and microphones devices, with support for custom media sources for flexible streaming solutions.
29+
- title: Media File Playback
30+
details: Send video and audio files over a peer connection. The optional media module decodes with FFmpeg in native code and paces playback in real time, keeping audio and video in sync.
2931
- title: Screen Sharing
3032
details: Share application windows or the full desktop with minimal setup; integrate screen capture streams like any other media stream.
3133
- title: Data Channels

0 commit comments

Comments
 (0)