ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Path to video doesn't render

July 07, 2007 10:08am

Subscribe [2]
  • #1 / Jul 07, 2007 10:08am

    sycogo

    6 posts

    I’ve built a custom flv player for my site that I want to feed video using an EE XML template.  I’ve created a weblog with a custom field set that includes the field “Video”.  I’ve also created an upload directory that is set up in the preferences.

    So, I go to the publish section, create a new entry, upload a video, set it to go into the “Video” field and it appears in that field as https://ellislab.com/asset/images/ent-partner-logo/nameofthemovie.flv.  All this is fine and exactly what I would expect.  Except that the movie player doesn’t work.  I thought I’d done smething stupid in Flash but I’m not so sure.

    The problem is, when I load the template for the XML feed in my browser the field for the video renders as https://ellislab.com/asset/images/ent-partner-logo/nameofthemovie.flv.  https://ellislab.com/asset/images/ent-partner-logo/ hasn’t been relaced by the actual path to the video file and this would probably explain why videos aren’t loading up into the flash player.

    Can anyone help please?  What am I missing???

  • #2 / Jul 07, 2007 2:26pm

    allgood2

    427 posts

    can you post code?

  • #3 / Jul 07, 2007 2:34pm

    sycogo

    6 posts

    The EE XML template I’ve made looks like this:

    <code><videoprofiles>
    {exp:weblog:entries weblog="artist_profiles" rdf="off"}
    <artist_title>{title}</artist_title>
    <artist_video>{artist_video}</artist_video>
    {/exp:weblog:entries}
    </videoprofiles></code>

    I’m not sure what else I could post that would help you.  I’ve built a simple playback module in Flash that uses and XML connector.  I have no reason to think that it doesn’t work.  It seems that the crux of the problem is that EE isn’t replacing https://ellislab.com/asset/images/ent-partner-logo/ with the actual path so it would seem to be a problem before it even gets to the XML feed.

    If I preview the entry in the Control Panel then it shows correctly, with the path!

  • #4 / Jul 07, 2007 3:16pm

    allgood2

    427 posts

    So the file info is in the {artist_video}?  I’d check to make sure you’re using the most current build of EE, just to see if it’s a bug.  But in the meanwhile, you could just place the path in the code like:

    <code><videoprofiles>
    {exp:weblog:entries weblog="artist_profiles" rdf="off"}
    <artist_title>{title}</artist_title>
    <artist_video>http://www.mysite.com/downloads/videos/{artist_video}</artist_video>
    {/exp:weblog:entries}
    </videoprofiles></code>

    Only storing the file name in the {artist_video}.

  • #5 / Jul 07, 2007 3:25pm

    sycogo

    6 posts

    Thanks, that’s a good workaround.  I’ll use that to test it and then see if I can get it to work the other way at a later date.  I’ll update to the latest build too.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases