Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Block: Audio #804

Closed
jasmussen opened this issue May 16, 2017 · 10 comments
Closed

Add Block: Audio #804

jasmussen opened this issue May 16, 2017 · 10 comments
Assignees
Labels
Customization Issues related to Phase 2: Customization efforts [Feature] Blocks Overall functionality of blocks [Feature] Media Anything that impacts the experience of managing media New Block Suggestion for a new block [Priority] High Used to indicate top priority items that need quick attention
Milestone

Comments

@jasmussen
Copy link
Contributor

Splitting this out from #283 .

Attributes

  • None, Left, Right, Center, Full Width.
  • Caption

States

Placeholder:

audio placeholder

Neutral:

audio neutral

Selected:

audio selected

@jasmussen jasmussen added the [Feature] Blocks Overall functionality of blocks label May 16, 2017
@westonruter
Copy link
Member

See also the new Audio widget which is now in trunk:

@mtias mtias added New Block Suggestion for a new block [Feature] Media Anything that impacts the experience of managing media labels Jun 26, 2017
@timmyc timmyc self-assigned this Jul 31, 2017
@timmyc
Copy link
Contributor

timmyc commented Aug 1, 2017

@jasmussen should this block be similar to the audio widget where we allow users to select audio from the library, or are you thinking of just having the URL input?

@jasmussen
Copy link
Contributor Author

It was designed as a replacement for the audio shortcode, which allows you to hotlink URLs. But maybe it should indeed be the new widget, I like the idea of not having two blocks that do the same. Can you insert a sound file from a URL in the widget?

@timmyc
Copy link
Contributor

timmyc commented Aug 1, 2017

You can insert a url in the audio widget, it is kind of buried in the media modal though:

customize__blog_ _xwp

customize__blog_ _xwp

Seems like your original design is much quicker to insert the URL - I can pursue that in the first iteration of this block.

@westonruter
Copy link
Member

It seems the main thing missing is selecting the file from the media library.

Beware, however, that there are many more inspector-style settings for audio, including the selection of alternate HTML5 audio sources, configuring preloading, looping, and autoplay:

image

@jasmussen
Copy link
Contributor Author

Hmm. Maybe it does make sense to have a separate "Embed Music" block, or someting in that vein. I can't quite wrap my head around it.

The thing is, I think there's a legit use case for both the one from the media library, and the one where you just have a URL that is hotlinked. As @iseulde suggested yesterday, a hotlinked URL is an embed, in a way.

CC: @melchoyce for thoughts also.

@melchoyce
Copy link
Contributor

Maybe we could consider something like this:

image

@karmatosed karmatosed added the [Priority] High Used to indicate top priority items that need quick attention label Aug 3, 2017
@karmatosed karmatosed added this to the Beta 0.8.0 milestone Aug 3, 2017
@karmatosed karmatosed added the Customization Issues related to Phase 2: Customization efforts label Aug 4, 2017
@timmyc
Copy link
Contributor

timmyc commented Aug 8, 2017

Quick screen grab of progress thus far, will hopefully push up a branch/create a pr later today:

screenshot_8_8_17__2_36_pm

@timmyc timmyc mentioned this issue Aug 9, 2017
@getsource
Copy link
Member

getsource commented Aug 10, 2017

The current progress screenshot makes it look a bit like the insert button is referencing the URL entry box.

I think the route @melchoyce suggested with having a separator in between the two options makes it clearer what the controls will do.

Edit: Sorry, I was really unclear which designs I was referencing in the original comment.

@mtias
Copy link
Member

mtias commented Aug 14, 2017

Done in #2299. Further improvements in new issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customization Issues related to Phase 2: Customization efforts [Feature] Blocks Overall functionality of blocks [Feature] Media Anything that impacts the experience of managing media New Block Suggestion for a new block [Priority] High Used to indicate top priority items that need quick attention
Projects
None yet
Development

No branches or pull requests

7 participants