pleabargain

lesson 1 live code video fail

Aug 22nd, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.86 KB | None | 0 0
  1. # this will play the video
  2. #not the two )) at the end (not doc'ed in the lesson)
  3. on openCard
  4.      if the environment is "mobile" then
  5.       send "playMobileVideo" to me in 0 milliseconds
  6.    else
  7.       ##does not work
  8.       #play videClip (specialfolderpath("/home/dennis/Desktop/LiveCode/Lesson1/BitterRevenge/Video"))
  9.       #test this
  10.       #fail = no vid play
  11.       #play videoClip (specialfolderpath("/home/dennis/Desktop/LiveCode/Lesson1/BitterRevenge/Video"))
  12.       #test
  13.       #and fail
  14.       play videoClip "/home/dennis/Desktop/LiveCode/Lesson1/BitterRevenge/Video/video.mp4"
  15.    end if
  16.    
  17. end openCard
  18.  
  19. #go to next card
  20. on playStopped#
  21.       go to the next card
  22. end playStopped
  23.  
  24. on playMobileVideo
  25.    play videClip (specialfolderpath("/home/dennis/Desktop/LiveCode/Lesson1/BitterRevenge/Video"))
  26.       go to the next card
  27.  
  28. end playMobileVideo
Add Comment
Please, Sign In to add comment