Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt 19 posts 49 karma points
    Apr 08, 2013 @ 14:21
    Matt
    0

    Display FLV on website

    I had some success earleir displaying an flv movie on my home page, however it only worked in firefox.

    After some googling, I came up with this;

    http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/XSLT/Embed_FlashPlayer

    I created that macro and installed it, but when I now open my page, I get no video. Looking at the page source, the video width and height are set correctly, but wherever there is a src= attribute, there is nothing.

    I have set up the 3 properties that the page asks for FlashFile, width and height. but no matter what combination of casing / typos I try I can't get the flashFile to pull through. So, what am I doing wrong, or is there an easier way to display flv movies across all browsers than using that macro?

    (All I have is the flv. Ideally I'd like it to auto start, and maybe even not show the controls on the screen.)

    As an update here; I have managed to debug the xslt, and if I replace

    $flashFile/node/data [@alias='umbracoFile']"

     

    with the umbraco file id then the file name is now being rendered to the page, however the flash player insists that no movie is loaded.

     

  • gary 385 posts 916 karma points
    Apr 09, 2013 @ 00:44
    gary
    0

    Hi Matt

    Was playing with this a while ago and came up against the same thing - from memory, there is an issue with where the video is called from, like it has to be on the web, so a youTube video is ok, but if you try to call from say a folder from within your site, it won't load.

    At that point I went a did something else and haven't returned. But it may have been that I was on localhost, but it may also be that the src needs a http in the src, sorry can't be more accurate, my memory is defo going,  but it may help you along a bit.

    Think what I am trying to say is that I remember it not being an Umbraco issue, but as you are finding, it is to do with the src and what is in it.

    regards

    G

  • Matt 19 posts 49 karma points
    Apr 09, 2013 @ 08:59
    Matt
    0

    Thanks Gary. To be honest, I need to be able to play the video from the media section, so either I have to delve into some xslt, or try a different approach to getting the necessary bits on the page. Guess I'll try some of the free packages and see if one of those works.

  • gary 385 posts 916 karma points
    Apr 09, 2013 @ 09:55
    gary
    100

    Hi Matt

    Just to tie things up a bit, I was using this src, wouldn't play

              <source type="video/ogv" src="http://localhost:15738/luz6/css/Images/gizmo.ogv" />
    

    This was with FlowPlayer, but did find that the request has to be like http://www.domain.com/images/gizmo.ogv.

    So if I put a video onto a live site, then request it, it will play, but "embedded" in localhost, it wont.

    If you check the packages, look at that call, because what you have may work, if it comes from the right place, if you get my meaning.

    So, you can use the Media section, but the call must be http, not ../ or ~/. Therefore is must be a "live" site. Or absolute, not relative.

    For example, if you link to a youTube video, it will play in your current set up, so it is only the "call" that differs.

    Sorry, this is not that easy to explain - have done my best, so hope it helps.

    G

     

  • Matt 19 posts 49 karma points
    Apr 09, 2013 @ 10:08
    Matt
    0

    No Problem, it does make sense, and I did wonder if it was because I was working local.

    In teh end I downloaded a package that wrapped flowplayer into a macro, and allowed me to play directly from the media library. Then all I had to do was to figure out how to change the maximum upload limit in iis and on the site and it all worked. (Having to add 2 seperate keys in the config file in different places took a few minutes to figure, but its all working now thanks)

  • gary 385 posts 916 karma points
    Apr 09, 2013 @ 10:10
    gary
    0

    Hi

    NIce one! Good to hear of success.

    Need to sort mine soon, so if I have any issues, will give you a shout.

    Cheers Matt, have a good day.

    G

Please Sign in or register to post replies

Write your reply to:

Draft