Added getCurrentTime API method (fixes #292)
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -535,6 +535,11 @@ Here's a list of the methods supported: | |||||||
|     <td>—</td> |     <td>—</td> | ||||||
|     <td>Reverses the effects of the <code>destroy()</code> method, restoring the UI and listeners.</td> |     <td>Reverses the effects of the <code>destroy()</code> method, restoring the UI and listeners.</td> | ||||||
|   </tr> |   </tr> | ||||||
|  |   <tr> | ||||||
|  |     <td><code>getCurrentTime()</code></td> | ||||||
|  |     <td>—</td> | ||||||
|  |     <td>Will return a float with the current time in seconds.</td> | ||||||
|  |   </tr> | ||||||
|  </tbody> |  </tbody> | ||||||
| </table> | </table> | ||||||
|  |  | ||||||
|  | |||||||
| @ -3264,7 +3264,8 @@ | |||||||
|             isFullscreen:       function() { return plyr.isFullscreen || false; }, |             isFullscreen:       function() { return plyr.isFullscreen || false; }, | ||||||
|             support:            function(mimeType) { return _supportMime(plyr, mimeType); }, |             support:            function(mimeType) { return _supportMime(plyr, mimeType); }, | ||||||
|             destroy:            _destroy, |             destroy:            _destroy, | ||||||
|             restore:            _init |             restore:            _init, | ||||||
|  |             getCurrentTime:     function() { return plyr.media.currentTime; } | ||||||
|         }; |         }; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user