Private Vimeo files

Private Vimeo files

by vincent van montfoort -
Number of replies: 8

Hey,


I have some video files hosted on Vimeo. There i have the privacy settings set in a way the files can only be viewed from my url: elearning.vanmontfoort.nl/ . The moodle app connects to that url as well, and the app works like a charm. 

Is there a way to add an url in the Vimeo privacy settings that the moodle app can acces those video files too? 


What I am asking is, what url does the moodle app use?


Thanks!!

Average of ratings: -
In reply to vincent van montfoort

Re: Private Vimeo files

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

this has been already reported a couple of times:

https://moodle.org/mod/forum/discuss.php?d=319064

https://moodle.org/mod/forum/discuss.php?d=282324

The main problem, is that this setting in vimeo works checking the browser referrer (or maybe the top frame URL, I'm not sure), the app is like an independent system using a different domain (in fact, it uses the file:/// protocol) and it doesn't send referrals in the http requests.

I'd suggest you to use this approach (I know is not ideal because it takes more work and it will force you to have the video duplicated but is the only solution I can think of):

  • Install the Mobile app availability plugin: https://moodle.org/plugins/availability_mobileapp
  • Configure the current resource to not be available via Moodle Mobile
  • Add the same resource configured to be available via Moodle Mobile but with the video uploaded to Moodle

You'll end having the same resource two times but the user will see one of the other depending on how he is accessing to Moodle.

Another possible solution (that I'm not sure if they will work in the app) is add the embed code inside an html file hosted in the server (in a separate directory in the same domain that your Moodle site), and then instead adding the embed code in the resource add an iframe pointing to that file. In this scenario, the app will print the iframe and the video will be played from the server. Using this approach I think Vimeo would accept to play the video.

Juan

Average of ratings: Useful (2)
In reply to Juan Leyva

Re: Private Vimeo files

by John Doyle -

Hi

The iFrame approach worked fine in the mobile app. Definitely enables viewing Vimeo vids in the mobile app when domain privacy is necessary - also saved time of uploading/maintaining vids in Moodle if you already have a bunch in Vimeo and want to manage them all from Vimeo.

Depending on whether the Vimeo embed code is in a file on its own or dropped into an existing Moodle page, can take some CSS and/or JS work to position the video correctly - for example, initially used some existing material that was in a Moodle page and didn't realize the video was displaying correctly - it was there but existing CSS and elements were causing it to seem hidden.  

Hope this update helps others!

John

In reply to Juan Leyva

Re: Private Vimeo files

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

we created an issue to keep track of this:

https://tracker.moodle.org/browse/MOBILE-1511

Regards, Juan

In reply to Juan Leyva

Re: Private Vimeo files

by Bert van der Hooft -

All,

Its the same issue with Ispring.

Work around as described worked. Very time consuming though (with 1500 embedded ispring presentations).

Will  raise a change request.


Bert





In reply to Juan Leyva

Re: Private Vimeo files

by Pía Salinas -

Hi

We are a foundation in Costa Rica, using moodle for high school education in poor areas. Our lessons are embed videos from vimeo but  we had some problems for a while and can't seem to solve it. 

Im not an a IT expert and english isn't my first language but ill do my best to explain myself and hopefully someone can help us with this issues.

1- Our videos don't work on moodle mobile. It says that is because of privacy. I went to vimeo and change the privacy settings but It didnt had any effect... We need this app to work for the students and don't know what else to do.

2- When we log in from a computer, from the web page directly we can see the videos on a full screen, but when we try to do the same from a cellphone the full screen button is not available. This is how its embed: <iframe src="https://player.vimeo.com/video/262584228?title=0&amp;byline=0&amp;portrait=0" width="640" height="360" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> Does't it need to have something else to work on a cellular??


We really appreciate any help we can get


Best regards,