player.js 446 B

12345678910111213141516171819202122232425262728293031
  1. this.start = function(){
  2. //on view side
  3. }
  4. this.syncStart = function(time){
  5. //on view side
  6. }
  7. this.stop = function(){
  8. //on view side
  9. }
  10. this.pause = function(){
  11. //on view side
  12. }
  13. this.playBuffer = function(){
  14. }
  15. this.syncBufferState = function(){
  16. }
  17. this.setBufferState = function(isPlaying, startOffset, pausedTime){
  18. this.isPlaying = isPlaying;
  19. this.startOffset = startOffset;
  20. this.pausedTime = pausedTime;
  21. }