md-player.partial.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <div layout="column" class="audioPlayerWrapper">
  2. <md-toolbar class="md-toolbar-sm {{control.themeClass}} {{control.toolbarClass}} " style="color: #333333; background:
  3. none;">
  4. <div class="md-toolbar-tools" layout="row">
  5. <div flex="initial" layout-align="center start">
  6. {{control.currentTime | mdWavesurferTimeFormat}}
  7. </div>
  8. <div flex="grow" class="text-center">
  9. {{control.title}}
  10. </div>
  11. <div flex="initial" layout-align="center end" class="text-right">
  12. {{control.surfer.getDuration() | mdWavesurferTimeFormat}}
  13. </div>
  14. </div>
  15. </md-toolbar>
  16. <md-divider></md-divider>
  17. <md-content>
  18. <div class="waveSurferWave"></div>
  19. </md-content>
  20. <md-divider md-inset></md-divider>
  21. <md-toolbar class="{{control.themeClass}} {{control.toolbarClass}} md-player-controls">
  22. <div layout="row" class="md-toolbar-tools">
  23. <div flex="initial" layout-align="center start" ng-show="control.extraButtons.length">
  24. <md-button ng-click="btn.action()"
  25. ng-repeat="btn in control.extraButtons" class="{{control.themeClass}} {{btn.class}}">
  26. <md-tooltip>
  27. {{btn.title}}
  28. </md-tooltip>
  29. <md-icon md-font-icon="{{btn.icon}}"></md-icon>
  30. </md-button>
  31. </div>
  32. <div flex layout="row" layout-align="center center">
  33. <md-button ng-click="control.surfer.skipBackward()" type="button"
  34. ng-disabled="!control.surfer.isPlaying()">
  35. <md-tooltip>
  36. Rewind
  37. </md-tooltip>
  38. <md-icon md-font-icon="zmdi zmdi-fast-rewind"></md-icon>
  39. </md-button>
  40. <md-button ng-disabled="!control.isReady" type="button"
  41. ng-click="control.surfer.playPause()">
  42. <md-tooltip>
  43. {{control.surfer.isPlaying() ? 'Pause' : 'Play'}}
  44. </md-tooltip>
  45. <md-icon ng-show="control.surfer.isPlaying()" md-font-icon="zmdi zmdi-pause"></md-icon>
  46. <md-icon ng-show="!control.surfer.isPlaying()" md-font-icon="zmdi zmdi-play"></md-icon>
  47. </md-button>
  48. <md-button type="button" ng-click="control.surfer.skipForward()"
  49. ng-disabled="!control.surfer.isPlaying()">
  50. <md-tooltip>
  51. Skip forward
  52. </md-tooltip>
  53. <md-icon md-font-icon="zmdi zmdi-fast-forward"></md-icon>
  54. </md-button>
  55. </div>
  56. <div flex="initial" layout-align="center end" >
  57. <md-button type="button" ng-click="control.toggleMute()" ng-disabled="!control.surfer.isPlaying()">
  58. <md-tooltip>
  59. Toggle mute
  60. </md-tooltip>
  61. <md-icon md-font-icon="zmdi zmdi-volume-off" ng-show="control.isMute"></md-icon>
  62. <md-icon md-font-icon="zmdi zmdi-volume-up" ng-show="!control.isMute"></md-icon>
  63. </md-button>
  64. </div>
  65. </div>
  66. </md-toolbar>
  67. </div>