Class LiveStreamPacketizerCupertinoUtils


  • public class LiveStreamPacketizerCupertinoUtils
    extends Object
    • Constructor Detail

      • LiveStreamPacketizerCupertinoUtils

        public LiveStreamPacketizerCupertinoUtils()
    • Method Detail

      • streamModeToFileExtension

        public static String streamModeToFileExtension​(int streamMode)
      • segmentFilenameToIndex

        public static long segmentFilenameToIndex​(String filename)
      • segmentFilenameToIndexStr

        public static String segmentFilenameToIndexStr​(String filename)
      • encryptChunk2

        public static void encryptChunk2​(LiveStreamPacketizerCupertinoChunk chunk,
                                         com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo encInfo)
      • getEncInfo

        public static com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo getEncInfo​(IApplicationInstance appInstance,
                                                                                                     String streamName)
      • mergeUserManifestHeaders

        public static void mergeUserManifestHeaders​(java.util.Map<String,​java.util.Map<String,​String>> dst,
                                                    java.util.Map<String,​java.util.Map<String,​String>> src)
      • deepCopyUserManifestHeaders

        public static java.util.Map<String,​java.util.Map<String,​String>> deepCopyUserManifestHeaders​(java.util.Map<String,​java.util.Map<String,​String>> userManifestHeaders)
      • createUserManifestHeaderMapFromString

        public static java.util.Map<String,​java.util.Map<String,​String>> createUserManifestHeaderMapFromString​(String userManifestHeaders)
      • createUserManifestParameterString

        public static String createUserManifestParameterString​(java.util.Map<String,​String> encUserParams)
      • millisToSecondsDuration

        public static int millisToSecondsDuration​(long millis)
      • floatingPointToWholeNumberDuration

        public static long floatingPointToWholeNumberDuration​(double seconds)
      • millisToSecondsCeilDuration

        public static int millisToSecondsCeilDuration​(long millis)
      • codecInfoVideoToResolutionStr

        public static String codecInfoVideoToResolutionStr​(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
      • chunkFilenameToStreamMode

        public static int chunkFilenameToStreamMode​(String filename)
      • codecInfoAudioToCodecsStr

        public static String codecInfoAudioToCodecsStr​(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
      • codecInfoAudioToCodecsStr

        public static String codecInfoAudioToCodecsStr​(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio,
                                                       int codecStrFormatId)
      • codecInfoVideoToCodecsStr

        public static String codecInfoVideoToCodecsStr​(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo,
                                                       int codecStrFormatId)
      • codecInfoVideoToCodecsStr

        public static String codecInfoVideoToCodecsStr​(int codec,
                                                       int profile,
                                                       int level,
                                                       int codecStrFormatId)
      • codecInfoVideoToCodecsStr

        public static String codecInfoVideoToCodecsStr​(int codec,
                                                       int profile,
                                                       int level,
                                                       int codecStrFormatId,
                                                       boolean forceH264BaselineProfile)
      • codecInfoVideoToCodecsStr

        public static String codecInfoVideoToCodecsStr​(String codecStr,
                                                       int codecStrFormatId)
      • codecInfoVideoToCodecsStr

        public static String codecInfoVideoToCodecsStr​(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo,
                                                       int codecStrFormatId,
                                                       boolean forceH264BaselineProfile)
      • isValidVideoCodec

        public static boolean isValidVideoCodec​(int codec)
      • isValidAudioCodec

        public static boolean isValidAudioCodec​(int codec)