Skip to content

Commit

Permalink
Merge branch 'release/1.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
ct7ct7ct7 committed Feb 4, 2019
2 parents c91eae8 + e623751 commit b10884b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'com.jfrog.bintray'


group = "com.ct7ct7ct7.androidvimeoplayer"
version = "1.0.5"
version = "1.0.6"

def siteUrl = 'https://github.com/ct7ct7ct7/Android-VimeoPlayer'
def gitUrl = 'https://github.com/ct7ct7ct7/Android-VimeoPlayer'
Expand Down
14 changes: 13 additions & 1 deletion library/src/main/res/raw/vimeo_player.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,19 @@
}

function loadVideo(videoId) {
player.loadVideo(videoId)
player.loadVideo(videoId).then(function(id) {
player.getDuration().then(function(duration) {
player.getVideoTitle().then(function(title) {
jsBridge.sendReady(title,duration)
}).catch(function(error) {
jsBridge.sendInitFailed()
jsBridge.sendError('Init failed','init','init')
})
}).catch(function(error) {
jsBridge.sendInitFailed()
jsBridge.sendError('Init failed','init','init')
})
})
}

function setVolume(volumePercent) {
Expand Down

0 comments on commit b10884b

Please sign in to comment.