Skip to content
Snippets Groups Projects
Commit 766be308 authored by Leo Ma's avatar Leo Ma
Browse files

Seperate RTMP packet


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent adccd4cf
No related branches found
No related tags found
No related merge requests found
Showing
with 58 additions and 56 deletions
/build
package net.ossrs.yasea.rtmp;
package com.github.faucamp.simplertmp;
import android.util.Log;
 
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import android.util.Log;
 
/**
* Some helper utilities for SHA256, mostly (used during handshake)
Loading
Loading
package net.ossrs.yasea.rtmp;
package com.github.faucamp.simplertmp;
 
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
 
import net.ossrs.yasea.rtmp.io.RtmpConnection;
import com.github.faucamp.simplertmp.io.RtmpConnection;
 
/**
* Srs implementation of an RTMP publisher
Loading
Loading
package net.ossrs.yasea.rtmp;
package com.github.faucamp.simplertmp;
import android.os.Handler;
import android.os.Message;
Loading
Loading
package net.ossrs.yasea.rtmp;
package com.github.faucamp.simplertmp;
 
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
Loading
Loading
package net.ossrs.yasea.rtmp;
package com.github.faucamp.simplertmp;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
@@ -6,7 +6,7 @@ import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
 
import net.ossrs.yasea.rtmp.Util;
import com.github.faucamp.simplertmp.Util;
 
/**
* AMF Array
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
 
import net.ossrs.yasea.rtmp.Util;
import com.github.faucamp.simplertmp.Util;
 
/**
* AMF map; that is, an "object"-like structure of key/value pairs, but with
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
 
import net.ossrs.yasea.rtmp.Util;
import com.github.faucamp.simplertmp.Util;
 
/**
* AMF0 Number data type
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.BufferedInputStream;
import java.io.IOException;
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
@@ -8,7 +8,7 @@ import java.lang.String;
 
import android.util.Log;
 
import net.ossrs.yasea.rtmp.Util;
import com.github.faucamp.simplertmp.Util;
 
/**
*
Loading
Loading
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.util.HashMap;
import java.util.Map;
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.ossrs.yasea.rtmp.amf;
package com.github.faucamp.simplertmp.amf;
 
import java.io.IOException;
import java.io.InputStream;
Loading
Loading
package net.ossrs.yasea.rtmp.io;
package com.github.faucamp.simplertmp.io;
 
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
 
import net.ossrs.yasea.rtmp.Util;
import net.ossrs.yasea.rtmp.packets.RtmpHeader;
import com.github.faucamp.simplertmp.Util;
import com.github.faucamp.simplertmp.packets.RtmpHeader;
 
/**
* Chunk stream channel information
Loading
Loading
package net.ossrs.yasea.rtmp.io;
package com.github.faucamp.simplertmp.io;
 
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
Loading
Loading
@@ -18,23 +18,23 @@ import java.util.concurrent.atomic.AtomicInteger;
 
import android.util.Log;
 
import net.ossrs.yasea.rtmp.RtmpHandler;
import net.ossrs.yasea.rtmp.RtmpPublisher;
import net.ossrs.yasea.rtmp.amf.AmfMap;
import net.ossrs.yasea.rtmp.amf.AmfNull;
import net.ossrs.yasea.rtmp.amf.AmfNumber;
import net.ossrs.yasea.rtmp.amf.AmfObject;
import net.ossrs.yasea.rtmp.amf.AmfString;
import net.ossrs.yasea.rtmp.packets.Abort;
import net.ossrs.yasea.rtmp.packets.Data;
import net.ossrs.yasea.rtmp.packets.Handshake;
import net.ossrs.yasea.rtmp.packets.Command;
import net.ossrs.yasea.rtmp.packets.Audio;
import net.ossrs.yasea.rtmp.packets.SetPeerBandwidth;
import net.ossrs.yasea.rtmp.packets.Video;
import net.ossrs.yasea.rtmp.packets.UserControl;
import net.ossrs.yasea.rtmp.packets.RtmpPacket;
import net.ossrs.yasea.rtmp.packets.WindowAckSize;
import com.github.faucamp.simplertmp.RtmpHandler;
import com.github.faucamp.simplertmp.RtmpPublisher;
import com.github.faucamp.simplertmp.amf.AmfMap;
import com.github.faucamp.simplertmp.amf.AmfNull;
import com.github.faucamp.simplertmp.amf.AmfNumber;
import com.github.faucamp.simplertmp.amf.AmfObject;
import com.github.faucamp.simplertmp.amf.AmfString;
import com.github.faucamp.simplertmp.packets.Abort;
import com.github.faucamp.simplertmp.packets.Data;
import com.github.faucamp.simplertmp.packets.Handshake;
import com.github.faucamp.simplertmp.packets.Command;
import com.github.faucamp.simplertmp.packets.Audio;
import com.github.faucamp.simplertmp.packets.SetPeerBandwidth;
import com.github.faucamp.simplertmp.packets.Video;
import com.github.faucamp.simplertmp.packets.UserControl;
import com.github.faucamp.simplertmp.packets.RtmpPacket;
import com.github.faucamp.simplertmp.packets.WindowAckSize;
 
/**
* Main RTMP connection implementation class
Loading
Loading
package net.ossrs.yasea.rtmp.io;
package com.github.faucamp.simplertmp.io;
 
import java.io.IOException;
import java.io.InputStream;
 
import android.util.Log;
 
import net.ossrs.yasea.rtmp.packets.Abort;
import net.ossrs.yasea.rtmp.packets.Audio;
import net.ossrs.yasea.rtmp.packets.Command;
import net.ossrs.yasea.rtmp.packets.Data;
import net.ossrs.yasea.rtmp.packets.RtmpHeader;
import net.ossrs.yasea.rtmp.packets.RtmpPacket;
import net.ossrs.yasea.rtmp.packets.SetChunkSize;
import net.ossrs.yasea.rtmp.packets.SetPeerBandwidth;
import net.ossrs.yasea.rtmp.packets.UserControl;
import net.ossrs.yasea.rtmp.packets.Video;
import net.ossrs.yasea.rtmp.packets.WindowAckSize;
import net.ossrs.yasea.rtmp.packets.Acknowledgement;
import com.github.faucamp.simplertmp.packets.Abort;
import com.github.faucamp.simplertmp.packets.Audio;
import com.github.faucamp.simplertmp.packets.Command;
import com.github.faucamp.simplertmp.packets.Data;
import com.github.faucamp.simplertmp.packets.RtmpHeader;
import com.github.faucamp.simplertmp.packets.RtmpPacket;
import com.github.faucamp.simplertmp.packets.SetChunkSize;
import com.github.faucamp.simplertmp.packets.SetPeerBandwidth;
import com.github.faucamp.simplertmp.packets.UserControl;
import com.github.faucamp.simplertmp.packets.Video;
import com.github.faucamp.simplertmp.packets.WindowAckSize;
import com.github.faucamp.simplertmp.packets.Acknowledgement;
 
/**
* @author francois
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment