Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Embedding a file ?

    Anyone here know about embedding a file please ? How do you embed :

    http://link.brightcove.com/services/...id=21337502001

    into a website please ?

    Any help appreciated.

    Saz.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    I guess I'm confused by the question. Viewing the source code of your link shows how to embed the player and video:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>NEWS DEFAULT VIRAL ST_UIP</title>
    <meta name="robots" content="index,follow,noarchive" />
    <style type="text/css">body {background-color: #ffffff;margin:0px;padding:0px;}</style>
    </head>
    <body>
    <!-- Start of Brightcove Player -->
    <div style="display:none">
    
    </div>
    <script src="http://admin.brightcove.com/js/experience_util.js" type="text/javascript"></script>
    <script type="text/javascript">
     // By use of this code snippet, I agree to the Brightcove Publisher T and C 
     // found at http://corp.brightcove.com/legal/terms_publisher.cfm. 
    
     var config = new Array();
    
     /* 
     * feel free to edit these configurations
     * to modify the player experience
     */
     config["videoId"] = null; //the default video loaded into the player
     config["videoRef"] = null; //the default video loaded into the player by ref id specified in console
     config["lineupId"] = null; //the default lineup loaded into the player
     config["playerTag"] = null; //player tag used for identifying this page in brightcove reporting
     config["autoStart"] = false; //tells the player to start playing video on load
     config["preloadBackColor"] = "#FFFFFF"; //background color while loading the player
     
    
      /* 
     * set the player's size using the parameters below
     * to make this player dynamically resizable, set the width and height as a percentage
     */
     config["width"] = 486;
     config["height"] = 412;
     
     /* do not edit these config items */
     config["playerId"] = 1137883380;
     
     createExperience(config, 8);
    </script>
    <!-- End of Brightcove Player --></body></html>
    Copy and paste that code into your page and you should have video working. Do you have a link to a test page to show what you have been trying?
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thanks, but tried that and still doesn't work ?

    http://130609.com/embedding/

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    It looks like the player gets loaded but it just can't find the video. Check your video URL next and make sure that it is correct.

    Edit: Wait, nevermind, I see that it is generated by the javascript. Hmmm. I will take a look again in a little while but I have obligation to meet right now.
    Last edited by Rowsdower!; 10-28-2009 at 02:29 PM.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rowsdower! View Post
    It looks like the player gets loaded but it just can't find the video. Check your video URL next and make sure that it is correct.

    Edit: Wait, nevermind, I see that it is generated by the javascript. Hmmm. I will take a look again in a little while but I have obligation to meet right now.
    Thanks, is it an easy fix ?

  • #6
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    OK, here it is.

    When I compared the video filepaths between your page and the example page I noticed two differences. Your filepath was missing two variables:
    Code:
    videoId=21337502001
    fromLink=true
    The second one is not important, but not having the first one is quite a big deal.

    The file path to the video is being generated dynamically by the javascript. The javascript is reading the referring URL for a string to identify WHICH video to play. This means that your URL will have to contain the video id.

    To illustrate what I am talking about, try pasting this URL into your address bar:
    http://130609.com/embedding/?bctid=21337502001

    Whatever value bctid has becomes the value for videoId so your video should start to play even though NONE of your code has changed...
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #7
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thanks, but what would the correct, full code be please ?

    It's currently :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Language" content="en-gb">
    <title>test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="/styles.css">
    </head>
    <body>
    <table>
    <tr>
    <td>
    <!-- Start of Brightcove Player -->
    <div style="display:none">

    </div>
    <script src="http://admin.brightcove.com/js/experience_util.js" type="text/javascript"></script>
    <script type="text/javascript">
    // By use of this code snippet, I agree to the Brightcove Publisher T and C
    // found at http://corp.brightcove.com/legal/terms_publisher.cfm.

    var config = new Array();

    /*
    * feel free to edit these configurations
    * to modify the player experience
    */
    config["videoId"] = null; //the default video loaded into the player
    config["videoRef"] = null; //the default video loaded into the player by ref id specified in console
    config["lineupId"] = null; //the default lineup loaded into the player
    config["playerTag"] = null; //player tag used for identifying this page in brightcove reporting
    config["autoStart"] = false; //tells the player to start playing video on load
    config["preloadBackColor"] = "#FFFFFF"; //background color while loading the player


    /*
    * set the player's size using the parameters below
    * to make this player dynamically resizable, set the width and height as a percentage
    */
    config["width"] = 486;
    config["height"] = 412;

    /* do not edit these config items */
    config["playerId"] = 1137883380;

    createExperience(config, 8);

    </script>
    <!-- End of Brightcove Player -->

    </td>
    </tr>
    </table>
    </body>
    </html>

  • #8
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    You don't need to modify your code at all. Whatever code you already had on your test page was working. If that's the same as what you posted here then yes, that's the full working code (I haven't compared them side-by-side).

    All you need to do to make a video play in your already existing page is add ?bctid=21337502001 to the end of your URL whenever you are navigating to your test page.

    That's not very convenient, I admit, but it's just how that javascript works when it loads the player.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #9
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Many thanks for keeping with this. It would be great if there was a neater way of doing it really.

    I did try putting ?bctid=21337502001 at the end of the name of the folder, but then got a message that said that certain characters weren't allowed, like ?'s

  • #10
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    No, not at the end of the folder, at the end of the URL. Rowsow...flame man already provided the URL you need to use to access the page.

    http://130609.com/embedding/?bctid=21337502001

    The question mark signifies that what follows is a variable being passed onto the page. If you want to hide this, you'll have to use something called URL rewriting.

  • #11
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    You are misunderstanding me. There is nothing that you need to change about your file name, file folders, or source code on that page. The ONLY thing that dictates the file to be played is the string that the visitor to your website enters into their browser's address bar.

    The only possible control you have over this is including the ?bctid=21337502001 part in links to your video page.

    So instead of linking people to your video page like this:
    <a href="http://130609.com/embedding/">View the Video</a>

    You would do it like this:
    <a href="http://130609.com/embedding/?bctid=21337502001">View the Video</a>

    That's all you can do with this script to make it work as is. Now, if you are trying to do something like embed this video into your home page then that WILL NOT work like this. You might be able to save a local copy of the javascript and edit it to work the way you need it WITHOUT having your URLs look screwy but I haven't read the script thoroughly enough to say for certain.

    What exactly are you intending to do with this embedded player? Do you need this particular player or are you OK with using some other FLV player?

    If you are open to other players then I would recommend the JW FLV Player by Longtail.

    Edit:
    Quote Originally Posted by Apostropartheid View Post
    No, not at the end of the folder, at the end of the URL. Rowsow...flame man already provided the URL you need to use to access the page.

    http://130609.com/embedding/?bctid=21337502001

    The question mark signifies that what follows is a variable being passed onto the page. If you want to hide this, you'll have to use something called URL rewriting.
    Yes, this is what I mean to say but I type too slowly...
    Last edited by Rowsdower!; 10-28-2009 at 09:36 PM.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #12
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rowsdower! View Post
    You are misunderstanding me. There is nothing that you need to change about your file name, file folders, or source code on that page. The ONLY thing that dictates the file to be played is the string that the visitor to your website enters into their browser's address bar.

    The only possible control you have over this is including the ?bctid=21337502001 part in links to your video page.

    So instead of linking people to your video page like this:
    <a href="http://130609.com/embedding/">View the Video</a>

    You would do it like this:
    <a href="http://130609.com/embedding/?bctid=21337502001">View the Video</a>

    That's all you can do with this script to make it work as is. Now, if you are trying to do something like embed this video into your home page then that WILL NOT work like this. You might be able to save a local copy of the javascript and edit it to work the way you need it WITHOUT having your URLs look screwy but I haven't read the script thoroughly enough to say for certain.

    What exactly are you intending to do with this embedded player? Do you need this particular player or are you OK with using some other FLV player?

    If you are open to other players then I would recommend the JW FLV Player by Longtail.

    Edit: Yes, this is what I mean to say but I type too slowly...
    Many thanks to your goodself and Apostropartheid for the help. I must admit to getting a tad confused, but am sticking with it

    I'm not really fussed which player is used, I just want visitors to my home page to be able to view it straight away, without going to another website.

    I do have access to my .htaccess if it helps with any re-writing.

    The helps appreciated.

  • #13
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    If anyone has any ideas on it, please let me know.

  • #14
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Like I said in the last post, I would recommend you use the JW FLV player (found here) and then feed in the correct URL for the video that you want to play.

    Give this a try and if you can't make it work post back with a link to your new test page so we can see what you have tried.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #15
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thanks, but don't the users viewing the page, need to have that installed on their pc as well ?


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •