Skip to content

Commit

Permalink
v2.1 ready. Minor modifications of the RtspServer. Edited README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed May 3, 2013
1 parent cf6ae4a commit 083dfe7
Show file tree
Hide file tree
Showing 62 changed files with 139 additions and 127 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

* Supported encoders includes H.264, H.263, AAC and AMR
* Since version 2.0, a basic support for RTCP has been implemented.
* libstreaming also features a RTSP server for easy remote control of the phones camera and microphone.
* libstreaming also features a RTSP server for easy remote control of the phone camera and microphone.

The full javadoc documentation of the API is available here: http://libstreaming.majorkernelpanic.net/

Expand Down Expand Up @@ -57,7 +57,7 @@ String sdp = session.getSessionDescription();
session.start();
```

The **SessionBuilder** simply facilitates the creation of **Session** objects. The call to **setSurfaceHolder** is needed for video streaming, that should not come up as a surprise since Android requires a valid surface for recording video (It's an ennoying limitation of the **MediaRecorder**). The call to **setContext** is optional but recommanded, it allows **H264Stream** objects and **AACStream** objects to store and recover data in the **SharedPreferences** of your app. Check the implementation of those two classes to find out exactly what data are stored.
The **SessionBuilder** simply facilitates the creation of **Session** objects. The call to **setSurfaceHolder** is needed for video streaming, that should not come up as a surprise since Android requires a valid surface for recording video (It's an ennoying limitation of the **MediaRecorder** API). The call to **setContext** is optional but recommanded, it allows **H264Stream** objects and **AACStream** objects to store and recover data in the **SharedPreferences** of your app. Check the implementation of those two classes to find out exactly what data are stored.

**Session** objects represents a streaming session to some peer. It contains one or more **Stream** objects that are started (resp. stopped) when the start() (resp. stop()) method is invoked. The method **setDestination** allows you to specify the ip address to which RTP and RTCP packets will be sent. The method **getSessionDescription** will return a SDP of the session in the form of a String.

Expand Down
4 changes: 2 additions & 2 deletions doc/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:15 EDT 2013 -->
<TITLE>
All Classes
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:15 EDT 2013 -->
<TITLE>
All Classes
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:15 EDT 2013 -->
<TITLE>
Constant Field Values
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/deprecated-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:15 EDT 2013 -->
<TITLE>
Deprecated List
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:15 EDT 2013 -->
<TITLE>
API Help
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:15 EDT 2013 -->
<TITLE>
Index
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="./stylesheet.css" TITLE="Style">

Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Apr 22 18:25:25 EDT 2013-->
<!-- Generated by javadoc on Thu May 02 23:56:15 EDT 2013-->
<TITLE>
Generated Documentation (Untitled)
</TITLE>
Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/MediaStream.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
MediaStream
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/Session.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
Session
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/SessionBuilder.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
SessionBuilder
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/Stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
Stream
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/audio/AACStream.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
AACStream
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/audio/AMRNBStream.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
AMRNBStream
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/audio/AudioStream.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
AudioStream
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/audio/package-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.audio
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/audio/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.audio
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/audio/package-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.audio Class Hierarchy
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
AACNotSupportedException
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.exceptions
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.exceptions
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.exceptions Class Hierarchy
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/mp4/MP4Config.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
MP4Config
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/mp4/package-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.mp4
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/mp4/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.mp4
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions doc/net/majorkernelpanic/streaming/mp4/package-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon Apr 22 18:25:25 EDT 2013 -->
<!-- Generated by javadoc (build 1.6.0_26) on Thu May 02 23:56:14 EDT 2013 -->
<TITLE>
net.majorkernelpanic.streaming.mp4 Class Hierarchy
</TITLE>

<META NAME="date" CONTENT="2013-04-22">
<META NAME="date" CONTENT="2013-05-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

Expand Down
Loading

0 comments on commit 083dfe7

Please sign in to comment.