Iframe issue in moodle 3.9

Iframe issue in moodle 3.9

by Shamal Abdullah -
Number of replies: 2

I want to add an embedded video with <iframe> but the results is like this:


Forbidden

You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


I hope you can give me a solution


Thanks


Average of ratings: -
In reply to Shamal Abdullah

Re: Iframe issue in moodle 3.9

by Wendy Harper -

I have the same issue.  Were you able to get a solution?


In reply to Shamal Abdullah

Re: Iframe issue in moodle 3.9

by Benjamin Ellis -
Picture of Particularly helpful Moodlers
Hi,

Can you get to the video directly - i.e. by using it's URL? If you are using a relative link to the video, it might be that your path to the video for the displaying script may be different from what you may assume. E.G. if your video in at http://mymoodle/files/thisnicevideo.mp4 but you have the iframe in a page at http://mymoodle/local/videoviewer/view.php then the relative link is not 'files/thisnicevideo.mp4' but '/files/thisnicevideo.mp4' or '../../files/thisnicevideo.mp4'.

Ignore the 403 error - is is casued by the webserver being unable to find an Error Document to display the actual error.


Average of ratings: Useful (1)