UIStoryPlayVideoCtr.lua 602 B

1234567891011121314151617181920212223242526272829303132
  1. local UIStoryPlayVideoCtr = class("UIStoryPlayVideoCtr", require("UICtrBase"))
  2. function UIStoryPlayVideoCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIStoryPlayVideoCtr:SetData(data)
  6. self.asyncIdx = 0
  7. if data == nil then return end
  8. self.data = data
  9. end
  10. function UIStoryPlayVideoCtr:GetAsyncIdx()
  11. self.asyncIdx = self.asyncIdx + 1
  12. return self.asyncIdx
  13. end
  14. function UIStoryPlayVideoCtr:GetData()
  15. return self.data
  16. end
  17. function UIStoryPlayVideoCtr:OnDispose()
  18. self.data = nil
  19. self.view = nil
  20. end
  21. function UIStoryPlayVideoCtr:GetVideoPath()
  22. return self.data
  23. end
  24. return UIStoryPlayVideoCtr