That alias is what triggers the warning. The code inside VHS does something like:
const levels = player.tech_.vhs.levels; levels.forEach((level, idx) => { console.log(`Level ${idx}: ${level.height}p`); }); Accessing VHS when tech may not be ready Do not access player.tech_.vhs immediately after player initialization. The tech may still be loading. Use the loadeddata or techready event: That alias is what triggers the warning
The migration is straightforward: rename the property, test your quality-switching and event-handling logic, and update any internal documentation. Your reward is a cleaner, more maintainable codebase free of deprecation warnings. { console.log(`Level ${idx}: ${level.height}p`)
grep -r "tech_.hls" --include="*.js" --include="*.vue" --include="*.ts" Simply rename the property access. Change: test your quality-switching and event-handling logic
const hls = player.tech_.hls; to: