How to embed a Youtube video into a Flex application

Youtube provides an url and a section of html div code for embedded in html. But they do not work within Flex.
I may be able to use ExternalInterface to call a HTML iFrame that embed the URL. But any better ways?
Youtube uses Flash Player. Can we access the FLV file directly? Any suggestions?

hi,
create loader(s) or use SWFLoader and use runtime loading to load different YouTube players into your Flash (flex based) movie:
http://code.google.com/apis/youtube/flash_api_reference.html
There are samples in TourDeFlex - but they are currently all but broken 404 (including standalone air applicaton version):
http://www.adobe.com/devnet/flex/tourdeflex.html
(see section "Could Api > YouTube" - maybe it will work soon),
regards,
Peter

Similar Messages

  • How Do Embed a YouTube Video into the Video Gallery Lightbox Widget

    I just downloaded the VGL widget at Video Gallery Lightbox | Exchange | Adobe Muse CC . I'm able to change the picture but have not figured out how to embed the video. The instructions say it can be changed "via an "insert html" but when I do this I just get another video inserted into the page. Help!!!

    Select the composition and go to composition options > enable "show lightbox parts while editing".
    Now select the target container and remove existing video and insert video html in that container. This way you can change the videos.
    Thanks,
    Sanjit

  • How to embed a YouTube video in keynote on ipad2

    I am new to using keynote on the ipad2 and wanted to know the steps, if there are any, to embed a YouTube video into keynote.  Any suggestions?

    Yes, and if that presents any problems, you do have the You Tube application already installed on iPad.  It is a native application and you can watch any You Tube video through this app. 
    Safari is a great webrowser.  But if you want to wach any videos on iPad, find the App in the App store and you won't have any issues.  For example, you could be on CNN.com through Safari and if you try to click on a video, you likely won't be able to watch it.  But, if you download the CNN app from teh App Store, you'll be able to watch all CNN videos through the App.  It is a really logical and safe way to see what you want to see. 

  • How do I put youtube video into iMovie for editing?

    Trying to upload a youtube video into iMovie so I can edit it...how do I do this?

    Trying to upload a youtube video into iMovie so I can edit it...how do I do this?

  • How to embed a mp4 video into a pdf with acrobat pro XI?

    I'm  trying to embed a mp4 video into a pdf using Acrobat Pro XI.  When I try to play the video, all I see is a black box. The video is H.264 codec. I've tried on a PC and Mac and get the same results.

    Video playback in the Acrobat Family uses Flash Player, so if it works in FP (loaded via an HTML page) then it should work in your PDF. First suggestion is to use the free MediaInfo tool to check exactly what the internal structure reports as.

  • How to embed a swf video into an html page?

    I am haing trouble embedding my swf video into my html page. Here is my code:
    <embed height="340" width="549" src="flashvideos/test.swf" allowscriptaccess="always" allowfullscreen="true" flashvars="&amp;MM_ComponentVersion=1&amp;skinName=C:/Users/RogerPa1/Documents/Visual Studio 2008/WebSites/WebSite1/Products/Create/flashvideos&amp;streamName=C:\Users\RogerPa1\Docum ents\Visual Studio 2008\WebSites\WebSite1\Products\Create\flashvideos\Robotics&amp;autoPlay=true&amp;autoRew ind=false"></embed> 
    When I run the page the place where the flash player should be is blank. But if I right click I can select settings so the flash player is there. I'm using absolute urls for the flashvars because I read in a forum that that's what you're supposed to do. Anyway I am a little frustrated that the video won't play. I tried creating a video with no skin and the same problem occurs.
    Thank You
    idesofdecember

    Answered

  • How to you import youtube videos into iMovie 13?

    I want to take a youtube video that a friend of mine put on youtube and import this into imovie 13 to edit it.  I do not have any of the original video that my friend shot...just the video found on youtube.  Thanks.

    Attach your iPhone to USB for syncing.
    iPhoto should automatically start.
    Import your photos and videos into iPhoto.
    Open iMovie. Navigate to the iPhoto Event in the Events list.
    You can edit from there.
    (When you open iMovie, it may ask to create thumbnails for iPhoto videos. Say yes and let it run.)

  • How to add a youtube video into iBookAuthor?

    Hi, is it possible to add a youtube video with iBook author?
    Tx
    Steeve

    Of course you can add from youtube and from vimeo if you want.
    you have to open this site: www.bookry.com , it has a lot of features on it and embeding youtube on IBA one of those features.
    This is the direct link for the youtube widget : http://www.bookry.com/author/widget/library/youtube/
    you will see tutorial on the right side for each widget.
    Good luck I hope it will help you

  • How can I display Flash Videos without any Flex application decoration

    I develop a flv video player with Flex3 and have problems to
    get rid of the application decoration (frame, border and the like)
    that is part of a standard Flex application. My video player is
    200px x 200px and I only wanna see what the video shows, so that
    the Flex application allocates 200px x 200px.
    It is not clear to me if this can be reached through special
    tags resp. attributes or if I have to do something in the CSS
    area.

    copy and compile this one taken from www.theflexteam.com with
    a couple of extra things, is that it?:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" backgroundColor="#000000"
    backgroundGradientColors="[#000000, #000000]">
    <mx:Script>
    <![CDATA[
    private function playVideo():void
    videoPod.play();
    private function pauseVideo():void
    videoPod.pause();
    private function stopVideo():void
    videoPod.stop();
    ]]>
    </mx:Script>
    <mx:VideoDisplay id="videoPod" source="
    http://www.theflexteam.com/gfx/flvs/gorillaz_high.flv"
    backgroundColor="#000000" backgroundAlpha="0"
    shadowDistance="0" shadowDirection="center"
    />
    <mx:ControlBar>
    <mx:Button id="stopBtn" label="Stop"
    click="stopVideo();"/>
    <mx:Button id="playBtn" label="Play"
    click="playVideo();"/>
    <mx:Button id="pauseBtn" label="Pause"
    click="pauseVideo();"/>
    </mx:ControlBar>
    </mx:Application>
    /cujino

  • Embed a youtube video into pages?

    please show me step-by-step pictures

    If you mean use the Youtube iframe html, you can't. The video file you wish to embed will need to reside in your photos app.

  • Is there a way to embed a YouTube video into CP6?

    I have found several widgets for older versions but nothing for the current version

    Thank you but that's not what I'm after.
    I want to embed the video so that it plays within the slide.
    Like this widget http://blog.flash-factor.com/widgets/youtube-widget/ does for CP5

  • How to embed a flash video into a logo?

    Hello,
    I'm new to flash and dreamweaver and I'm slowly trying to learn it.  I have created a a flash logo for my website (http://www.emorgenstern.com) and I'm trying to extend the background color to cover the rest of top.
    In dreamweaver I have put the embedded flash video in a div class and modified the class to extend the entire length with the proper background color.  In dreamweaver everything looks right but when I upload the actual .html and .css file it does not appear right.  The actual testing link is http://emorgenstern.com/emorgen/emorgen/index.html
    Below is the code for those sections.
    Here is the .html file
    <div class= "banner">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="468" height="60"   title="banner">
      <param name="movie" value="../banner.swf" />
      <param name="quality" value="high" /><param name="LOOP" value="false" />
      <embed src="../banner.swf" width="468" height="60" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
    </object>
    </div>
    Here is the .css file
    div.banner {
         margin:50px 0px 10px 0px;
         padding:17px 0px 0px 20px;
         border-style:solid;
         border-color:black;
         border-width:1px 0px;
         line-height:11px;
         background-color:#eee;
         width:100%;
    Any help is greatly appreciated! Thank you in advance.
    -Eric

    Your code is kind of messy.  Use the validation tools below and fix reported errors.
    HTML Validator - http://validator.w3.org 
    CSS Validator - http://jigsaw.w3.org/css-validator/  
    HTML & CSS Tutorials - http://w3schools.com/
    Where did you get the CSS style sheet you're using?  It looks like an experiment, and not a real world CSS.  You might be better off using one of the the pre-built CSS layouts that ships with DW CS4.
    Anyway, to answer you question.  In your HTML, move your  flash code between this:
    <div id="Header">
    and this
    </div>
    In your CSS, change all this:
    /*#Header {
        margin:50px 0px 10px 0px;
        padding:17px 0px 0px 20px;
        height:33px;
        border-style:solid;
        border-color:black;
        border-width:1px 0px;
        line-height:11px;
        background-color:#eee;
        voice-family: "\"}\"";
        voice-family:inherit;
        height:14px;
    body>#Header {height:14px;}
    to this:
    #Header {
        width: 100%;
        background-color:#eee;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Embed Youtube video into Powerpoint?

    Is there a way to embed a youtube video into a powerpoint presentation on a mac? I have seen many tutorials on how to embed a youtube video into a powerpoint on a PC, but not on a mac. I know you can put on offline movie movie in a powerpoint, but I want to have it online. Any and all help would be appreciated.
    -Alan

    Please post questions regarding Office on Microsoft's own forums for their Mac products since this forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office
    http://www.officeformac.com/productforums

  • Embedding YouTube video into PowerPoint for Mac

    How can one embed a YouTube video into PowerPoint for Mac 2010?  The video tutorials do not show the same Power Point (for Mac) that I'm using.  Even if I can just save (and retrieve) the file I just might be able to convert it to an MP4 for YouTube.  I've tried keepvid and it wants a valid file format.  The default is a text which doesn't work.  I've spent about 8 hours over the past 2 days trying to figure it out.  HELP!!!!!!

    Mac Office Powerpoint

  • How do you import youtube video to iMovie?

    How do you import youtube videos into iMovie

    Why not ask your questions in the iMovie forums?  It's where the iMovie users hang out at.

Maybe you are looking for

  • DNS configuration

    Hi All This may be a silly question so please forgive me, I haven't set-up a DNS in a while and I know I have forgotten something simple in my configuration. I have set up an Xserver 10.5.6 with a fully qualified domain name for example: mydomain.com

  • Developing Report for Oracle Apps 11i

    Hi, I am developing Reports for Oracle 11.5.8 and using Reports 6i Are there any good documents that can guide me to develop reports exclusively for Oracle Applications I am customizing one of the report, did a very minor modification and when I run

  • Boot options

    I need some advise on the commands required to boot from a secondary disk. I am running solaris 8 on an external disk and solaris 7 on an internal disk. The system always boots from the external, I have tried booting from the internal with the comman

  • Just need a simple mic - suggestions

    Just got my Mac Pro 3 weeks ago so I'm getting around to lower-priority needs for it. My experience with external microphones includes only "cheapies" I used on my eMac. The eMac seemed "bound to not" work with mics. I bought Griffin iMic for that bu

  • Mobee Magic Charger Broken

    My Mobee Magic Chrager is not charging my Apple Magic Mouse. I bought this 2 items together from the online Apple store yesterday. When I used the normal batteries, the Magic Mouse worked fine. But when I put the Mobee batteries in and let it fully c