How to embed a video using URL?

Cannot play video when using file:///.../embed.html to access the file?

  • when i open a embeded html by using file:///.../embed.html, it cannot get data, but if i use http://.../embed.html, it works! i don't know why. i use the same file for this testing, the paths are exactly the same.

  • Answer:

    When you use file:///.../embed.html, this file is searched on the local system. This code will work fine when testing the site on the local computer. If this same code is uploaded on the server where the site is hosted, the same html code will not be able to find the file embed.html. Hence in this case you need to add http://.../embed.html which will search the file in the current folder on the server.

cora g at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.