import { MediaAttachMixin } from "../../store/media-attach-mixin.js";
import { SimpleHlsCustomMedia } from "@videojs/core/dom/media/simple-hls";

//#region src/media/simple-hls-video/index.ts
var SimpleHlsVideo = class extends MediaAttachMixin(SimpleHlsCustomMedia) {
	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 ?? "";
	}
};

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