Giter Club home page Giter Club logo

Comments (12)

FinalAngel avatar FinalAngel commented on August 28, 2024

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.

maltebeckmann avatar maltebeckmann commented on August 28, 2024

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.

FinalAngel avatar FinalAngel commented on August 28, 2024

@maltebeckmann it seems to be working from a correct link:

http://d.pr/i/wZMf

from djangocms-video.

maltebeckmann avatar maltebeckmann commented on August 28, 2024

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.

FinalAngel avatar FinalAngel commented on August 28, 2024

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

maltebeckmann avatar maltebeckmann commented on August 28, 2024

pip freeze tells me I have djangocms-video==2.0.3

from djangocms-video.

maltebeckmann avatar maltebeckmann commented on August 28, 2024

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.

FinalAngel avatar FinalAngel commented on August 28, 2024

@maltebeckmann thats an outdated template, checkout: https://github.com/divio/djangocms-video/tree/master/djangocms_video/templates/djangocms_video/default

from djangocms-video.

maltebeckmann avatar maltebeckmann commented on August 28, 2024

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.

FinalAngel avatar FinalAngel commented on August 28, 2024

@maltebeckmann not seing swfobject being used in aldryn-video

from djangocms-video.

maltebeckmann avatar maltebeckmann commented on August 28, 2024

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.

FinalAngel avatar FinalAngel commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.