Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to embed video from dropbox using javascript?
    primarykey
    data
    text
    <p>I was trying to embed video from youtube but because of youtube branding. Even after adding require parameters youtube branding is not hiding completely. So that I want to switch from that.</p> <p>I want to embed mp4 videos from dropbox now. How can I proceed for that?</p> <p>Following is my reference code which I used for youtube.</p> <pre><code>youtubeLoadVideos : function () { var videos = document.getElementsByClassName("youtube"); for (var i=0; i&lt;videos.length; i++) { var youtube = videos[i]; var iframe = document.createElement("iframe"); iframe.setAttribute("src", "http://www.youtube.com/embed/" + youtube.id + "?modestbranding=1&amp;;showinfo=0&amp;;autohide=1&amp;;enablejsapi=1&amp;;origin=http://www.youtube.com&amp;;rel=0;"); iframe.style.width = youtube.style.width; iframe.style.height = youtube.style.height; iframe.style.clear = 'both'; youtube.parentNode.appendChild(iframe, youtube); } } </code></pre> <p>Following is what I tired :</p> <pre><code>new_video = document.createElement('video'); new_source = document.createElement('source'); final_video1 = document.getElementById('container').appendChild(new_video); final_video1.setAttribute('id','sample'); final_video = document.getElementById('container').appendChild(new_video).appendChild(new_source); final_video.setAttribute('src', 'https://dl.dropboxusercontent.com/u/87532981/Ella%20May%20and%20the%20Wishing%20Stone%20By%20Cary%20Fagan.mp4'); final_video.setAttribute('type', 'video/mp4;codecs=&amp;quot;vp8, vorbis&amp;quot;'); $('#sample')[0].play(); </code></pre> <p>With this Video is loading and playing but there is no play button no volume button. In short there is no control bar. What can be done for this?</p> <p>Latest Update 2 :</p> <pre><code>new_video = document.createElement('video'); video = document.getElementById('RIZfC358yRk').appendChild(new_video); source = document.createElement('source'); source.setAttribute('src','https://dl.dropboxusercontent.com/u/87532981/Ella%20May%20and%20the%20Wishing%20Stone%20By%20Cary%20Fagan.mp4'); video.appendChild(source); video.play(); </code></pre> <p>With this I am able to append video but in this also control bar is missing. Play button is not there, progress bar is not there, pause button is also not there. How can I add those? Please Help me in finding the problem? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload