Skip to content

Commit 89bec99

Browse files
committed
RecordRTC main demo (index.html) updated.
Fixed gif-preview, added pcm/whammy as well as vp8/vp9/h264 selection via dropdown list.
1 parent 3322bb3 commit 89bec99

6 files changed

+280
-177
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,27 @@ Please check [dev](https://github.com/muaz-khan/RecordRTC/tree/master/dev) direc
3636
| Android | [Chrome](https://play.google.com/store/apps/details?id=com.chrome.beta&hl=en) / [Firefox](https://play.google.com/store/apps/details?id=org.mozilla.firefox) / [Opera](https://play.google.com/store/apps/details?id=com.opera.browser) | Audio/Video Separately |
3737
| Microsoft Edge | [Normal Build](https://www.microsoft.com/en-us/windows/microsoft-edge) | Only Audio |
3838

39-
## How RecordRTC encodes wav/webm?
39+
## RecordRTC Encoders Format
40+
41+
#### vp9
42+
43+
<a href="https://www.webrtc-experiment.com/images/RecordRTC-vp9.png"><img src="https://www.webrtc-experiment.com/images/RecordRTC-vp9.png" alt="RecordRTC vp9" /></a>
44+
45+
#### vp8
46+
47+
<a href="https://www.webrtc-experiment.com/images/RecordRTC-vp8.png"><img src="https://www.webrtc-experiment.com/images/RecordRTC-vp8.png" alt="RecordRTC vp8" /></a>
48+
49+
#### h264
50+
51+
<a href="https://www.webrtc-experiment.com/images/RecordRTC-h264.png"><img src="https://www.webrtc-experiment.com/images/RecordRTC-h264.png" alt="RecordRTC h264" /></a>
52+
53+
#### pcm
54+
55+
<a href="https://www.webrtc-experiment.com/images/RecordRTC-pcm.png"><img src="https://www.webrtc-experiment.com/images/RecordRTC-pcm.png" alt="RecordRTC pcm" /></a>
56+
57+
#### opus
58+
59+
<a href="https://www.webrtc-experiment.com/images/RecordRTC-opus.png"><img src="https://www.webrtc-experiment.com/images/RecordRTC-opus.png" alt="RecordRTC opus" /></a>
4060

4161
|Media File|Bitrate/Framerate|encoders|Framesize|additional info|
4262
| ------------- |-------------|-------------|-------------|-------------|

RecordRTC.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Last time updated: 2017-02-03 12:20:23 PM UTC
1+
// Last time updated: 2017-02-05 5:17:27 PM UTC
22

33
// ________________
44
// RecordRTC v5.4.0
@@ -2850,8 +2850,8 @@ function WhammyRecorder(mediaStream, config) {
28502850
};
28512851
}
28522852

2853-
canvas.width = config.canvas.width;
2854-
canvas.height = config.canvas.height;
2853+
canvas.width = config.canvas.width || 320;
2854+
canvas.height = config.canvas.height || 240;
28552855

28562856
context = canvas.getContext('2d');
28572857

@@ -3824,11 +3824,11 @@ function GifRecorder(mediaStream, config) {
38243824
};
38253825
}
38263826

3827-
canvas.width = config.canvas.width;
3828-
canvas.height = config.canvas.height;
3827+
canvas.width = config.canvas.width || 320;
3828+
canvas.height = config.canvas.height || 240;
38293829

3830-
video.width = config.video.width;
3831-
video.height = config.video.height;
3830+
video.width = config.video.width || 320;
3831+
video.height = config.video.height || 240;
38323832
}
38333833

38343834
// external library to record as GIF images

RecordRTC.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/GifRecorder.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ function GifRecorder(mediaStream, config) {
5858
};
5959
}
6060

61-
canvas.width = config.canvas.width;
62-
canvas.height = config.canvas.height;
61+
canvas.width = config.canvas.width || 320;
62+
canvas.height = config.canvas.height || 240;
6363

64-
video.width = config.video.width;
65-
video.height = config.video.height;
64+
video.width = config.video.width || 320;
65+
video.height = config.video.height || 240;
6666
}
6767

6868
// external library to record as GIF images

dev/WhammyRecorder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ function WhammyRecorder(mediaStream, config) {
6161
};
6262
}
6363

64-
canvas.width = config.canvas.width;
65-
canvas.height = config.canvas.height;
64+
canvas.width = config.canvas.width || 320;
65+
canvas.height = config.canvas.height || 240;
6666

6767
context = canvas.getContext('2d');
6868

0 commit comments

Comments
 (0)