PlayerModel.ets 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2023 Huawei Device Co., Ltd.
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. import { CommonConstants } from '../constants/CommonConstants';
  16. import { PlayConstants } from '../constants/PlayConstants';
  17. @Observed
  18. export class PlayerModel {
  19. videoHeight: string = PlayConstants.PLAY_PLAYER_HEIGHT;
  20. videoWidth: string = CommonConstants.FULL_PERCENT;
  21. videoMargin: string = PlayConstants.MARGIN_ZERO;
  22. videoPosition: FlexAlign = FlexAlign.Center;
  23. playSpeed: number = PlayConstants.PLAY_SPEED;
  24. volume: number = PlayConstants.VOLUME;
  25. volumeShow: boolean = PlayConstants.VOLUME_SHOW;
  26. bright: number = PlayConstants.BRIGHT;
  27. brightShow: boolean = PlayConstants.BRIGHT_SHOW;
  28. currentTime: string = PlayConstants.PROGRESS_CURRENT_TIME;
  29. totalTime: string = PlayConstants.PROGRESS_TOTAL_TIME;
  30. progressVal: number = PlayConstants.PROGRESS_PROGRESS_VAL;
  31. }