Editing the order to get the ml5 first. for the javascript version example for BodyPix / sketch.js #1473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I got the Error message:
Uncaught TypeError: Cannot read properties of undefined (reading 'segment')
at HTMLVideoElement.videoReady (sketch.js:30:11)
videoReady @ sketch.js:30
=========
Change the order to load the ml5 first, then get the video. So it works now~
Before
![截圖 2023-11-02 下午6 05 05](https://private-user-images.githubusercontent.com/97862198/280138769-dfda777d-2f26-4467-ab1b-da103574cafe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODIxMjMsIm5iZiI6MTczOTk4MTgyMywicGF0aCI6Ii85Nzg2MjE5OC8yODAxMzg3NjktZGZkYTc3N2QtMmYyNi00NDY3LWFiMWItZGExMDM1NzRjYWZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE2MTcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlYmQ1MmU5YzZkZmVkOGM4ZjljMzY2OTk0OTYzZTcxNzlhMDQxNjJlNDY2Njk1YTRiYWFhZDFmZGNjYzY2YmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0A7bF0dFR9dqfKDLhKQ7jBNJpHwdvpqUssqK2uiNAYA)
After:
![截圖 2023-11-02 下午6 06 19](https://private-user-images.githubusercontent.com/97862198/280139018-fdade889-16a0-4827-857d-722f006691fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODIxMjMsIm5iZiI6MTczOTk4MTgyMywicGF0aCI6Ii85Nzg2MjE5OC8yODAxMzkwMTgtZmRhZGU4ODktMTZhMC00ODI3LTg1N2QtNzIyZjAwNjY5MWZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE2MTcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhMGQ3ZGY1ODBmNGIyOGUxYmUyY2I1ODgyZWM4MDliNjBlMTgxYTUzZjY5N2Y1NGZmYzc3MTY2NDEzYTBjNGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.b-BEepCXdWgZs32W5FHM7wvXor64WIwzf1Ir2RwztNs)