import { MediaAttachMixin } from "../../store/media-attach-mixin.js";
import { DashCustomMedia } from "@videojs/core/dom/media/dash";

//#region src/media/dash-video/index.ts
var DashVideo = class extends MediaAttachMixin(DashCustomMedia) {
	static getTemplateHTML(attrs) {
		const { src, ...rest } = attrs;
		return super.getTemplateHTML(rest);
	}
	constructor() {
		super();
		this.attach(this.target);
	}
	attributeChangedCallback(attrName, oldValue, newValue) {
		if (attrName !== "src") super.attributeChangedCallback(attrName, oldValue, newValue);
		if (attrName === "src" && oldValue !== newValue) this.src = newValue ?? "";
	}
	disconnectedCallback() {
		super.disconnectedCallback?.();
		if (!this.hasAttribute("keep-alive")) this.destroy();
	}
};

//#endregion
export { DashVideo };
//# sourceMappingURL=index.js.map