Comments (10)
I think we'll want a scalable/resizable version, something like this but for fullscreen: https://github.com/jxnblk/rebass/blob/master/src/Embed.js
from mdx-deck.
A more video-centric extension of this could also have an autoplay attribute, hook into the SlideDeck context and start playing when the slide comes into view – and pause when the slide leaves the view
from mdx-deck.
For now, this seems to be a workaround (dangerouslySetInnerHTML
for autoplay
with muted
in Chrome, see facebook/react#10389):
import screencapture from './screencapture.mp4';
<div
dangerouslySetInnerHTML={{
__html: `
<video
style="max-width: 80%"
controls
autoplay
muted
src="${screencapture}"
/>
`,
}}
/>
Older versions of mdx-deck
don't use the import
:
<div
dangerouslySetInnerHTML={{
__html: `
<video
style="max-width: 80%"
controls
autoplay
muted
src="./screencapture.mp4"
/>
`,
}}
/>
from mdx-deck.
What should these component specifically do? Wouldn't using a provided embed code suffice?
from mdx-deck.
This will be awesome. I really like the included fullscreen Image
component - having one for videos would be very helpful. Thanks for such a great library!
from mdx-deck.
@jxnblk The link to rebass no longer works :(
from mdx-deck.
Updated Rebass link: https://rebass-v2.now.sh/components/Embed
from mdx-deck.
@jxnblk Why was this closed? Has this been implemented in v3?
from mdx-deck.
I has not been implemented, but I'm planning on opening a new issue with a clearer specification
from mdx-deck.
Ok sounds good, thanks for the info.
from mdx-deck.
Related Issues (20)
- Integrating the presentation into existing website causes number of issues
- gatsby-theme-mdx-deck not working
- Running mdx-deck <filename>.mdx constantly forces a repaint in the browser and the recreation of gatsby pages. HOT 10
- Simple create, resize and fill div
- Presenter mode inaccessible in Windows HOT 3
- Infinite loop when using steps HOT 6
- Readme Clarity
- File-Import in 4.1.1 not working
- Can't start mdx-deck on localhost HOT 1
- Still supported/maintained? HOT 8
- Is there a way to run custom javascript on deck load and slid transitions ? HOT 3
- Can't resolve 'mdx-deck/themes' HOT 2
- Is there support for remark plugins?
- Can this be used with Next.Js HOT 2
- Trying to get in touch with you regarding a security issue
- Import partial slide decks? HOT 4
- Upgrade Gatsby to v3? HOT 2
- "Getting Started" steps do not work HOT 4
- Need custom shortcuts
- Not running on Gatsbyjs 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdx-deck.