cordova - Video as a source for the canvas drawImage() method is supported on Android? -


do know if video source canvas drawimage() method supported on android?

the goal display video , select 1 moment take picture of moment in frame (drawimage (video,0,0), return canvas)). think doable?

thanks!

there approach in android return bitmap given point in video, may give want need (or needed old question!):

mediametadataretriever (https://developer.android.com/reference/android/media/mediametadataretriever.html#getframeattime%28long,%20int%29)

getframeattime

added in api level 10

bitmap getframeattime (long timeus, int option)

call method after setdatasource(). method finds representative frame close given time position considering given option if possible, , returns bitmap. useful generating thumbnail input data source or obtain , display frame @ given time position.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -