Video in Slide gives Access Denied error

natacon
Forums
I have been trying add video files to my slides and keep getting an Access Denied error when trying to test the lesson. I'm using the Opigno Video App and the videos are playing fine from the videos tab. I have disabled the HTML text format so the editor will output the iframe to hold the vid yet I'm still getting Access Denied (and the iframe shows the Opigno interface rather than the video). I have enabled permissions on the videos so they cam be viewed by any user level. Anyone able to shed some light on this?
James Aparicio

Hi natacon,

Hi natacon,

Are you using private file system? If you are, you have to make sure the users that are viewing the video have access to the video node.  Maybe the video is not part of the course that this lesson containg the slide is?

 

Best regards

natacon

Thanks James. What do you

Thanks James. What do you mean by private file system? I am uploading the video files using the Opigno video app while logged in as Admin. I'm not transcoding the videos as they are already at the correct size. The problem seems to be the url embedded in the iframe is incorrect. If I go directly to the URL the CK editor button generates for the iframe it also displays Access Denied. Copying the url direct from the Video page into the iframe tag plays the file (albeit with the rest of the video page elements ie. title, edit button etc) so I don't think it's a permission issue. Could it be that the video embed code is generating a url to the transcoded file?
James Aparicio

Hi natacon,

Hi natacon,

Have you tried disabling the wysiwyg filter? 

Also how did you install the video app? Did you get it from the app store? Or did you download it from Drupal.org?

Best regards

natacon

Hi James, thanks for replying

Hi James, thanks for replying. Yes, I've disabled the wysiwyg filter - the iframe is being output ok but the video file isn't getting embedded. I installed the video app from within Opigno (from the Apps menu).
James Aparicio

If you look at the browser

If you look at the browser console in the network tab.

What is giving access denied? The callback to get the video (video/embed/xxxx) or is it afterwards the actual file.

Also, if you look at the node id of the video. Can the user that is getting access denied access the page /node/thevideonid.

Also, what is the version fo your video module. You can see inside sites/all/modules/video/video.inc.

Best regards

 

natacon

Thanks again James. In

Thanks again James. In frustration. I reinstalled and started again (I was only in the early stages anyway) and now video embedding is working as expected. I am not sure what I did the first time around but here's the basic process that seems to work from a fresh install:
  1. Install video app from Apps menu
  2. Add Video button to CK Editor
  3. Disable WYSIWYG output in the HTML text format dialog
  4. Create video (from content authoring menu)
  5. Create slide and embed video
  6. Add slide to Lesson.