跳至内容
菜单
此问题已终结
5 回复
7846 查看

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.

形象
丢弃
最佳答案

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.

形象
丢弃

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

最佳答案

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

形象
丢弃

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

最佳答案

we have module that support local uploaded videos too

形象
丢弃
编写者 最佳答案

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])


形象
丢弃
最佳答案

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 ...

形象
丢弃

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

相关帖文 回复 查看 活动
2
7月 23
2573
1
10月 22
6387
2
5月 25
8994
2
3月 22
5280
2
12月 21
9970