Embedding a video via script tag versus iframe

I've sucessfully embedded a youTube video before via an <iframe>, but I am having difficulty embedding a video through a <script> tag. The third party video platform that I am having to go through only offers this method of embedding so I am stuck with trying to come up with a workaround.
Here's my code (inserted into document.compositionReady):
var familyVideo = document.createElement('script');
familyVideo.type = "text/javascript";
familyVideo.src = "URL HERE";  // note: URL is propietary so I cannot share that with the forum
sym.$("familyVideoWrap").append(familyVideo);
I know that with youTube videos, the code is something as follows:
var youtubevid = $("<iframe/>");
sym.getSymbol("intro2").$("videoContainer").append(youtubevid);
youtubevid.attr('type', 'text/html');
youtubevid.attr('width', '387');
youtubevid.attr('height', '218');
youtubevid.attr('src', 'URL HERE');
youtubevid.attr('frameborder', '0');
youtubevid.attr('allowfullscreen', '0');
I've tried both methods (swapping <iframe> with <script> in the second method), and neither seem to work. Is there some sort of hold up that I am not aware of that allows us to embed <iframes> into our Edge elements, but not <script> tags? Any help is greatly appreciated.

Think what differs in the code there.
The 3 file types, the width and height - Custom fields.
The list layout of web apps is that code with those elements the tags.
Then you can insert module into template or page as you need.
Say you have a home page video. Classifcation of home so a client can easily change the video in and out via web app items...
Heaps of options.

Similar Messages

  • Is it possible to modify the tag structure tree and the role map via scripting?

    We use unstructured FrameMaker to produce training materials which we distribute as tagged PDF to meet accessibility requirements.
    When FrameMaker creates a tagged PDF, it does a fairly good job of populating the structure based on the PDF setup information for the paragraph formats in the FrameMaker documents. However, there are some limitations in the support that FrameMaker provides. For example, almost all paragraphs are assigned to the P role even if they are headings and should be mapped to H1-H6.
    We want to be able to easily post-process a PDF that has been generated from FrameMaker to fix some of the tag structure issues (including tag names and the role map) so that the PDF will provide the optimum experience for a user of the JAWS screen reader.
    I spent some time reading the SDK documentation but didn't find much information about manipulating a tagged PDF via the API, especially via scripting.
    Does anyone have any examples or references which explain how to do it?

    AFAIK, it's not possible with a script. You might want to ask in the SDK forum, as it could be possible with a plugin.

  • Embedding full-text index via Script

    Hello Everyone,
    is there possibility to create and embed full-text index into my very long document via scripting Acrobat Pro? I've searched scripting API and there are objects like catalog or index, but both have only several methods and no embeding is mentioned there. Any help is appreciated. Thank you in advance.
    Jan

    try67 wrote:
    You're better off using a real authoring application like InDesign or Word.
    Thanks, but from this statement I am not sure if we are talking about the same thing. I mean index for full-text search - allowing to get immediate results after entering the search phrase, without any delay and (often quite slow) processing of the whole content. Now it is possible to embed it via Acrobat menu. I am asking whether this action has any equivalent in scripting API. I'd like to automate this process as now I have to do it manually via GUI (but luckily for the limited number of documents only).

  • Embedded images disappear on column sorts when viewing SSRS via url in an iframe

    RE:   SQL Server - 2008 R2  Reporting Services
    We deliver an ASP.Net MVC (5) application and some of the views show/display SSRS report via url in an iframe (so the report is displayed vi the web viewer).   There are images in the header of some of these reports which display correctly on the initial
    view, but "disappear" when the user uses a report column sort and/or changes the report zoom (via the SSRS web viewer toolbar). There are other quirky behaviors as well (depending on the browser), but we are dealing with IE versions 8 thru 11.  I've
    already set the ReportViewer.aspx to use <meta http-equiv="X-UA-Compatible" content="IE=7">, and our application pages/views use <meta http-equiv="X-UA-Compatible" content="IE=edge">.
    Does anyone have a "fix" for this? I know it's related to the ReportViewer.aspx and displaying the report(s) in an iframe, but I can't seem to find any information on how to fix the issue.

    Hi,
    According to your description, when you preview report through url in an iframe, the embed images can be displayed, images can’t be displayed after users used sort and changed report zoom.
    To troubleshoot the problem, please refer to the following steps:
    Run the report in Business Intelligence Development Studio (BIDS) to make sure that the images can be displayed correctly.
    The issue may be relevant to compatibility of browser, please use different browser to check whether the issue persists.
    If you are using embedded image of jpg type, please change the extension of the image to png.
    Set the ReportViewer.aspx to use <meta http-equiv="X-UA-Compatible" content="IE=8">.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/56650bf4-e65d-4f84-8ac0-a57cb26543b2/image-disappears-when-sorting-in-ssrs-for-server-report-on-report-vieweron-aspx-page?forum=sqlreportingservices
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Dreamweaver CS6: Embedding Youtube Video causes DW to stop responding

    HI,
    I'm trying to build a simple site that displays an embedded youtube video on the main page. The video is placed in a div tag that is placed in a specific spot on the page background to make it appear as if it's playing on an old PC that's part of the image. I paste the code into the div tag in the code view and it appears as a grey box in design view. Everything seems fine up to there, however when I click live view DW CS6 stops responding and the design view window goes white. I've tried pasting the video embed code into my other page, and into a blank html document to see if it was a problem with the rest of the code but the same thing happens on any of the pages. If I save the page and preview in Chrome or Firefox the page displays the windows loading cursor for a few minutes and then returns a youtube error 6 (ERR_FILE_NOT_FOUND).
    I spent a few hours researching and found nothing via Google searches, Adobe help or Lynda.com tutorials. I'm new to web design and CSS and got as far as I did through Lynda.com lessons. Which is to say I have an index page and a seperate game guide page that links back and forth displaying images and text exactly as I'd like. Everything else works well enough only the video embedding is giving me trouble which is frustrating because according to everything I've read it's supposed to be one of the simplest processes.
    I'm really at a loss as to how to fix this issue and would appreciate any help the Adobe community can give me.
    Thanks in advance.

    Good to know,
    I fixed the problem but I'm not exactly sure why this worked. I went to a different site that uses Youtube hosted videos and tried their embed code which appeared the same to my untrained eye. But to my surprise this other video worked perfectly, so I just put the url for my video in and it worked. I'm not sure why, as far as I can tell both embed codes are the same. Both use <iframe> tags. But it works now, suffice to say I've gained some respect for the people who do this stuff day to day.

  • Powerpoint 2013 causes IExplore to crash when previewing an embedded youtube video

    Powerpoint 2013 causes IExplore to crash when previewing an embedded youtube video
    As a user with "local administrator" or "Power User"privileges the video previews the video plays, but as a normal user the following error occurs.
    Internet Explorer has stopped working
    A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
    Debug or Close Program
    Event Viewer details are as follows:
    Log Name:      Application
    Source:        Application Error
    Date:          28/01/2015 11:22:32
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:     
    Description:
    Faulting application name: IEXPLORE.EXE, version: 11.0.9600.17496, time stamp: 0x546fddcc
    Faulting module name: iertutil.dll, version: 11.0.9600.17496, time stamp: 0x546fee66
    Exception code: 0xc0000005
    Fault offset: 0x000e53a8
    Faulting process id: 0x15ec
    Faulting application start time: 0x01d03aecb5356af2
    Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
    Faulting module path: C:\Windows\syswow64\iertutil.dll
    Report Id: f311913d-a6df-11e4-bf49-8019346e8858
    Event Xml:
    < Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-01-28T11:22:32.000000000Z" />
        <EventRecordID>30194</EventRecordID>
        <Channel>Application</Channel>
        <Computer>ALMETMP566-W7.midkent.ac.uk</Computer>
        <Security />
      </System>
      <EventData>
        <Data>IEXPLORE.EXE</Data>
        <Data>11.0.9600.17496</Data>
        <Data>546fddcc</Data>
        <Data>iertutil.dll</Data>
        <Data>11.0.9600.17496</Data>
        <Data>546fee66</Data>
        <Data>c0000005</Data>
        <Data>000e53a8</Data>
        <Data>15ec</Data>
        <Data>01d03aecb5356af2</Data>
        <Data>C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE</Data>
        <Data>C:\Windows\syswow64\iertutil.dll</Data>
        <Data>f311913d-a6df-11e4-bf49-8019346e8858</Data>
      </EventData>
    < /Event>
    Process for creating a test file is as follows
    Via youtube and your preferred browser, search for any video file (eg rubik's cube), select a video and start to watch it.  Choose Share, Embed and copy the link information (eg <iframe width="560" height="315" src="//www.youtube.com/embed/MaltgJGz-dU"
    frameborder="0" allowfullscreen></iframe>)
    Close browser and create a new powerpoint 2013 presentation.
    Insert, Video, Online Video
    In the "From a Video Embed Code" box, paste the link information then click the arrow to apply
    Save the file and then Right Click on the file and Preview.
    In advance of the creation/running, I've applied the following KBs to the machine(s)
    kb2817636 & kb2837627
    As i said at the start, members of the Power Uses or Administrators group don't have this issue - but as 99% of our users are "users" and not really an option to make them all members of PU group.
    Same also happens if the computer is removed from the domain.  Admin & power users work, standard users crash IE.
    Uninstall and reinstall of Office 2013 and IE11 has no apparent difference.
    Assistance in this is appreciated.
    Thanks
    Jon

    hi Jon, do you have all available updates installed for your PowerPoint? Install the two KB in the links below, then test again:
    http://blogs.technet.com/b/bgp/archive/2014/04/09/support-for-youtube-videos-in-powerpoint-returns.aspx
    Flynn

  • Having Problems Embedding Vimeo Video

    Hello I'm having problems embedding an vimeo video onto my website.
    I have used this same method for the last two year but for some reason the last few days it won't let me do it.
    which has resulted with me reinstalling Dreamweaver twice resetting the preferences.
    the problem started originally the program wound not  link to animated Gif files so i reinstalled the program after a lot of messing around.
    this seems to do the trick but as a result the program won't embed vimeo video.
    I've been going the standard way about it.
    Draw an Ap Div tag clink inside got to code page and paste the embedding code into the place where the cursor is.
    which it looks ok in the design view then in live view the video does not appear. its same with safari and with Crome the div tag appears but no video in the tag and a message saying the file directory found not be found.
    i would be really grateful if someone could help me out with this.
    its totally baffled me and all the online help is very poor for this problem.

    Yeah mytaxsite i think thats a good idea im a little new to this as you probley can tell.
    here's the code -
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    #body {
              position:relative;
              width:1240px;
              height:922px;
              z-index:1;
              margin-right: auto;
              margin-left: auto;
    #apDiv1 {
              position:absolute;
              left:734px;
              top:184px;
              width:426px;
              height:253px;
              z-index:2;
    </style>
    </head>
    <body>
    <div id="body"><img src="images/maintemplate.png" width="1024" height="1928" /></div>
    <div id="apDiv1"><iframe src="//player.vimeo.com/video/69376439?title=0&amp;byline=0&amp;portrait=0&amp;color=0202 03&amp;autoplay=1" width="450" height="253" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>
    </body>
    </html>

  • I have added/embedded four videos on my website, but when I scroll down, the videos scroll in front of the top menu instead of behind as it should. I have tried changing layers, etc., and nothing works. Can you help?

    I have embedded 4 videos on my website. It is a single page, scrolling site. When I scroll down, the videos scroll in front of the top menu bar, instead of behind it. I have tried changing layers, etc., and nothing works. Please help.
    Thanks.
    Paul W. Norman

    Hi,
    Kindly create a new layer, via the Layers panel:
    Then, right click on the navigation bar, and choose Move to Layer > Layer 2
    Ensure that Layer 2 is on top of the other layers.
    Hope it helps,
    Sonam

  • How to disable player controls when embedding mp4 video?

    I am trying to embed a mp4 video in a web page. Is there a tag for hiding the player's controls? I want my video to loop without any display of the player controls. Also, if anyone knows of some sample code for embedding .mp4 with all available tags I would sure like to see it.
    Thanks,
    Jerry

    Hi t, I think you would find help on the Flash Forum here:
    http://forums.adobe.com/community/flash/flash_general?view=discussions&start=0
    Thanks,
    eidnolb

  • Embedded Youtube video is not playing in PDF while it is playing in Adobe Content Viewer - Indesign CC

    Hi,
    as a newby to DPS with Indesign CC, I'm currently working on a catalog that contains internal jumlinks and embedded youtube video's.
    All works fine in preview (Folio Overlay > Preview on desktop).
    Then I export to Adobe PDF (Interactive).
    When I open the PDF the internal links work just fint.
    But the Youtube video is not popping up.
    To embed the video I've inserted this code: <iframe width="640" height="360" src="https://www.youtube.com/embed/6EXxtnTOnqA?feature=player_detailpage" frameborder="0" ></iframe>
    And I've selected 'autoplay' in the Folio Overlays
    So what am I missing here?
    Thanks for you help,
    Dimitri

    Hi Bob,
    Like I said I'm a Newby, I even don't really understand what you mean with this.
    I'm working in de Digital Publishing toolset (I thought that was DPS).
    I use Folio Overlays over the embedded youtube code, with autoplay on.
    Than I export to PDF interactive, but neither Adobe reader, nor Preview is showing the vid.

  • Embedded Youtube Video's not Playing in Web Viewer

    I have several YouTube videos embedded in my folios. They all play fine when being viewed in the app, but if the folio is shared (by any channel) and viewed in the web viewer these videos won't play. Instead the user is greeted by this error:
    Not found
    Invalid character in path
    I know that other apps using embedded youtube videos are playing just fine in the web viewer (I check out Wired) so I'm curious why mine are broken.
    Any thoughts?

    This streaming YouTube example works fine in DPS Tips web viewer:
    http://contentviewer.adobe.com/s/DPS%20Tips/7f80a0ffed3a4ff08734bc905aac4a29/Advanced_Over lays/29_Video_Stream.html
    Here's the embed code I used:
    <iframe width="640" height="360" src="http://www.youtube.com/embed/QV1UZ-88HeE?rel=0" frameborder="0" ></iframe>
    Are you using the same embed code format for your overlay?

  • Embedding youtube videos on my DM created site

    I am having problems embedding Youtube videos in my
    website create with DM.
    I successfully embedded one video clip at
    photoresources-sf.com/equipment/html (I shot the clip)
    When I attempted to add more youtube videos, I could not make
    it happen. I followed the instructions. and when I placed the embed
    code in the code area of my site the embed code text color was all
    black and the code showed up in the table on my page.
    When I started up DW today I received a dialog box that
    states
    "this page contains <object> tags that may not work
    properly in the most recent versions of IE. DM cannot convert the
    <object> tags!"
    Does this mean I can not embed my videos or other videos from
    youtube on my site?
    How can I get around this problem?
    thanks,
    confused bill

    I think the website is
    http://www.photoresources-sf.com/equipment.html.
    Just had a look and the video is loading okay for me. I remember
    having the same issue with a child page of a template - but I
    simply ignored DW's prompt each time. Not sure the pros will see
    that as the best solution thos :p

  • Exporting correct Hex colors via scripting

    Hello all,
    I need to export the fillColor of a paragraph style via scripting.
    I can get the fillColor property of the paragraph style, and can also convert CMYK to Hex. However, I do realize that the color values shown in InDesign are in whatever Color Space the document is using.
    My question is, is there a native API to convert the color values to a web safe color value? If not, how do I go about mapping the colors?
    Additionally, I see that Adobe internally knows how to convert it to a proper hex color (screenshot attached - note the color property in the Export Tagging pane). If I cannot use some native API, is there a way to access the text in that pane?
    Thanks all, in advance!

    @DerKäse (btw. funny name) – there is an add() method for colors that will take a Object Color as argument.
    Use that for your purpose.
    Here an example for RGB:
    var myDoc = app.documents[0];
    var myColorName = "myNewRGBColor";
    if(!myDoc.swatches.itemByName(myColorName).isValid){
        var myNewColor = myDoc.colors.add(
                name:myColorName,
                colorValue:[255,255,0], //A bright yellow
                model:ColorModel.PROCESS,
                space:ColorSpace.RGB
    Here one for CMYK:
    var myDoc = app.documents[0];
    var myColorName = "myNewCMYKColor";
    if(!myDoc.swatches.itemByName(myColorName).isValid){
        var myNewColor = myDoc.colors.add(
                name:myColorName,
                colorValue:[0,0,100,0], //A bright yellow
                model:ColorModel.PROCESS,
                space:ColorSpace.CMYK
    Hope, that helps…
    Uwe

  • Embedded swf video is cropped off

    I'm embedding a video from smugmug. When I post it on another site (not iWeb generated) it posts okay. But with iWeb the video is cropped off on the right. I was told that the "holding area" width needs to be changed, but I don't know how to do that. I'm assuming that is referring to the Web Widget dimensions, but it gets sized according to the size of the embedded video. Here is the source code:
    <object width="425" height="318"><param name="movie" value="http://www.smugmug.com/ria/ShizVidz-2008050901.swf" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="flashVars" value="s=ZT0xJmk9MzI5MzIwNzM1Jms9dWltcXomYT00MDA2MjQwXzhoSnlOJnU9dXBkZWZvcnVt" /><embed src="http://www.smugmug.com/ria/ShizVidz-2008050901.swf" flashVars="s=ZT0xJmk9MzI5MzIwNzM1Jms9dWltcXomYT00MDA2MjQwXzhoSnlOJnU9dXBkZWZvcn Vt" width="425" height="318" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always"></embed></object>
    Can anyone help me? Thanks.

    According to the source of the page the width is 350 and the height is 400.
    <div class="com-apple-iweb-widget-HTMLRegion" id="widget1" style="height: 400px; left: 175px; position: absolute; top: 14px; width: 350px; z-index: 1; ">
    <iframe id="widget1-frame" src=".//Homefiles/widget1markup.html" frameborder="0" style="width: 100%; height: 100%;" scrolling="no" marginheight="0" marginwidth="0" allowTransparency="true"></iframe>
    </div>
    I suggest you delete the widget and add a new one. Paste the code of your flash movie and click Done.
    iWeb will create a box the size of the movie.

  • Generating script tag from Custom JSF Tag

    Hi,
    I am new to JSF Custom Tags. I developed a Custom tag. It's quite a fun to make your own custom tags . Now I have to use some javascript for my custom components. The inline javascript calls are no issue for me. But I want my javascript be embedded in a <script> tag automatically. So that I don't have to explicitly add my javascript into <script> tag, instead, it is automatically included in the page where my tags are being used. How can this be achieved?
    Regards,
    Kashif

    Anchors don't have a type="submit". You should be basing this on an h:commandLink. In fact you could probably rewrite it all as an XML tag that just generates an h:commandLink.

Maybe you are looking for

  • Where to find after "Archive and Install"

    Hi everyone. I recently installed Leopard onto my Macbook. During the process, I used the archive and install feature to save all of my old data and files. Right now everything is located in the "Previous System" folder on my hard drive. I am trying

  • How do I change the icon of a usb?

    I just recently updated to OS X Mountain Lion, and it doesn't seem to let me change the icons of my usb drive. I use .icns type files, but it comes up as an ugly broken image. Anyone else have this problem? Any help would be very much appreciated.

  • BW -  Can Wild Carding be done  with Variables or what ?

    Hello All, Topic is "Can Wild Carding be done in BW" ? Need direction and solutions to this question. My definition is the abiliy to select key data within a  characteristic to generate a report. The data can be any part of the characteristic. An exa

  • WM Process flow

    Hi, What are the settings are required for extending the WM module in our Plant. Could you please tetll me the process  flow and transaction code , movement types to be used in WM scenarios. Please do the needful. Thanks.

  • BAPI to file

    Dear Experts, I have a scenario in which i have to integrate SAP EH&S and MDM through XI. For extraction purposes i'm using a BAPI which will extract the substance data based on a substance id. This data is then sent to a xml file in MDM. My query is