Comments (12)
Hello @maltebeckmann it should work with any video that supports embed, djangocms-video basically renders the video as an iframe. A quick search reveals that you have to use something like:
http://player.youku.com/player.php/sid/XNDYwMTEzMTY0/v.swf
from djangocms-video.
Yes, that's the URL format I used. Am I just not posting this correctly: I suppose it needs to be entered in the Embed Video link field. Can you confirm this works for you?
from djangocms-video.
@maltebeckmann it seems to be working from a correct link:
from djangocms-video.
Ok, I am finally getting a proper error message! Had some horrid DNS issues here.
I am getting a /static/cms/js/libs/swfobject.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
I am noticing that my browser is looking for
/static/cms/js/libs/swfobject.min.js
and
/static/cms/swf/player.swf
Both files are located under /cms/ but aren't there, despite me running collectstatic. Am I missing some config step?
from djangocms-video.
@maltebeckmann that is awkward @maltebeckmann swfobject was required in previous versions of djangocms-video. Are you sure you are using >=2.0? The newer versions only use HTML5 video and are not requiring swfobject anywhere.
from djangocms-video.
pip freeze tells me I have djangocms-video==2.0.3
from djangocms-video.
This is the page code that is being generated:
script type="text/javascript" src="/static/cms/js/libs/swfobject.min.js"></script
script type="text/javascript">//<![CDATA[
var flashvars = {};
flashvars.movie = "https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=d0364y40wcp&auto=0" allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash";
[...]
swfobject.embedSWF("/static/cms/swf/player.swf",
"flash-plugin-321",
"320", "240",
"9", "/static/cms/swf/expressInstall.swf",
flashvars, params, attributes);
//]]></script
from djangocms-video.
@maltebeckmann thats an outdated template, checkout: https://github.com/divio/djangocms-video/tree/master/djangocms_video/templates/djangocms_video/default
from djangocms-video.
I found the exact same files under ~/.virtualenvs/eclink_env/lib/python3.4/site-packages/djangocms_video/templates/djangocms_video/default
But I do have aldryn-video==1.0.0 installed. Could that be interfering?
or an interference with cmsplugin_filer_video?
I don't have any missing migrations either.
from djangocms-video.
@maltebeckmann not seing swfobject being used in aldryn-video
from djangocms-video.
I commented out cmsplugin_filer_video and that seems to have removed the old template stuff.
However, now I am getting a message in Chrome dev tools saying:
Resource interpreted as Document but transferred with MIME type application/x-shockwave-flash: "http://static.youku.com/v1.0.0684/v/swf/loader.swf?VideoIDS=XNDYwMTEzMTY0&w…526type%253D0%2526embsig%253D1_1484560838_a7115a5e0c44e085f42b23528b438d5f".
from djangocms-video.
yeah thats something that comes from youku directly, the only alternative there would be to use their api and rewrite the frontend of djangocms-video to use that.
Closing now :)
from djangocms-video.
Related Issues (20)
- swfobject.min.js no longer exists in `cms/js/libs` HOT 2
- Setting for default template HOT 8
- aldryn_search indexing incompatibility HOT 2
- It's quite hard to embed a YouTube video HOT 3
- Migration issue with PostgreSQL HOT 2
- 2.0.4 is not on pypi HOT 1
- Embedded URL using https is striping incorrectly HOT 1
- Adding source files when using the Text CKEditor plugin. HOT 3
- Add supporting query parameters for youtube embed link HOT 1
- Do not install tests HOT 2
- version 2.2.0 is not on pypi HOT 1
- By default the player has minimal size, eg 100x100 pixels, and editors don't know how to fix it HOT 1
- Failing Lint/Flake8 Test for GitHub Actions HOT 1
- Error when setting DJANGO_VIDEO_TEMPLATES: NameError: name '_' is not defined HOT 1
- How to set player size ? Not possible to set size and it is not responsive. HOT 1
- Don't really understand your instructions HOT 5
- Adding vimeo players is not working
- Django 4.2/DjangoCMS 3.11 support HOT 4
- YouTube Video not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djangocms-video.