@Override
        public boolean handleMessage(Message msg) {
            switch (msg.what) {
                case MESSAGE_SEGMENT_DOWNLOADED:
                    handleSegmentDownloaded((SegmentDownloader.DownloadFinishedArgs) msg.obj);
                    return true;

                case MESSAGE_SEGMENT_INIT:
                    handleSegmentInit(msg.arg1);
                    return true;
            }

            return false;
        }
Handles a segment by merging it with the init segment into a temporary file.
MediaPlayer-DASH/src/main/java/net/protyposis/android/mediaplayer/dash/DashMediaExtractor.java