Ignore:
Timestamp:
2021-10-18T15:57:18+13:00 (3 years ago)
Author:
cstephen
Message:

Improve audio loading flow.
Load audio on word editor click.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue

    r35608 r35631  
    1212        <ul class="list-view" v-else>
    1313            <li v-for="(word, index) in words" :key="word.id" class="word-container">
    14                 <input :size="word.word.length === 0 ? 1 : word.word.length" :ref="word.id"
     14                <input :size="word.word.length === 0 ? 1 : word.word.length" :ref="word.id" @click="loadAudio(word.startTime)"
    1515                    class="editor-word" v-model="word.word" type="text" :class="{ 'word-highlight-applied': word.shouldHighlight }"
    1616                    @beforeinput="onEditorBeforeInput($event, index)" @focusout="onEditorFocusOut(index)" @focus="onEditorFocus(index)" />
     
    186186        async playAudio(startTime) {
    187187            await AudioPlayback.play(this.transcription.id, startTime);
     188        },
     189
     190        async loadAudio(startTime) {
     191            await AudioPlayback.load(this.transcription.id, startTime);
    188192        },
    189193
Note: See TracChangeset for help on using the changeset viewer.