   return {
     info: info
     nalUnitGlob: nalUnitGlob
+    isKeyFrame: isKeyFrame
   }
 
 parseAudioMessage = (stream, buf) ->

      if not avcInfo?
        throw new Error "[rtmp:publish] malformed video data: avcInfo is missing"
      nalUnits = flv.splitNALUnits info.nalUnits, avcInfo.nalUnitLengthSize
      nalUnitGlob = h264.concatWithStartCodePrefix nalUnits
    when flv.AVC_PACKET_TYPE_EOS
      console.log "[rtmp:publish] received an EOS from upstream video"

parseVideoMessage = (stream, buf) ->
  info = flv.parseVideo buf
  nalUnitGlob = null
  isKeyFrame = false
  avcInfo = stream.avcInfo
  switch info.videoDataTag.avcPacketType
    when flv.AVC_PACKET_TYPE_SEQUENCE_HEADER
