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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTg4OTUsIm5iZiI6MTczODk5ODU5NSwicGF0aCI6Ii85Nzg2MjE5OC8yODAxMzg3NjktZGZkYTc3N2QtMmYyNi00NDY3LWFiMWItZGExMDM1NzRjYWZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA3MDk1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxOTIyMWY2NjRhYjA3NmUwNDdmZmI5NjY1NmFiYjI1ZmM2NTRlZWZkYmQ3MDYyYzA0YTM5ZjIwYTQ2NjExMGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hfl1_QYMBYY00TafpIKcVe_Pjyh4NWKw1cssbLn1uq4)
After:
![截圖 2023-11-02 下午6 06 19](https://private-user-images.githubusercontent.com/97862198/280139018-fdade889-16a0-4827-857d-722f006691fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTg4OTUsIm5iZiI6MTczODk5ODU5NSwicGF0aCI6Ii85Nzg2MjE5OC8yODAxMzkwMTgtZmRhZGU4ODktMTZhMC00ODI3LTg1N2QtNzIyZjAwNjY5MWZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA3MDk1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4N2RlYzNjMDU4YWQyZTRjMjdjNGFmYjlmOTg3OWY5ZGQ4MWI4YzQ1Y2I1NTczMWViZWUzZjVhZmFlMGE2NjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rfydyuuXNTpDSRTclWNfl-cVoH3AaRRRySfD6rZ-U00)