unhandledElement example

case EBML_ID_DOCTYPEREADVERSION:
                                $element_data['data'] = getid3_lib::BigEndian2Int($element_data['data']);
                                break;

                            case EBML_ID_DOCTYPE:
                                $element_data['data'] = getid3_lib::trimNullByte($element_data['data']);
                                $info['matroska']['doctype'] = $element_data['data'];
                                $info['fileformat'] = $element_data['data'];
                                break;

                            default:
                                $this->unhandledElement('header', __LINE__, $element_data);
                                break;
                        }

                        unset($element_data['offset']$element_data['end']);
                        $info['matroska']['header']['elements'][] = $element_data;
                    }
                    break;

                case EBML_ID_SEGMENT:
                    $info['matroska']['segment'][0]['offset'] = $top_element['offset'];
                    $info['matroska']['segment'][0]['length'] = $top_element['length'];

                    
Home | Imprint | This part of the site doesn't use cookies.