dailymotion api - js sdk method play not working on ios -
I try to play a DM video on one page when I click on a custom button. It works perfectly on desktop browsers, but not on iOS device.
This is how I am using JS scandal and jacquery.
function _on_apiready () {$ custom_button.one ("click", _playvideo)} function _play video (e) {Player.play (); $ Custom_button.click (function () {player.togglePlay ();})} var player = DM.player (dom_el, {video: dm_id, parameters: {html: 1, autoplay: 0, info: 0, logo: 0 , Related: 0}, Incidents: {EpiDi: _on_apiready, timeupdate: _on_ progress, play: _on_playing, stop: _on_pause}}); On the iOS device, the video starts to load but the game does not. I need to press the player's play button to start the video and then use my custom button to toggle the play.
Is something wrong?
Thx
This question has already been answered:
Actually, mobile devices prevent the video from running automatically, that is why it is not playing with your code as you say, for those first time the user interaction is needed.
Comments
Post a Comment