Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'gh-pages' of github.com:dseif/popcorn-docs into gh-pages

  • Loading branch information...
commit b9d11a80dd123312d41dc819c3160c194e76477a 2 parents 5fefaa8 + 4355d6a
@dseif dseif authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 media-methods/_posts/2012-12-12-playbackrate.md
View
13 media-methods/_posts/2012-12-12-playbackrate.md
@@ -1,15 +1,16 @@
---
-title: playbackrate
+title: playbackRate
---
-# playbackrate( \[rate\] ) #
+# playbackRate( \[rate\] ) #
## Purpose ##
-Get or set playbackrate of calling Popcorn instance
+Get or set playbackRate of calling Popcorn instance. Default rate is 1.
+**Note:** It does not always mute the sound and negative values are not supported yet.
## Options ##
-* **rate** \[Number\] - optional parameter that will set the playbackrate if provided and return the playbackrate if not.
+* **rate** \[Number\] - optional parameter that will set the playback rate if provided and return the playback rate if not.
## Example ##
@@ -17,8 +18,8 @@ Get or set playbackrate of calling Popcorn instance
var p = Popcorn( "#video" );
// returns the current playback rate
- p.playbackrate();
+ p.playbackRate();
// set the playback rate
- p.playbackrate( 30 );
+ p.playbackRate( 30 );
{% endhighlight %}
Please sign in to comment.
Something went wrong with that request. Please try again.