wms-httpstreamer-cupertinostreaming

16:54:02.737 INFO  jd.cli.Main - Decompiling wms-httpstreamer-cupertinostreaming.jar
package com.wowza.wms.httpstreamer.cupertinostreaming.dvr;

import com.wowza.util.Base64;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoPacketHolder;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoPacketizerLive;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerCupertinoChunk;
import com.wowza.wms.httpstreamer.cupertinostreaming.util.ICupertinoEncryptor;
import com.wowza.wms.media.model.MediaCodecInfoAudio;
import com.wowza.wms.media.model.MediaCodecInfoVideo;
import java.util.List;

public class DvrCupertinoTSPacketizer
{
  private static final Class<DvrCupertinoTSPacketizer> a = DvrCupertinoTSPacketizer.class;
  private static final Object b = Base64.endsWith(39 * 31, "]li_hnz25+-+\021\025\027)*!.8$4*\"");
  private CupertinoPacketizerLive c = new CupertinoPacketizerLive();
  private CupertinoTSHolder d = null;
  private ICupertinoEncryptor e;
  private LiveStreamPacketizerCupertinoChunk f;
  private DvrPlayerAdapterContextCupertino g;
  private int h;
  private int i;
  private MediaCodecInfoVideo j;
  private int k;
  private MediaCodecInfoAudio l;
  private static int m = 0;
  
  public void init(LiveStreamPacketizerCupertinoChunk paramLiveStreamPacketizerCupertinoChunk, DvrPlayerAdapterContextCupertino paramDvrPlayerAdapterContextCupertino, int paramInt1, int paramInt2, MediaCodecInfoVideo paramMediaCodecInfoVideo, int paramInt3, MediaCodecInfoAudio paramMediaCodecInfoAudio, long paramLong)
  {
    f = paramLiveStreamPacketizerCupertinoChunk;
    g = paramDvrPlayerAdapterContextCupertino;
    h = paramInt1;
    i = paramInt2;
    j = paramMediaCodecInfoVideo;
    k = paramInt3;
    l = paramMediaCodecInfoAudio;
    
    byte[] arrayOfByte = a(g, paramInt1, paramInt2, paramMediaCodecInfoVideo, paramInt3, paramMediaCodecInfoAudio, paramLong);
    if (arrayOfByte == null) {}
    for (;;)
    {
      return; long tmp84_82 = paramLong;CupertinoTSHolder localCupertinoTSHolder = new CupertinoTSHolder(18, -1, arrayOfByte, 0, arrayOfByte.length, tmp84_82, tmp84_82 * 90L);a(localCupertinoTSHolder, false);
    }
  }
  
  public void setEncryptor(ICupertinoEncryptor paramICupertinoEncryptor)
  {
    e = paramICupertinoEncryptor;
    if (paramICupertinoEncryptor.isSampleEncryptor()) {
      break label29;
    }
    for (;;)
    {
      return;c.setEncryptor(null); continue;
      label29:
      c.setEncryptor(paramICupertinoEncryptor);
    }
  }
  
  public void addToChunk(CupertinoPacketHolder paramCupertinoPacketHolder, int paramInt)
  {
    label25:
    label45:
    label64:
    label76:
    label77:
    label119:
    CupertinoTSHolder localCupertinoTSHolder;
    if (paramCupertinoPacketHolder != null)
    {
      break label293;
      byte[] arrayOfByte = c.videoPacketToTS(paramCupertinoPacketHolder);
      if (arrayOfByte == null) {
        break label284;
      }
      break label220;
      List localList = paramCupertinoPacketHolder.getHolders();
      
      arrayOfByte = c.audioPacketsToTS(localList);
      break label212;
      arrayOfByte = null;
      if (paramInt != 2)
      {
        if (paramInt == 3)
        {
          break label199;
          if (paramCupertinoPacketHolder.getType() == 9)
          {
            break label119;
            for (;; c.videoCodecConfigIngest(paramCupertinoPacketHolder.getPacket())) {
              return;
            }
          }
        }
        for (;;)
        {
          arrayOfByte = c.audioPacketsToAC3(paramCupertinoPacketHolder.getHolders());
          break label212;
          if (paramCupertinoPacketHolder.getType() != 18) {
            break label76;
          }
          break label76;
          if (!paramCupertinoPacketHolder.isCodecConfig()) {
            break;
          }
          break label77;
          localCupertinoTSHolder = new CupertinoTSHolder(8, paramCupertinoPacketHolder.getCodec(), arrayOfByte, 0, arrayOfByte.length, paramCupertinoPacketHolder.getTimecode(), paramCupertinoPacketHolder.getTimecode90());
          localCupertinoTSHolder.setDataLen(paramCupertinoPacketHolder.getDataLen());
          break label190;
          label168:
          localCupertinoTSHolder = null;
          if (paramCupertinoPacketHolder.getType() != 8) {
            break label64;
          }
          break label45;
          if (paramInt != 4) {
            break label25;
          }
        }
      }
      label190:
      label199:
      label212:
      label220:
      label281:
      for (;;)
      {
        a(localCupertinoTSHolder, false);
        break;arrayOfByte = c.audioPacketsToAAC(paramCupertinoPacketHolder.getHolders());
        for (;; arrayOfByte = c.audioPacketsToMP3(paramCupertinoPacketHolder.getHolders()))
        {
          if (arrayOfByte == null) {
            break label281;
          }
          break;localCupertinoTSHolder = new CupertinoTSHolder(9, paramCupertinoPacketHolder.getCodec(), arrayOfByte, 0, arrayOfByte.length, paramCupertinoPacketHolder.getTimecode(), paramCupertinoPacketHolder.getTimecode90());
          
          localCupertinoTSHolder.setDataLen(paramCupertinoPacketHolder.getDataLen());
          localCupertinoTSHolder.setKey(paramCupertinoPacketHolder.isKey());
          break label284;
        }
      }
    }
    for (;;)
    {
      return;
      label284:
      a(localCupertinoTSHolder, false);
      break;
      label293:
      if (c != null) {
        break label168;
      }
    }
  }
  
  /* Error */
  private final byte[] a(DvrPlayerAdapterContextCupertino arg1, int arg2, int arg3, MediaCodecInfoVideo arg4, int arg5, MediaCodecInfoAudio arg6, long arg7)
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore 9
    //   3: aload_0
    //   4: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   7: ifnull +79 -> 86
    //   10: goto +120 -> 130
    //   13: aload_0
    //   14: getfield 38	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:c	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoPacketizerLive;
    //   17: iload_3
    //   18: aload 4
    //   20: iload 5
    //   22: aload 6
    //   24: aload_0
    //   25: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   28: invokevirtual 151	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoPacketizerLive:getTSHeader	(ILcom/wowza/wms/media/model/MediaCodecInfoVideo;ILcom/wowza/wms/media/model/MediaCodecInfoAudio;Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;)[B
    //   31: astore 9
    //   33: goto +10 -> 43
    //   36: aload_1
    //   37: ifnull -24 -> 13
    //   40: goto +28 -> 68
    //   43: aload 9
    //   45: areturn
    //   46: lload 7
    //   48: ldc2_w 62
    //   51: lmul
    //   52: iload 5
    //   54: aload 6
    //   56: aload_0
    //   57: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   60: invokestatic 155	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoPacketizerLive:getAudioID3TagHeader	(JILcom/wowza/wms/media/model/MediaCodecInfoAudio;Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;)[B
    //   63: astore 9
    //   65: goto -22 -> 43
    //   68: aload_1
    //   69: getfield 161	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterContextCupertino:onChunkStartResetCounter	Z
    //   72: ifeq -59 -> 13
    //   75: goto +37 -> 112
    //   78: iload_2
    //   79: iconst_3
    //   80: if_icmpeq -34 -> 46
    //   83: goto +39 -> 122
    //   86: iconst_0
    //   87: goto +15 -> 102
    //   90: iconst_1
    //   91: goto +11 -> 102
    //   94: iload_2
    //   95: iconst_4
    //   96: if_icmpne -53 -> 43
    //   99: goto -53 -> 46
    //   102: istore 10
    //   104: iload_2
    //   105: iconst_1
    //   106: if_icmpne -28 -> 78
    //   109: goto -73 -> 36
    //   112: aload_0
    //   113: getfield 38	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:c	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoPacketizerLive;
    //   116: invokevirtual 164	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoPacketizerLive:resetCounters	()V
    //   119: goto -106 -> 13
    //   122: iload_2
    //   123: iconst_2
    //   124: if_icmpeq -78 -> 46
    //   127: goto -33 -> 94
    //   130: aload_0
    //   131: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   134: invokeinterface 81 1 0
    //   139: ifeq -53 -> 86
    //   142: goto -52 -> 90
    // Line number table:
    //   Java source line #200	-> byte code offset #0
    //   Java source line #203	-> byte code offset #3
    //   Java source line #209	-> byte code offset #13
    //   Java source line #207	-> byte code offset #36
    //   Java source line #221	-> byte code offset #43
    //   Java source line #215	-> byte code offset #46
    //   Java source line #207	-> byte code offset #68
    //   Java source line #213	-> byte code offset #78
    //   Java source line #203	-> byte code offset #86
    //   Java source line #213	-> byte code offset #94
    //   Java source line #203	-> byte code offset #102
    //   Java source line #205	-> byte code offset #104
    //   Java source line #208	-> byte code offset #112
    //   Java source line #213	-> byte code offset #122
    //   Java source line #203	-> byte code offset #130
  }
  
  /* Error */
  final void a(CupertinoTSHolder arg1, boolean arg2)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   4: ifnull +44 -> 48
    //   7: goto +195 -> 202
    //   10: aload_0
    //   11: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   14: aload 6
    //   16: invokevirtual 174	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:setBlock	([B)V
    //   19: aload_0
    //   20: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   23: iconst_0
    //   24: invokevirtual 177	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:setOffset	(I)V
    //   27: aload_0
    //   28: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   31: aload 6
    //   33: arraylength
    //   34: invokevirtual 180	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:setLen	(I)V
    //   37: goto +17 -> 54
    //   40: aload 6
    //   42: ifnull +12 -> 54
    //   45: goto -35 -> 10
    //   48: aload_0
    //   49: aload_1
    //   50: putfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   53: return
    //   54: aload_0
    //   55: dup
    //   56: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   59: invokespecial 183	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:a	(Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;)V
    //   62: aload_0
    //   63: aconst_null
    //   64: putfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   67: goto -19 -> 48
    //   70: aload_0
    //   71: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   74: invokevirtual 187	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getBlock	()[B
    //   77: astore_3
    //   78: aload_0
    //   79: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   82: invokevirtual 190	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getOffset	()I
    //   85: istore 4
    //   87: aload_0
    //   88: getfield 40	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:d	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder;
    //   91: invokevirtual 193	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getLen	()I
    //   94: istore 5
    //   96: aconst_null
    //   97: astore 6
    //   99: goto +113 -> 212
    //   102: aload_0
    //   103: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   106: invokeinterface 196 1 0
    //   111: ifeq -57 -> 54
    //   114: goto -44 -> 70
    //   117: goto -77 -> 40
    //   120: getstatic 198	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:a	Ljava/lang/Class;
    //   123: invokestatic 204	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   126: ldc -50
    //   128: bipush 9
    //   130: bipush 21
    //   132: imul
    //   133: invokestatic 212	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   136: iconst_4
    //   137: anewarray 4	java/lang/Object
    //   140: dup
    //   141: iconst_0
    //   142: getstatic 214	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:b	Ljava/lang/Object;
    //   145: aastore
    //   146: dup
    //   147: iconst_1
    //   148: iload 4
    //   150: invokestatic 220	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   153: aastore
    //   154: dup
    //   155: iconst_2
    //   156: iload 5
    //   158: invokestatic 220	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   161: aastore
    //   162: dup
    //   163: iconst_3
    //   164: aload 7
    //   166: invokevirtual 224	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   169: aastore
    //   170: invokestatic 230	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   173: aload 7
    //   175: invokevirtual 236	com/wowza/wms/logging/WMSLogger:error	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   178: getstatic 238	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:m	I
    //   181: iconst_1
    //   182: iadd
    //   183: putstatic 238	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:m	I
    //   186: goto -146 -> 40
    //   189: astore 7
    //   191: getstatic 238	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:m	I
    //   194: bipush 8
    //   196: if_icmpge -156 -> 40
    //   199: goto -79 -> 120
    //   202: aload_0
    //   203: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   206: ifnull -152 -> 54
    //   209: goto -107 -> 102
    //   212: aload_0
    //   213: getfield 75	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:e	Lcom/wowza/wms/httpstreamer/cupertinostreaming/util/ICupertinoEncryptor;
    //   216: aload_3
    //   217: iload 4
    //   219: iload 5
    //   221: aload_1
    //   222: ifnonnull +16 -> 238
    //   225: goto +17 -> 242
    //   228: invokeinterface 242 5 0
    //   233: astore 6
    //   235: goto -118 -> 117
    //   238: iconst_0
    //   239: goto -11 -> 228
    //   242: iconst_1
    //   243: goto -15 -> 228
    // Line number table:
    //   Java source line #280	-> byte code offset #0
    //   Java source line #301	-> byte code offset #10
    //   Java source line #302	-> byte code offset #19
    //   Java source line #303	-> byte code offset #27
    //   Java source line #299	-> byte code offset #40
    //   Java source line #310	-> byte code offset #48
    //   Java source line #332	-> byte code offset #53
    //   Java source line #307	-> byte code offset #54
    //   Java source line #308	-> byte code offset #62
    //   Java source line #285	-> byte code offset #70
    //   Java source line #286	-> byte code offset #78
    //   Java source line #287	-> byte code offset #87
    //   Java source line #289	-> byte code offset #96
    //   Java source line #283	-> byte code offset #102
    //   Java source line #297	-> byte code offset #117
    //   Java source line #294	-> byte code offset #120
    //   Java source line #295	-> byte code offset #178
    //   Java source line #292	-> byte code offset #189
    //   Java source line #293	-> byte code offset #191
    //   Java source line #283	-> byte code offset #202
    //   Java source line #291	-> byte code offset #212
    // Exception table:
    //   from	to	target	type
    //   212	246	189	java/lang/Exception
  }
  
  /* Error */
  private final void a(CupertinoTSHolder arg1)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 44	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:f	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk;
    //   4: ifnull +6 -> 10
    //   7: goto +56 -> 63
    //   10: return
    //   11: aload_0
    //   12: getfield 44	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:f	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk;
    //   15: invokevirtual 247	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk:incAudioCount	()V
    //   18: aload_1
    //   19: invokevirtual 190	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getOffset	()I
    //   22: istore_3
    //   23: aload_1
    //   24: invokevirtual 193	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getLen	()I
    //   27: istore 4
    //   29: aload_0
    //   30: getfield 44	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:f	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk;
    //   33: aload_2
    //   34: iload_3
    //   35: iload 4
    //   37: invokevirtual 251	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk:addBlock	([BII)I
    //   40: pop
    //   41: aload_0
    //   42: getfield 44	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:f	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk;
    //   45: aload_1
    //   46: invokevirtual 252	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getDataLen	()I
    //   49: invokevirtual 255	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk:incDataSize	(I)V
    //   52: return
    //   53: aload_0
    //   54: getfield 44	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:f	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk;
    //   57: invokevirtual 258	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk:incVideoKeyCount	()V
    //   60: goto -42 -> 18
    //   63: aload_1
    //   64: ifnonnull +6 -> 70
    //   67: goto -57 -> 10
    //   70: aload_1
    //   71: invokevirtual 187	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getBlock	()[B
    //   74: astore_2
    //   75: aload_1
    //   76: invokevirtual 259	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:getType	()I
    //   79: lookupswitch	default:+-61->18, 8:+-68->11, 9:+28->107
    //   104: nop
    //   105: nop
    //   106: athrow
    //   107: aload_0
    //   108: getfield 44	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrCupertinoTSPacketizer:f	Lcom/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk;
    //   111: invokevirtual 262	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/LiveStreamPacketizerCupertinoChunk:incVideoCount	()V
    //   114: aload_1
    //   115: invokevirtual 263	com/wowza/wms/httpstreamer/cupertinostreaming/livestreampacketizer/CupertinoTSHolder:isKey	()Z
    //   118: ifeq -100 -> 18
    //   121: goto -68 -> 53
    // Line number table:
    //   Java source line #336	-> byte code offset #0
    //   Java source line #337	-> byte code offset #10
    //   Java source line #344	-> byte code offset #11
    //   Java source line #353	-> byte code offset #18
    //   Java source line #354	-> byte code offset #23
    //   Java source line #357	-> byte code offset #29
    //   Java source line #358	-> byte code offset #41
    //   Java source line #360	-> byte code offset #52
    //   Java source line #349	-> byte code offset #53
    //   Java source line #336	-> byte code offset #63
    //   Java source line #339	-> byte code offset #70
    //   Java source line #341	-> byte code offset #75
    //   Java source line #347	-> byte code offset #107
    //   Java source line #348	-> byte code offset #114
  }
  
  public void setVideoPID(int paramInt)
  {
    if (c == null) {}
    for (;; c.setVideoPID(paramInt)) {
      return;
    }
  }
  
  public void setAudioPID(int paramInt)
  {
    if (c == null) {}
    for (;; c.setAudioPID(paramInt)) {
      return;
    }
  }
  
  public void setDataPID(int paramInt)
  {
    if (c == null) {}
    for (;; c.setDataPID(paramInt)) {
      return;
    }
  }
  
  public void setECMPID(int paramInt)
  {
    if (c == null) {}
    for (;; c.setECMPID(paramInt)) {
      return;
    }
  }
  
  public void setCupertinoAlwaysSendZeroPacketLen(boolean paramBoolean)
  {
    c.setAlwaysSendZeroPacketLen(paramBoolean);
  }
  
  public boolean getCupertinoAlwaysSendZeroPacketLen()
  {
    return c.getAlwaysSendZeroPacketLen();
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.httpstreamer.cupertinostreaming.dvr.DvrCupertinoTSPacketizer
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.httpstreamer.cupertinostreaming.dvr;

import com.wowza.util.Base64;
import com.wowza.util.JSON;
import com.wowza.wms.application.WMSProperties;
import com.wowza.wms.httpstreamer.model.IHTTPStreamerApplicationContext;

public class DvrPlayerAdapterContextCupertino
{
  public boolean forceLivePlaylist = false;
  public boolean forceNonLivePlaylist = false;
  public boolean useGzip = true;
  public int gzipThreshold = 4000;
  public boolean onChunkStartResetCounter = true;
  public boolean allowCaching = false;
  public boolean putEndTagBeforeChunks = false;
  
  public DvrPlayerAdapterContextCupertino(WMSProperties paramWMSProperties, IHTTPStreamerApplicationContext paramIHTTPStreamerApplicationContext)
  {
    if (paramWMSProperties == null) {
      return;
    }
    for (;; paramWMSProperties.isEmpty())
    {
      forceLivePlaylist = paramWMSProperties.getPropertyBoolean(JSON.copyValueOf("snkYnlxlkiomShdkaz~Mcmj\\xdv", 51 * 13), forceLivePlaylist);
      forceNonLivePlaylist = paramWMSProperties.getPropertyBoolean(JSON.copyValueOf("{63\00164 43!'%\033 ,7#9\"&\025;'52\02664\0275+;", -53 - 12), forceLivePlaylist);
      useGzip = paramWMSProperties.getPropertyBoolean(Base64.endsWith('?' / 82, "grwErxlxeca_|pk}fbBk|]aum"), useGzip);
      gzipThreshold = paramWMSProperties.getPropertyInt(JSON.copyValueOf("grwErxlxeca_|pk}fbPbpjOto{lhnng", '?' / '�'), gzipThreshold);
      
      allowCaching = paramWMSProperties.getPropertyBoolean(JSON.copyValueOf("pcdTmiihtpp\020-#:(,53\t%&$;\016/,88<4", 64 + -12), allowCaching);
      
      onChunkStartResetCounter = paramWMSProperties.getPropertyBoolean(Base64.endsWith(49 * 55, "c~{I~|h|{y}\\zV~bvrIo}ojMergwGjsi|lx"), onChunkStartResetCounter);
      putEndTagBeforeChunks = paramWMSProperties.getPropertyBoolean(JSON.copyValueOf(">-.\036+/%36***\0262<\f$/\030,)\r57=!1\026>\"62)", 36 - -54), putEndTagBeforeChunks); break;
    }
  }
}

/* Location:
 * Qualified Name:     com.wowza.wms.httpstreamer.cupertinostreaming.dvr.DvrPlayerAdapterContextCupertino
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.wowza.wms.httpstreamer.cupertinostreaming.dvr;

import com.wowza.util.Base64;
import com.wowza.util.BufferUtils;
import com.wowza.util.FLVUtils;
import com.wowza.util.JSON;
import com.wowza.wms.amf.AMFPacket;
import com.wowza.wms.application.IApplicationInstance;
import com.wowza.wms.application.WMSProperties;
import com.wowza.wms.dvr.DvrPlayerAdapterBase;
import com.wowza.wms.dvr.DvrStreamStoreBase;
import com.wowza.wms.dvr.IDvrStreamStore;
import com.wowza.wms.dvr.mbr.DvrMbrShiftedEntry;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoPacketHolder;
import com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo;
import com.wowza.wms.httpstreamer.model.IHTTPStreamerApplicationContext;
import java.util.Iterator;
import java.util.List;

public class DvrPlayerAdapterCupertino
  extends DvrPlayerAdapterBase
{
  private static final Class<DvrPlayerAdapterCupertino> a = DvrPlayerAdapterCupertino.class;
  private static final Object b = Base64.endsWith(-64 - -14, "\n9\"\001>2-0$\026<8*/9/\035*0$07-+)");
  private Object c = new Object();
  private static int d = 0;
  
  protected boolean isDebug(IHTTPStreamerApplicationContext paramIHTTPStreamerApplicationContext)
  {
    boolean bool = super.isDebug(paramIHTTPStreamerApplicationContext);
    if (paramIHTTPStreamerApplicationContext == null) {
      return bool;
    }
    for (;;)
    {
      bool = paramIHTTPStreamerApplicationContext.getAppInstance().getDvrProperties().getPropertyBoolean(JSON.copyValueOf(":)rEgaqbErxlxeca_|pkvfTrvhmi", 3 - 5), bool); break;bool = paramIHTTPStreamerApplicationContext.getProperties().getPropertyBoolean(Base64.endsWith('?' / 69, "apuLlh~kN{ucfzzzF{y`i]yotdp"), bool);
      if (paramIHTTPStreamerApplicationContext.getAppInstance() == null) {
        break;
      }
    }
  }
  
  /* Error */
  public byte[] getAbsolutePlaylist(IHTTPStreamerApplicationContext arg1, IDvrStreamStore arg2, boolean arg3, com.wowza.wms.dvr.DvrPlaylistRequest arg4, com.wowza.wms.dvr.mbr.IDvrMbrPlaylistAlignment arg5)
  {
    // Byte code:
    //   0: aload_2
    //   1: ifnonnull +6 -> 7
    //   4: goto +112 -> 116
    //   7: aload_0
    //   8: aload_1
    //   9: invokevirtual 71	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:isDebug	(Lcom/wowza/wms/httpstreamer/model/IHTTPStreamerApplicationContext;)Z
    //   12: istore 6
    //   14: iload 6
    //   16: ifeq +55 -> 71
    //   19: goto +176 -> 195
    //   22: astore 9
    //   24: getstatic 73	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:a	Ljava/lang/Class;
    //   27: invokestatic 79	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   30: ldc 81
    //   32: bipush 45
    //   34: bipush 9
    //   36: imul
    //   37: invokestatic 49	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   40: iconst_2
    //   41: anewarray 22	java/lang/Object
    //   44: dup
    //   45: iconst_0
    //   46: getstatic 83	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:b	Ljava/lang/Object;
    //   49: aastore
    //   50: dup
    //   51: iconst_1
    //   52: aload_2
    //   53: invokeinterface 89 1 0
    //   58: aastore
    //   59: invokestatic 95	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   62: aload 9
    //   64: invokevirtual 101	com/wowza/wms/logging/WMSLogger:error	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   67: aconst_null
    //   68: areturn
    //   69: aconst_null
    //   70: areturn
    //   71: aload 4
    //   73: ifnonnull +81 -> 154
    //   76: goto -7 -> 69
    //   79: areturn
    //   80: aload_0
    //   81: aload_2
    //   82: aload 8
    //   84: iconst_1
    //   85: invokevirtual 105	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:getEntries	(Lcom/wowza/wms/dvr/IDvrStreamStore;Lcom/wowza/wms/dvr/DvrPlaylistRequest;Z)Ljava/util/List;
    //   88: astore 9
    //   90: aload 9
    //   92: ifnull +6 -> 98
    //   95: goto +7 -> 102
    //   98: aconst_null
    //   99: goto -20 -> 79
    //   102: aload 9
    //   104: invokeinterface 111 1 0
    //   109: ifeq +70 -> 179
    //   112: goto -14 -> 98
    //   115: areturn
    //   116: getstatic 73	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:a	Ljava/lang/Class;
    //   119: invokestatic 79	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   122: ldc 113
    //   124: bipush 115
    //   126: bipush 114
    //   128: iadd
    //   129: invokestatic 49	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   132: iconst_2
    //   133: anewarray 22	java/lang/Object
    //   136: dup
    //   137: iconst_0
    //   138: getstatic 83	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:b	Ljava/lang/Object;
    //   141: aastore
    //   142: dup
    //   143: iconst_1
    //   144: aload_2
    //   145: aastore
    //   146: invokestatic 95	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   149: invokevirtual 117	com/wowza/wms/logging/WMSLogger:warn	(Ljava/lang/String;)V
    //   152: aconst_null
    //   153: areturn
    //   154: aload_2
    //   155: invokeinterface 121 1 0
    //   160: astore 7
    //   162: aload 7
    //   164: invokeinterface 127 1 0
    //   169: aload 4
    //   171: invokestatic 133	com/wowza/wms/dvr/DvrTimeScaleUtils:convertToDvrTimeScale	(Lcom/wowza/wms/dvr/IDvrTimeMap;Lcom/wowza/wms/dvr/DvrPlaylistRequest;)Lcom/wowza/wms/dvr/DvrPlaylistRequest;
    //   174: astore 8
    //   176: goto -96 -> 80
    //   179: aload_0
    //   180: aload_1
    //   181: aload_2
    //   182: iload_3
    //   183: aload 9
    //   185: aload 4
    //   187: aload 5
    //   189: invokevirtual 136	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:getAbsolutePlaylist	(Lcom/wowza/wms/httpstreamer/model/IHTTPStreamerApplicationContext;Lcom/wowza/wms/dvr/IDvrStreamStore;ZLjava/util/List;Lcom/wowza/wms/dvr/DvrPlaylistRequest;Lcom/wowza/wms/dvr/mbr/IDvrMbrPlaylistAlignment;)[B
    //   192: goto -77 -> 115
    //   195: getstatic 73	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:a	Ljava/lang/Class;
    //   198: invokestatic 79	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   201: bipush 9
    //   203: bipush 47
    //   205: imul
    //   206: ldc -118
    //   208: invokestatic 66	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   211: iconst_3
    //   212: anewarray 22	java/lang/Object
    //   215: dup
    //   216: iconst_0
    //   217: getstatic 83	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:b	Ljava/lang/Object;
    //   220: aastore
    //   221: dup
    //   222: iconst_1
    //   223: aload_2
    //   224: invokeinterface 89 1 0
    //   229: aastore
    //   230: dup
    //   231: iconst_2
    //   232: aload 4
    //   234: aastore
    //   235: invokestatic 95	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   238: invokevirtual 141	com/wowza/wms/logging/WMSLogger:info	(Ljava/lang/String;)V
    //   241: goto -170 -> 71
    // Line number table:
    //   Java source line #53	-> byte code offset #0
    //   Java source line #58	-> byte code offset #7
    //   Java source line #59	-> byte code offset #14
    //   Java source line #77	-> byte code offset #22
    //   Java source line #78	-> byte code offset #24
    //   Java source line #80	-> byte code offset #67
    //   Java source line #64	-> byte code offset #69
    //   Java source line #63	-> byte code offset #71
    //   Java source line #74	-> byte code offset #79
    //   Java source line #71	-> byte code offset #80
    //   Java source line #73	-> byte code offset #90
    //   Java source line #74	-> byte code offset #98
    //   Java source line #73	-> byte code offset #102
    //   Java source line #76	-> byte code offset #115
    //   Java source line #54	-> byte code offset #116
    //   Java source line #55	-> byte code offset #152
    //   Java source line #67	-> byte code offset #154
    //   Java source line #68	-> byte code offset #162
    //   Java source line #76	-> byte code offset #179
    //   Java source line #60	-> byte code offset #195
    // Exception table:
    //   from	to	target	type
    //   80	115	22	java/lang/Exception
    //   179	195	22	java/lang/Exception
  }
  
  /* Error */
  public byte[] getMultibitrateAbsolutePlaylist(IHTTPStreamerApplicationContext arg1, IDvrStreamStore arg2, boolean arg3, com.wowza.wms.dvr.DvrPlaylistRequest arg4, com.wowza.wms.dvr.mbr.IDvrMbrPlaylistAlignment arg5)
  {
    // Byte code:
    //   0: aload_0
    //   1: aload_1
    //   2: invokevirtual 71	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:isDebug	(Lcom/wowza/wms/httpstreamer/model/IHTTPStreamerApplicationContext;)Z
    //   5: ifeq +6 -> 11
    //   8: goto +71 -> 79
    //   11: aload_2
    //   12: ifnonnull +119 -> 131
    //   15: goto +223 -> 238
    //   18: areturn
    //   19: iload_3
    //   20: ifeq +183 -> 203
    //   23: goto +20 -> 43
    //   26: aconst_null
    //   27: goto +103 -> 130
    //   30: aload 8
    //   32: invokeinterface 111 1 0
    //   37: ifeq +26 -> 63
    //   40: goto -14 -> 26
    //   43: aload_0
    //   44: bipush 8
    //   46: aload_2
    //   47: aload 7
    //   49: iconst_0
    //   50: invokevirtual 151	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:getEntries	(ILcom/wowza/wms/dvr/IDvrStreamStore;Lcom/wowza/wms/dvr/DvrPlaylistRequest;Z)Ljava/util/List;
    //   53: astore 8
    //   55: aload 8
    //   57: ifnull -31 -> 26
    //   60: goto -30 -> 30
    //   63: aload_0
    //   64: aload_1
    //   65: aload_2
    //   66: iload_3
    //   67: aload 8
    //   69: aload 4
    //   71: aload 5
    //   73: invokevirtual 136	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:getAbsolutePlaylist	(Lcom/wowza/wms/httpstreamer/model/IHTTPStreamerApplicationContext;Lcom/wowza/wms/dvr/IDvrStreamStore;ZLjava/util/List;Lcom/wowza/wms/dvr/DvrPlaylistRequest;Lcom/wowza/wms/dvr/mbr/IDvrMbrPlaylistAlignment;)[B
    //   76: goto +216 -> 292
    //   79: getstatic 73	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:a	Ljava/lang/Class;
    //   82: invokestatic 79	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   85: ldc -103
    //   87: bipush 43
    //   89: bipush 9
    //   91: swap
    //   92: imul
    //   93: invokestatic 49	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   96: iconst_3
    //   97: anewarray 22	java/lang/Object
    //   100: dup
    //   101: iconst_0
    //   102: getstatic 83	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:b	Ljava/lang/Object;
    //   105: aastore
    //   106: dup
    //   107: iconst_1
    //   108: aload_2
    //   109: invokeinterface 89 1 0
    //   114: aastore
    //   115: dup
    //   116: iconst_2
    //   117: aload 4
    //   119: aastore
    //   120: invokestatic 95	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   123: invokevirtual 141	com/wowza/wms/logging/WMSLogger:info	(Ljava/lang/String;)V
    //   126: goto -115 -> 11
    //   129: areturn
    //   130: areturn
    //   131: aload_2
    //   132: invokeinterface 121 1 0
    //   137: astore 6
    //   139: aload 6
    //   141: invokeinterface 127 1 0
    //   146: aload 4
    //   148: invokestatic 133	com/wowza/wms/dvr/DvrTimeScaleUtils:convertToDvrTimeScale	(Lcom/wowza/wms/dvr/IDvrTimeMap;Lcom/wowza/wms/dvr/DvrPlaylistRequest;)Lcom/wowza/wms/dvr/DvrPlaylistRequest;
    //   151: astore 7
    //   153: goto -134 -> 19
    //   156: astore 8
    //   158: getstatic 73	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:a	Ljava/lang/Class;
    //   161: invokestatic 79	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   164: ldc -101
    //   166: bipush -27
    //   168: bipush -61
    //   170: isub
    //   171: invokestatic 49	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   174: iconst_2
    //   175: anewarray 22	java/lang/Object
    //   178: dup
    //   179: iconst_0
    //   180: getstatic 83	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:b	Ljava/lang/Object;
    //   183: aastore
    //   184: dup
    //   185: iconst_1
    //   186: aload_2
    //   187: invokeinterface 89 1 0
    //   192: aastore
    //   193: invokestatic 95	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   196: aload 8
    //   198: invokevirtual 101	com/wowza/wms/logging/WMSLogger:error	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   201: aconst_null
    //   202: areturn
    //   203: aload_0
    //   204: aload_2
    //   205: aload 7
    //   207: iconst_0
    //   208: invokevirtual 105	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:getEntries	(Lcom/wowza/wms/dvr/IDvrStreamStore;Lcom/wowza/wms/dvr/DvrPlaylistRequest;Z)Ljava/util/List;
    //   211: astore 8
    //   213: aload 8
    //   215: ifnull +6 -> 221
    //   218: goto +7 -> 225
    //   221: aconst_null
    //   222: goto -204 -> 18
    //   225: aload 8
    //   227: invokeinterface 111 1 0
    //   232: ifeq +44 -> 276
    //   235: goto -14 -> 221
    //   238: getstatic 73	com/wowza/wms/httpstreamer/cupertinostreaming/dvr/DvrPlayerAdapterCupertino:a	Ljava/lang/Class;
    //   241: invokestatic 79	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   244: ldc -99
    //   246: bipush 33
    //   248: bipush 53
    //   250: imul
    //   251: invokestatic 49	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   254: iconst_2
    //   255: anewarray 22	java/lang/Object
    //   258: dup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd