Commit Graph

51 Commits

Author SHA1 Message Date
Lukas Herman 6a211aa19f Use x264 as default in example 2020-11-01 00:38:42 -07:00
Lukas Herman 1d34ec9c5d Fix broken vpx example 2020-10-31 23:55:46 -07:00
Lukas Herman 765318feb6 Fix webrtc example 2020-10-30 01:19:03 -07:00
Lukas Herman af6d31fde5 Revert go.mod 2020-10-30 00:37:38 -07:00
Lukas Herman 2f5e4ee914 New mediadevices design
Changelog:
  * Better support for non-webrtc use cases
  * Enable multiple readers
  * Enhance codec selectors
  * Update APIs to reflect on the new v3 webrtc design
  * Cleaner APIs
2020-10-30 00:33:55 -07:00
Lukas Herman c8547c4597 Rename simple -> webrtc 2020-10-27 21:13:07 -07:00
Lukas Herman 21bb12dd6b Reduce examples to increase maintainability
Changes:
  * Remove facedetection, rtp-send, and screenshare examples
  * Rename simple to webrtc
2020-10-27 21:10:50 -07:00
Lukas Herman 7aad89ef37 Fix example go module versioning 2020-10-01 21:06:02 -07:00
Atsushi Watanabe ecff5e63a5 prop: support ranged/exact/oneof constraints 2020-05-24 10:26:16 +09:00
Lukas Herman dbf6d2e00f Remove codecparam and transform examples 2020-04-19 21:12:00 -04:00
Atsushi Watanabe aefe480c95 Tweak examples/go.mod
Specify replace directive to avoid using master branch of mediadevices
and force using local working tree.
2020-03-28 10:21:02 -04:00
Lukas Herman 1026fd02c9 Exclude example dependencies 2020-03-25 23:46:33 -04:00
Lukas Herman 0ed57fc884 Add facedetection example 2020-03-25 23:46:33 -04:00
Atsushi Watanabe 73cee07d71 Unify codec params type/func naming 2020-03-24 07:02:32 +09:00
Atsushi Watanabe 7bb7c9e927 codec/vaapi: calculate max bit-rate from BaseParam 2020-03-23 12:25:23 -04:00
Lukas Herman a3c9949c90 Update readme 2020-03-21 07:45:10 -04:00
Lukas Herman 4cc142de3b Update comments 2020-03-21 07:45:10 -04:00
Lukas Herman c9b90fb233 Redesign codec
Resolves https://github.com/pion/mediadevices/issues/114

* Remove codec registrar
* Completely redesign how codec is being discovered, tuned, and built
* Update examples
* Update unit tests
2020-03-21 07:45:10 -04:00
Atsushi Watanabe 475f8cc458 Manage jsfiddle code in tree
Load code from GitHub repository.
2020-03-20 22:15:59 +09:00
Lukas Herman 59b451a38f Update example to add x264 2020-03-12 08:49:10 -04:00
Atsushi Watanabe 31227a18b2 Add libva specific CodecParam 2020-03-11 22:50:37 -04:00
Atsushi Watanabe 15951b02b6 Support codec specific parameters 2020-03-07 16:51:17 -05:00
Atsushi Watanabe 70e7ba23e9 Update screenshare example to support pion/webrtc v2.2 2020-02-25 19:09:36 -08:00
Atsushi Watanabe 59478e0bef Fix RTP-send GStreamer command and add VLC 2020-02-20 19:41:51 -08:00
Atsushi Watanabe 571d378786 Keep aspect ratio on negative scale 2020-02-17 14:51:24 +09:00
Atsushi Watanabe 4e3ebb554f Add scale transform to screenshare example 2020-02-17 14:51:24 +09:00
Lukas Herman b0f0673c13 Update x11 to keep RGBA format 2020-02-16 17:12:37 -08:00
Lukas Herman f4ff7ab80b Update example to use rotate180 instead 2020-02-16 17:12:37 -08:00
Lukas Herman 4531d8a3e5 Fix missing camera adapter 2020-02-16 17:12:37 -08:00
Lukas Herman ae7c0dffaf Remove unnecessary imports 2020-02-16 17:12:37 -08:00
Atsushi Watanabe cad9f41047 Add instruction to use dummy adapters in simple example
Co-authored-by: Lukas Herman <lherman.cs@gmail.com>
2020-02-15 15:52:10 +09:00
Lukas Herman c779f9603a Add comments for vpx imports 2020-02-14 21:44:38 -08:00
Lukas Herman ec951025fb Remove default adapters
* Update examples to import adapters explicitly
* Remove default adapters to be imported implicitly
2020-02-14 21:44:38 -08:00
Lukas Herman ed2323bebc Add GetDisplayMedia
* Add selectScreen to select all registered drivers that can screenshare
* Add GetDisplayMedia
* Add screenshare example
2020-02-14 12:22:03 -08:00
Atsushi Watanabe f0cd710090 Add rtp-send example 2020-02-14 07:06:29 -08:00
Atsushi Watanabe 36375b5294 Use frame format in media selection 2020-02-13 19:41:33 -08:00
Atsushi Watanabe 0d0c013442 Use AddTransceiverFromTrack in examples
Instead of AddTrack.
2020-02-13 19:37:39 -08:00
Lukas Herman c6d0f3ec02 Add custom video/audio transforms
Resolves https://github.com/pion/mediadevices/issues/31
2020-02-12 08:17:57 -08:00
Lukas Herman ec310e566b Move Codec from MediaTrackConstraints to prop.Codec 2020-02-10 20:07:41 -08:00
Atsushi Watanabe 00bcadc238 Add codec property
Add codec property, which stores general encoding parameters,
to MediaTrackConstraints.
2020-02-10 18:45:34 -08:00
Atsushi Watanabe 1e868fc3e3 Add OnEnded handler
In Web API, MediaStreamTrack.ended event is fired and
MediaStreamTrack.onended handler is called on device error.
This commit adds same way to handle errors.
2020-02-10 17:43:31 -08:00
Atsushi Watanabe e4da8fae14 Add Firefox and VP8 support to the simple example 2020-02-08 22:46:48 -08:00
Lukas Herman aece2b94c6 Refractor, unify some APIs to be more DRY 2020-02-06 22:44:29 -08:00
Lukas Herman 2640f6c1f4 Move all settings to video/audio under io 2020-02-06 22:44:29 -08:00
Lukas Herman 61c0b53c55 Add initial audio support 2020-02-06 22:44:29 -08:00
Lukas Herman 107b8c0a34 Rename h264 to openh264 2020-01-05 22:12:44 -08:00
Lukas Herman 62aef6b8f3 Update codec to be dynamically registered 2020-01-05 22:12:44 -08:00
Lukas Herman 5316a81aec Add some comments for better godoc 2019-12-28 09:39:31 -08:00
Lukas Herman 5679e3c0d7 Add SelectSettings algorithm and Codec to video constraints 2019-12-28 09:39:31 -08:00
Lukas Herman 709e56166f Completely rearchitect the overall project structure 2019-12-25 16:13:37 -08:00