Skip to content

Instantly share code, notes, and snippets.

@wancw
Last active November 21, 2019 07:45
Show Gist options
  • Save wancw/8bfd498ec409b61881db to your computer and use it in GitHub Desktop.
Save wancw/8bfd498ec409b61881db to your computer and use it in GitHub Desktop.
Download WebRTC Java source code to generate Javadoc and Dash Docset
#!/usr/bin/env bash
WEBRTC_REPO=http://webrtc.googlecode.com/svn/trunk
WEBRTC_REV=7217
svn checkout ${WEBRTC_REPO}/talk/app/webrtc/java@r${WEBRTC_REV} peer_connection
svn checkout ${WEBRTC_REPO}/webrtc/modules/audio_device/android/java@r${WEBRTC_REV} audio_device
svn checkout ${WEBRTC_REPO}/webrtc/modules/video_capture/android/java@r${WEBRTC_REV} video_capture
svn checkout ${WEBRTC_REPO}/webrtc/modules/video_render/android/java@r${WEBRTC_REV} video_render
mkdir -p docs
javadoc -d docs/javadoc \
-sourcepath peer_connection/src:peer_connection/android:audio_device/src:video_capture/src:video_render/src \
org.webrtc org.webrtc.voiceengine org.webrtc.videoengine
javadocset "WebRTC Java (r${WEBRTC_REV})" docs/javadoc
mv *.docset docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment