Added mime type to videos

This commit is contained in:
2025-02-05 12:53:08 +01:00
parent 0d15dc57d7
commit 52d7060428
2 changed files with 9 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ You can choose through how much walls it should go or you can define the dimensi
To connect the 2 sketches I used loft.
![alt text](../../assets/assets_week_2/Onshape/image-4.jpg)
What loft does is create a smooth solid surface between 2 surfaces.
Loft creates a smooth solid body between 2 surfaces.
![alt text](../../assets/assets_week_2/Onshape/image-1.jpg)
After that I created a sketch on the front surface with a offset so I could extrude the inside
@@ -183,13 +183,13 @@ After that you can select everything and press `Control + L` and then link anima
![alt text](../../assets/assets_week_2/blender/image-4.jpg)
<video controls src="../../assets/assets_week_2/blender/droneAnimation1.mp4" title="Title"></video>
<video controls src="../../assets/assets_week_2/blender/droneAnimation1.mp4" title="Title" type="video/mp4"></video>
##### Issue with rotor animation
When I try to angle the drone for an animation the rotors go spinning in a weird direction and I don't know why.
<video controls src="../../assets/assets_week_2/blender/droneRenderWhackyRotors.mp4" title="Title"></video>
<video controls src="../../assets/assets_week_2/blender/droneRenderWhackyRotors.mp4" title="Title" type="video/mp4"></video>
##### Quirks of the animation timeline
@@ -271,9 +271,14 @@ After setting all your settings you can go to the top menu and press `render` an
![alt text](../../assets/assets_week_2/blender/image-18.jpg)
#### Result:
<video controls src="../../assets/assets_week_2/blender/droneRender.mp4" title="Title"></video>
<video controls src="../../assets/assets_week_2/blender/droneRender.mp4" title="Title" type="video/mp4"></video>
##### Issue with adding videos
When trying to view videos on the web my firefox says no MIME type.
![alt text](../../assets/assets_week_2/MIME.jpg)
I fixed it by searching basic video tag documentation. Then I added `type="video/mp4"` to every video tag. Because when pasting in images in markdown vscode forgets to add it.
https://www.w3schools.com/tags/tag_video.asp
## Sources:
* [Exporting blender renders](https://www.youtube.com/watch?v=JPkzmWpZbLw)
* [Importing photos and videos into blender](https://www.youtube.com/watch?v=jLGWE335J28)