432 Commits (master)
 

Author SHA1 Message Date
Leo Ma 6307f6c5ad Camera size validity check
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 65472cc5c1 Update README 9 years ago
Leo Ma e082e3ba2e Clear queue while shutting down
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma fd7eb0566d Streaming parameter adjustment
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 5930749228 Simplification
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 5f37bd808b Fix socket and thread close method
1. Use boolean flag in write thread to avoid InterruptedException while
it is blocked and use interrupted flag in read thread.

2. Do NOT close input stream in read thread and output stream in write
thread when shutting down. socket.close() will handle it automatically.
Otherwise SocketException will be raised in the corresponding thread.

3. Do socket.shutdownInput() before ending read thread and capture
EOFException which may be the only correct way to return the blocking
input stream read method.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 33f3195c7a Fix NullPointerException
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma e4340b09ee Handle return to home page by onPause
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 9bc3bc2e73 Replace Looper with Queue for less CPU overhead
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 73c6c8e451 Add video cached frame counting
To check networking situation according to cached frame counting.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 236636ca74 Handle InterruptedException by Thread.interrupt()
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 2b83e5656d Use runOnUiThread to process exception
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma e54db1cd8b Use ConcurrentLinkedQueue to reduce CPU overhead
Since isEmpty method of ConcurrentLinkedQueue may take some time, and
therefore it would not detect new elements offered, we have to wait a time
out to ensure ConcurrentLinkedQueue can detect new elements.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma e89a5caf12 Replace ConcurrentLinkedQueue with Looper & handleMessage
ConcurrentLinkedQueue may have some bug since the queue is still empty
while elements have been added into it.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 62bb4823c4 Add DefaultUncaughtException for global error processing
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma ff98ae24c6 Synchronize thread extermination
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma bb6d7e00e3 Sleep in RTMP reading thread
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma f30393bd81 Force resolution stride for hard encoding
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 0022325e57 Fix color format yuv420 plannar transformation bug
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma aec2257fdd Fix index out of bound bug
When processing Cb and Cr component In yuv420planner frame, the length
of width and height should be half of that in Y component.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma bcb8d641c6 Fix RTMP connection sequence
The createStream response from the server may come after onFCPublish.
Therefore we have to wait until onStatus containing NetStream.Publish.Start
status code arrives.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 1100bd2b5f Remove EditTextChangedListener to reduce CPU overhead
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma fc7991c220 Fix bug
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma cecd7aebc8 Update
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 7c7e428585 Fix encoding PTS bug
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma cd6e0d704f Update
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma ecf26cef4c Fix importing bug
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 3d7a4a0da3 Add Acknowledgement packet decoding support
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma e087e07e85 Fix SetChunkSize command bug
The chunk size of RTMP packet means two things: When the SetChunkSize
command comes from the server, it changes rx chunk size of the peer
while the tx chunk size still stays unchanged.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 2e751b2027 Change app name
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 829c8c29b0 Add license 9 years ago
Leo Ma a2a499efb8 Have fun 9 years ago