Skip to content

Commit

Permalink
Add mp4 fallback for webm format
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Apr 22, 2024
1 parent e3caed9 commit f88d0aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/project/project-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ import {
} from "./project-utils";
import ProjectNameQuestion from "./ProjectNameQuestion";
import WebUSBErrorDialog from "../workbench/connect-dialogs/WebUSBErrorDialog";
import reconnectVideo from "../workbench/connect-dialogs/reconnect.webm";
import reconnectWebm from "../workbench/connect-dialogs/reconnect.webm";
import reconnectMp4 from "../workbench/connect-dialogs/reconnect.mp4";

/**
* Distinguishes the different ways to trigger the load action.
Expand Down Expand Up @@ -926,7 +927,8 @@ export class ProjectActions {
/>
</Box>
<video autoPlay loop>
<source src={reconnectVideo} type="video/webm" />
<source src={reconnectWebm} type="video/webm" />
<source src={reconnectMp4} type="video/mp4" />
</video>
</>
}
Expand Down
Binary file added src/workbench/connect-dialogs/reconnect.mp4
Binary file not shown.

0 comments on commit f88d0aa

Please sign in to comment.