mirror of https://github.com/calzoneman/sync.git
Compare commits
2 Commits
aebdc801d8
...
3d8314e2b2
Author | SHA1 | Date |
---|---|---|
David Siaw | 3d8314e2b2 | |
Honore Doktorr | adc0ea27a9 |
|
@ -18,7 +18,12 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player
|
|||
if quality != 'auto'
|
||||
params.quality = quality
|
||||
|
||||
@dm = DM.player('ytapiplayer',
|
||||
@element = DM.$('ytapiplayer')
|
||||
if not @element or @element.nodeType != Node.ELEMENT_NODE
|
||||
throw new Error("Invalid player element in DailymotionPlayer(), requires an existing HTML element: " + @element)
|
||||
if DM.Player._INSTANCES[@element.id] != undefined
|
||||
@element = DM.Player.destroy(@element.id)
|
||||
@dm = DM.Player.create(@element,
|
||||
video: data.id
|
||||
width: parseInt(VWIDTH, 10)
|
||||
height: parseInt(VHEIGHT, 10)
|
||||
|
|
Loading…
Reference in New Issue