Example #1
0
 private void add(byte[] nal)
 {
     try
     {
         RFC6184Media.RFC6184Frame frame = new RFC6184Media.RFC6184Frame(96);
         frame.Packetize(nal);
         AddFrame(frame);
     }
     catch (Exception ex)
     {
         Console.WriteLine(nal.Length + "\t " + ex.ToString());
     }
 }
Example #2
0
 public static RtpFrame GetRtpFrame(byte[] stream)
 {
     RFC6184Media.RFC6184Frame frame = new RFC6184Media.RFC6184Frame(96);
     frame.Packetize(stream);
     return(frame);
 }