feature: separate player and transcript shortcodes #130
Replies: 3 comments 5 replies
|
Thanks for all of this @composerjk – looks like an interesting development. I'll take a look in the coming days. |
|
Hi @composerjk – apologies for the delay in getting back to you. First of all, thanks for looking into this. I'm a little hesitant to merge this because one of the key objectives with this plugin is to make it as easy as possible to use – I wouldn't want to lose the simplicity we already have, so I think any changes should maintain backward compatibility, the issue there would be the added complexity of the codebase. To help me evaluate – can I ask what you see as the use case for multiple transcripts connected to the same source? Regarding the other issues In any case I would kindly ask that each issue be separated into separate issues. I'm going to convert this issue to a discussion so we can better go through the finer points. Hope that works for you. |
|
I suppose another possible use case for multiple transcripts could be showing multiple translations simultaneously. But, that is not our use case. |
Uh oh!
There was an error while loading. Please reload this page.
@maboa: A little while back, I started a quick implementation of separate player and transcript shortcodes. So, one could place the player and transcripts in different spots; also, make it easier to have two transcripts attached to the same hyperaudio player. I'm in the process of moving this to live, so thought I would mention. Will try to clean up more in case you're interested in including something like it.
Here's an example with two synchronized transcript windows: transcript + chat. Transcripts are files in custom fields. Set up with something like:
Set up the player:
Transcript 1 in one spot:
Chat 1 (i.e., transcript 2) in another spot:
The current code for the shortcodes is on our player-transcript-shortcodes branch. I also put together a test-separate-shortcodes-release branch to include recent PRs #123 and #124 I submitted since I'm moving this from staging to production. This still more cleanup to do, but I thought I'd share the progress and add a note. Will try to cleanup at some point and submit a PR when ready.
I also added an option to disable the A Hyperaudio Production mark with a
show_hyperaudio_productionattribute on thehyperaudio_transcriptshortcode, so that one doesn't end up with it on every transcript.I was just reminded that I had made a change (not included in the branches) to the default
scrollerOffsetfrom0to-160so that the highlighted portions of the transcripts are more centered. Will open an issue to mention adding support of specifying that value.All reactions