Web Tools #528 - CSS Tools, Git/CLI, Uncats
source link: https://mailchi.mp/webtoolsweekly/web-tools-528
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
CSS Tools, Git/CLI, Uncats
|
Issue #528 • August 31, 2023
Advertisement
|
The Marketer's Guide to Composable Content Creating and publishing content shouldn’t be that hard. Grab this marketer-accessible guide on how to refine your content strategy to better support leading omnichannel, personalization, and design methodologies. Composable content empowers marketers to source and build new content with existing content elements from all over the company. No need to ping your colleague for the latest product description, or even submit a ticket with design to size a new image for you. With composable content, the ability to create, connect, and extend content experiences are right at your fingertips. |
|
If you're dealing with varying levels of support for audio and video files in your apps, you'll want to be familiar with the canPlayType() method of the HTMLMediaElement API.
The example above assumes a video element on the page, then the media type is passed in to the canPlayType() method. The method takes a single argument, a string specifying the MIME type of the media you want test.
Note that the above code assumes that an answer of "maybe" means it's playable, so you'd have to adjust the code to account for "maybe", if needed, though it's probably rare to get that result.
You can fiddle around with both of the above code examples in this CodePen demo. |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK