Class: Shoes::Video
- Inherits:
-
Object
- Object
- Shoes::Video
- Defined in:
- lib/blue_shoes/video.rb
Instance Method Summary collapse
-
#remove ⇒ Object
Removes the video from its slot.
-
#show ⇒ Object
Reveals the video, if it has been hidden by the hide() method.
-
#stop ⇒ Object
Stops the video, if it is playing.
-
#time ⇒ Object
The time position of the video in milliseconds.
-
#time=(number) ⇒ Object
Set the position of the video to a time in milliseconds.
-
#toggle ⇒ Object
Toggles the visibility of the video.
Instance Method Details
#remove ⇒ Object
Removes the video from its slot. This will stop the video as well.
4 5 6 7 |
# File 'lib/blue_shoes/video.rb', line 4 def remove #returns self throw NotImplementedError end |
#show ⇒ Object
Reveals the video, if it has been hidden by the hide() method.
10 11 12 13 |
# File 'lib/blue_shoes/video.rb', line 10 def show # returns self throw NotImplementedError end |
#stop ⇒ Object
Stops the video, if it is playing.
16 17 18 19 |
# File 'lib/blue_shoes/video.rb', line 16 def stop # returns self throw NotImplementedError end |
#time ⇒ Object
The time position of the video in milliseconds. So, if the video is 10 seconds into play, this method would return the number 10000.
22 23 24 25 |
# File 'lib/blue_shoes/video.rb', line 22 def time # returns a number throw NotImplementedError end |
#time=(number) ⇒ Object
Set the position of the video to a time in milliseconds.
28 29 30 |
# File 'lib/blue_shoes/video.rb', line 28 def time=(number) throw NotImplementedError end |
#toggle ⇒ Object
Toggles the visibility of the video. If the video can be seen, then hide is called. Otherwise, show is called.
33 34 35 36 |
# File 'lib/blue_shoes/video.rb', line 33 def toggle # returns self throw NotImplementedError end |