Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
Use shallowRef for player
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Mar 5, 2022
1 parent 22eb27c commit 3635c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/usePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Event, MediaPlayerClass } from 'dashjs';
import { PlayerState, PlayerTrack, VideoModel } from 'src/interfaces';
import { getToken } from 'src/services/auth';
import { addListeners, appendTrack, create, destroy, showTextTrack } from 'src/services/player';
import { reactive, ref } from 'vue';
import { reactive, shallowRef } from 'vue';

const player = ref<MediaPlayerClass>();
const player = shallowRef<MediaPlayerClass>();
const state = reactive(<PlayerState>{});

export const usePlayer = () => {
Expand Down

0 comments on commit 3635c71

Please sign in to comment.