Dialogue: media control player integration#18390
Conversation
|
Scheduled Jetpack release: February 2, 2021. Thank you for the great PR description! When this PR is ready for review, please apply the |
2a4818b to
a9bce7b
Compare
76db182 to
e7a7183
Compare
a9bce7b to
af0f517
Compare
3c37972 to
ed661db
Compare
I've been using this feature continually, and not being able to play the podcast in the desired position could be an annoying issue for the users, imo. Can/should we always play in the time defined by timestamp?
Probably, yes. But also keep in mind we'd like to add podcast links in other areas, not only in the Dialogue timestamp section. For instance, a simple example of a transcription: This feature won't be part of v1, but we may like to keep working on this after v1, maybe we should consider adding podcast audio links to other part f the content Could add a hint that the link (the timestamp in this case) is tied to the media source? Maybe adding a play icon just close to the timestamp label?
Correct. Fair enough.
I prefer choosing the second. All controls suggested in this PR are focused on the timestamp edition. Range control is awesome and makes the difference. Could you consider to keep it? Going to update the PR according to some of this feedback. Question: Is participant dropdown something that we'd like to add in the block toolbar too? |
I believe so - that tweak was in response to #18283
Yes |
9035fe0 to
dcfc380
Compare
|
Just reviewed the latest version, looking better. Feature-wise, there are still 2 changes I would make:
|
Sounds good to me, but let's tackle in a follow-up PR. I do really think we should to try to get this one before to keep adding enhancements. |
jeherve
left a comment
There was a problem hiding this comment.
This is neat, nice work! I'd only have a few questions. I don't think any of this is blocking though, so I approved the PR.
At first, I had added the podcast within the conversation block, above the first dialogue block, and things didn't work there. I had to take the block outside of the parent conversation block.
When the audio is paused, it seems that syncing the timestamp is not possible; I had to play again so I could hit the sync timestamp button.
I was a bit confused when I got back to a previous dialogue to make a fix, and the timestamp got updated as soon as I clicked in, because the player was still going; I consequently had to select the right timestamp again.
Let us analyze this feedback and try to improve it immediately after this erge. |
I can't reproduce this issue. In theory, it doesn't matter where the podcast block is inserted since it's registered globally by the store. I tried to do/undo to get it to get out-of-sync. |
Initially, the audio file is not loaded locally. For this reason, is why we disable the sync button. Once the user clicks on the play button, it starts to download and get ready to work with it. So it happens just once. Maybe we can implement something smarter. |
I'm not sure I follow but probably it was because the sync button was activated. Instead of toggle the sync state, we may just sync once, when the user clicks on the button. |
* dialogue: add i18n context for label Props to @jeherve #18390 (comment) * media-player-control: tabs > spaces * media-player-control: switich diplay and sync * media-source: rename filename using kebab * media-souce: minor doc improvement reba * media-source: rename players by sources * media-source: set default when removing it * dialogue: disable timestamp play when no media * dialogue: fix timestamp dropdown close issue * dialogue: remove stuff * dialogue: minor janitorial
* dialogue: add i18n context for label Props to @jeherve Automattic/jetpack#18390 (comment) * media-player-control: tabs > spaces * media-player-control: switich diplay and sync * media-source: rename filename using kebab * media-souce: minor doc improvement reba * media-source: rename players by sources * media-source: set default when removing it * dialogue: disable timestamp play when no media * dialogue: fix timestamp dropdown close issue * dialogue: remove stuff * dialogue: minor janitorial\n\nCommitted via a GitHub action: https://github.com/automattic/jetpack/runs/504473312








Integrate with the Dialogue block with podcast player. Add MediaPlayerControl.
Fixes #18344
Changes proposed in this Pull Request:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No
Testing instructions:
From block Toolbar
Keep in-syncmode works as expected:timestampvalue changes according to the current time of the playerFrom Editor Canvas / Sidebar
Keep in-syncis enabled.Proposed changelog entry for your changes: