Skip to content

Commit

Permalink
Switch to use flower.mp4 from files.daohoangson.com
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Aug 23, 2024
1 parent 265ebee commit 151883d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion demo_app/integration_test/auto_resize_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void main() {
patrolTest('VideoPlayer', ($) async {
final test = _AspectRatioTest(
child: VideoPlayer(
'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
'https://files.daohoangson.com/public/fwfh/flower.mp4',
aspectRatio: 1,
loadingBuilder: (_, __, ___) =>
const Center(child: CircularProgressIndicator()),
Expand Down
2 changes: 1 addition & 1 deletion demo_app/lib/screens/hello_world.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const kHtml = '''
<h4>&lt;VIDEO&gt;</h4>
<figure>
<video controls width="250">
<source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" type="video/mp4">
<source src="https://files.daohoangson.com/public/fwfh/flower.mp4" type="video/mp4">
<code>VIDEO</code> support is not enabled.
</video>
<figcaption>Source: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video">developer.mozilla.org</a></figcaption>
Expand Down
4 changes: 2 additions & 2 deletions demo_app/lib/screens/video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class _State extends State<VideoScreen> {
_html,
key: Key(_html),
baseUrl: Uri.parse(
'https://interactive-examples.mdn.mozilla.net/pages/tabbed/video.html',
'https://files.daohoangson.com/public/fwfh/',
),
),
),
Expand Down Expand Up @@ -97,7 +97,7 @@ class _State extends State<VideoScreen> {
_html = """
<figure>
<video ${attributes.join(' ')}>
<source src="/media/cc0-videos/flower.mp4" type="video/mp4">
<source src="flower.mp4" type="video/mp4">
<code>VIDEO</code> support is not enabled.
</video>
<figcaption>Source: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video">developer.mozilla.org</a></figcaption>
Expand Down
4 changes: 2 additions & 2 deletions demo_app/test/goldens.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"U": "This is an <u>underline</u> text.",
"UL": "<ul>\n <li>One</li>\n <li>\n Two\n <ul>\n <li>2.1</li>\n <li>\n 2.2\n <ul>\n <li>2.2.1</li>\n <li>2.2.2</li>\n <li>2.2.3</li>\n </ul>\n </li>\n <li>2.3</li>\n </ul>\n </li>\n <li>Three</li>\n</ul>",
"VAR": "<var>x</var> = 1",
"VIDEO": "<video controls width=\"250\">\n <source src=\"https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4\" type=\"video/mp4\">\n <code>VIDEO</code> support is not enabled.\n</video>",
"VIDEO": "<video controls width=\"250\">\n <source src=\"https://files.daohoangson.com/public/fwfh/flower.mp4\" type=\"video/mp4\">\n <code>VIDEO</code> support is not enabled.\n</video>",
"attribute/align/center": "<div align=\"center\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non elementum quam. Suspendisse odio diam, maximus pellentesque nunc a, pulvinar facilisis erat. Vivamus a viverra sem. Vivamus vehicula nibh mi, quis ornare orci laoreet vitae. Maecenas sagittis rutrum nisl nec dignissim. Suspendisse cursus est ut ultrices volutpat. Cras vel vestibulum arcu. Curabitur eget molestie nunc. Quisque fringilla quam vitae rhoncus lacinia. Vivamus id laoreet metus. Etiam sed mollis tellus. Vivamus facilisis faucibus libero eu interdum. Pellentesque laoreet magna porta viverra faucibus.</div>",
"attribute/align/left": "<div align=\"left\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non elementum quam. Suspendisse odio diam, maximus pellentesque nunc a, pulvinar facilisis erat. Vivamus a viverra sem. Vivamus vehicula nibh mi, quis ornare orci laoreet vitae. Maecenas sagittis rutrum nisl nec dignissim. Suspendisse cursus est ut ultrices volutpat. Cras vel vestibulum arcu. Curabitur eget molestie nunc. Quisque fringilla quam vitae rhoncus lacinia. Vivamus id laoreet metus. Etiam sed mollis tellus. Vivamus facilisis faucibus libero eu interdum. Pellentesque laoreet magna porta viverra faucibus.</div>",
"attribute/align/right": "<div align=\"right\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non elementum quam. Suspendisse odio diam, maximus pellentesque nunc a, pulvinar facilisis erat. Vivamus a viverra sem. Vivamus vehicula nibh mi, quis ornare orci laoreet vitae. Maecenas sagittis rutrum nisl nec dignissim. Suspendisse cursus est ut ultrices volutpat. Cras vel vestibulum arcu. Curabitur eget molestie nunc. Quisque fringilla quam vitae rhoncus lacinia. Vivamus id laoreet metus. Etiam sed mollis tellus. Vivamus facilisis faucibus libero eu interdum. Pellentesque laoreet magna porta viverra faucibus.</div>",
Expand Down Expand Up @@ -230,4 +230,4 @@
"tag/OL/type_upper-roman": "<ol type=\"I\"><li>One</li><li>Two</li><li>Three</li><ol>",
"tag/TABLE/colspan": "<table border=\"1\">\n <caption>Source: <a href=\"https://www.w3schools.com/tags/att_td_colspan.asp\">w3schools</a></caption>\n <tr>\n <th>Month</th>\n <th>Savings</th>\n </tr>\n <tr>\n <td>January</td>\n <td>$100</td>\n </tr>\n <tr>\n <td>February</td>\n <td>$80</td>\n </tr>\n <tr>\n <td colspan=\"2\">Sum: $180</td>\n </tr>\n</table>",
"tag/TABLE/rowspan": "<table border=\"1\">\n <caption>Source: <a href=\"https://www.w3schools.com/tags/att_td_colspan.asp\">w3schools</a></caption>\n <tr>\n <th>Month</th>\n <th>Savings</th>\n <th>Savings for holiday!</th>\n </tr>\n <tr>\n <td>January</td>\n <td>$100</td>\n <td rowspan=\"2\">$50</td>\n </tr>\n <tr>\n <td>February</td>\n <td>$80</td>\n </tr>\n</table>"
}
}
2 changes: 1 addition & 1 deletion packages/fwfh_chewie/example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MyApp extends StatelessWidget {
child: HtmlWidget(
'''
<video controls width="250">
<source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" type="video/mp4">
<source src="https://files.daohoangson.com/public/fwfh/flower.mp4" type="video/mp4">
<code>VIDEO</code> support is not enabled.
</video>''',
factoryBuilder: () => MyWidgetFactory(),
Expand Down

0 comments on commit 151883d

Please sign in to comment.