Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
8099 Vizualizări

Is Elearning vedio type only support youtube and google?

If  I build a file server with IIS or some others, some mp4 files in this folder, I can use chrome to play it.

Does Elearning support to add vedio url like use my own file server or media server.

You know some area can't use any youtube and google service.

Imagine profil
Abandonează
Cel mai bun răspuns

You explain more what Anisha was posting about:


You can add any external link in a Course like this:



You then edit the Course Page to add a screenshot and some text, so your students see this:

When the click the VIDEO link, they will see your content in another Tab.

Imagine profil
Abandonează

ok, that's true that Anisha answer about "external links", but the initial question was about "Elearning video type",

anyway, your turnaround is interesting, thanks

Cel mai bun răspuns

Hello there, 

You can add video in Odoo E-learning via any external links. YouTube is one of an external link to add video. 

Thanks

Anisha Bahukhandi

Imagine profil
Abandonează

That's not that simple : it clearly doesn't work for me !

I checked your answer quite deep in the code odoo v13 and it is simply wrong

Cel mai bun răspuns

we have module that support local uploaded videos too

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thank you for your answer

But when I add content like this "https://v.youku.com/v_show/id_XNDQ0NTYwODgwNA==.html".
And I had try many urls, it's always tips like this "Could not fetch data from url. Document or access right not available: Unknown document".

And in the source codes, there are so many codes about youtube and google. 

url = fields.Char('Document URL', help="Youtube or Google Document URL")
document_id = fields.Char('Document ID', help="Youtube or Google Document ID")

def _find_document_data_from_url(self, url):
url_obj = urls.url_parse(url)
if url_obj.ascii_host == 'youtu.be':
return ('youtube', url_obj.path[1:] if url_obj.path else False)
elif url_obj.ascii_host in ('youtube.com', 'www.youtube.com', 'm.youtube.com'):
v_query_value = url_obj.decode_query().get('v')
if v_query_value:
return ('youtube', v_query_value)
split_path = url_obj.path.split('/')
if len(split_path) >= 3 and split_path[1] in ('v', 'embed'):
return ('youtube', split_path[2])


Imagine profil
Abandonează
Cel mai bun răspuns

I have the same issue. I tried with a simple .mp4 file in a directory with free access on internet and a quite small file : 3Mbytes.

The result is the same : "Could not fetch data from url. Document or access right...."

I searched into the code and found the same function as @youngTl in the odoo v13 code :

the only url authorized are from : 'youtube.be', youtube.com', 'www.youtube.com', 'm.youtube.com'
and docs.google.com and drive.google.com with some /d/ in it's url
everything else will return the error we got.

I didn't found the trick to get it from drive.google.co.

but after some difficulties, I succeded to do it with this url : https://drive.google.com/file/d/1AeaRXWV2Jg1K0jqC6Nlm4YQvO7XZamn5/view

so I succeeded to register my video in my lesson, but when I when to display the video I get this error : "Video unavailable This video has been removed by the uploader" despite the fact that the video works perfectly if I put the url directly into my browser : here, even the error message is wrong !

At the end of the day, I think that Odoo accepts only "Youtube or Google Doc URL" : it uses the url only to extract an id of document which is specific to youtube for the videos and at the end it only accepts to cast Youtube videos. Why ? It's a pity, isn't it ?

And at the end of the end of the day, as a workaround, I put my video as an additional link in an empty lesson. By this way, my students can cast it ...

Imagine profil
Abandonează

Any external URL that a browser can render is acceptable - please see my answer.

Related Posts Răspunsuri Vizualizări Activitate
2
iul. 23
2873
1
oct. 22
6728
2
mai 25
9279
2
mar. 22
5569
2
dec. 21
10223