Need a programmer for video embed issue. Quick job.

Discussion in 'Programming' started by mynameisdi, Jan 4, 2009.

  1. #1
    Ok, my website has these code for video output

    THEY DO NOT WORK THE WAY I WANT THEM TO. They freeze up my javascript (my website is all in ajax) and I can't do anything while the videos are loading.

    Code variation 1

    <iframe src="/ajax.moduled.php?option=video&name=<?=$vInfo[0]['filename']?>.flv" width="635" height="410" frameborder="0">Browser does not support iframes</iframe>

    Code variation 2

    <div id="videoLocation" class="hid"> /image.out?stream=<?=$vInfo[0]['filename']?>.flv </div>

    What I NEED is to turn this code into a youtube style embed, because youtube style embeds work perfectly on my site.

    How it SHOULD look (or similar to this one)
    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    I tried copy/pasting the source links, but didn't really help.

    This is a quick $10 for someone who knows what's going on.

    PM me for additional info.
     
    mynameisdi, Jan 4, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    As Seller:
    100% - 3
    As Buyer:
    100% - 0
    #2
    try this

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/<?=$vInfo[0]['filename']?>&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/<?=$vInfo[0]['filename']?>&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
     
    crivion, Jan 4, 2009 IP
  3. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    My website IS NOT youtube.
     
    mynameisdi, Jan 4, 2009 IP
  4. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Then you need some mod_rewrite to make the url valid and flash video player to play your .Flv files. You should embed this flash video player, not the flv itself.
     
    chmdznr, Jan 4, 2009 IP
  5. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #5
    yes you need a flash player and then embed it in flash player

    chmdznr gave you the right solution and hence he need to be paid!

    Regards

    Alex
     
    kmap, Jan 4, 2009 IP
  6. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Give me the code that will WORK and I will pay you!

    My flash player location is

    "/misc/flvplayer.swf" if that helps.
     
    mynameisdi, Jan 4, 2009 IP
  7. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Update, here is the full source code of what I have right now

    <p id="videoPlayer"><embed type="application/x-shockwave-flash" src="/misc/flvplayer.swf" style="" id="single" name="single" quality="high" allowfullscreen="false" flashvars="file=/image.out?stream=10371.1231083501.flv&amp;logo=/misc/watermark2.png&amp;linkfromdisplay=true&amp;displayheight=400&amp;backcolor=0x000000&amp;frontcolor=0xCCCCCC&amp;lightcolor=0x557722&amp;autostart=true&amp;width=500&amp;height=400" width="500" height="400"></p>
     
    mynameisdi, Jan 4, 2009 IP
  8. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Ok, here is what I came up with and it works... but still for some reason freezes my ajax site

    <object width="425" height="344"><param name="movie" value="/image.out?stream=<?=$vInfo[0]['filename']?>.flv"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="/misc/flvplayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344" flashvars="file=/image.out?stream=<?=$vInfo[0]['filename']?>.flv"></embed></object>

    While the common youtube embed code doesn't free my ajax site:

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    what's up with that?
     
    mynameisdi, Jan 4, 2009 IP
  9. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    This is the best I can do:
    1. try to change your flv player to jw flv player (open source). Download here: http://www.longtailvideo.com/players/jw-flv-player/
    2. the implementation is quite simple, for example (open samurai_jack_opening.flv):
    
    <embed 
      src="player.swf" 
      width="300"
      height="300"
      allowscriptaccess="always"
      allowfullscreen="true"
      flashvars="file=samurai_jack_opening.flv&autostart=false"
    />
    
    Code (markup):
    Demo : http://www.vrank.org/flv

    If it work, I'm I deserve to get the $10? :p
     
    chmdznr, Jan 4, 2009 IP
  10. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    No, it still freezes up the javascript on the page :(
     
    mynameisdi, Jan 5, 2009 IP
  11. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    Can I see your site?
     
    chmdznr, Jan 5, 2009 IP
  12. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    Ok, update of the status of this issue.

    It seems that my site freezes up whenever I point the flv source to the actual source (direct link) of the flv.

    This is not a problem with YouTube videos as they do not point directly to the flv.

    Alternate solution -- a player that doesn't conflict with javascript. Can anyone find this for me?
     
    mynameisdi, Jan 10, 2009 IP
  13. manjifera

    manjifera Well-Known Member

    Messages:
    232
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    118
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #13
    <embed src="http://www.longtailvideo.com/files/player.swf?file=Here your file link" width="500" height="300" >

    This will help you! just adjust size!
     
    manjifera, Jan 10, 2009 IP
  14. ConquestYoutube

    ConquestYoutube Peon

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #14
    If you need help contact me at conquestyoutube@gmail.com
     
    ConquestYoutube, Jan 10, 2009 IP
  15. mynameisdi

    mynameisdi Banned

    Messages:
    977
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #15
    mynameisdi, Jan 11, 2009 IP
  16. Shirley1874

    Shirley1874 Peon

    Messages:
    558
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #16
    How about this flash video player maker? I often use it to put training videos to our support site, and it works well. But I don't know if it will conflict with javascript or not. Hopefully it can help you.
     
    Shirley1874, Jan 12, 2009 IP