Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #344 from nypublicradio/mwalsh/player-fixes
Browse files Browse the repository at this point in the history
Player fix
  • Loading branch information
walsh9 authored Apr 22, 2022
2 parents a467a6b + c5e01c6 commit 9d7d8a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion components/GothamistPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
v-if="!playerDismissed"
v-show="!playerDismissed"
class="persistent-player-wrapper"
>
<collapsible-message
Expand Down
24 changes: 13 additions & 11 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,19 @@
</main>
<gothamist-footer v-if="!isGallery" />
<!-- audio player -->
<transition name="fade">
<gothamist-player
v-if="$features.enabled['experiment-audio-player']"
class="gothamist-player-wrapper"
@welcome-message-dismissed="gaEvent('Livestream', 'Welcome Message Dismissed')"
@player-dismissed="gaEvent('Livestream', 'Player Dismissed')"
@play-clicked="gaEvent('Livestream', 'Livestream Started')"
@pause-clicked="gaEvent('Livestream', 'Livestream Paused')"
@resume-clicked="gaEvent('Livestream', 'Livestream Resumed')"
/>
</transition>
<client-only>
<transition name="fade">
<gothamist-player
v-if="$features.enabled['experiment-audio-player']"
class="gothamist-player-wrapper"
@welcome-message-dismissed="gaEvent('Livestream', 'Welcome Message Dismissed')"
@player-dismissed="gaEvent('Livestream', 'Player Dismissed')"
@play-clicked="gaEvent('Livestream', 'Livestream Started')"
@pause-clicked="gaEvent('Livestream', 'Livestream Paused')"
@resume-clicked="gaEvent('Livestream', 'Livestream Resumed')"
/>
</transition>
</client-only>
<!-- audio player -->
</div>
</template>
Expand Down

0 comments on commit 9d7d8a6

Please sign in to comment.