Youtube AS3 Api without branding

I am loading a youtube video inside a AS3 app, and want the youtube logo not to be visible. I have used modestbranding but still it shows the logo. Below is the code I am using.
Security.allowDomain("www.youtube.com")
                    var my_player:Object;
                    var my_loader:Loader = new Loader();
                    public function ytPlayer() {
                    my_loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3&modestbranding=1"));
                    my_loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
                    function onLoaderInit(e:Event):void{
                    addChild(my_loader);
                    my_player = my_loader.content;
                    my_player.addEventListener("onReady", onPlayerReady);
                    function onPlayerReady(e:Event):void{
                    my_player.setSize(640,360);
                    my_player.loadVideoById("_OBlgSz8sSM",0);
Please suggest.
Ayush

for this u hav to customize the player and  hav to use the youtube api of as3

Similar Messages

  • YouTube Player API - disable link to YouTube

    So I'm using the YouTube AS3Player API (https://developers.google.com/youtube/flash_api_reference#Standalone_sample) to embed a YouTube video into my Flash file.
    The problem is that the I have to disable the video from linking to the YouTube page when you click on the YouTube link in the lower right corner of the video.
    I'm sure there could be different soultions for this - in the actionscript, HTML, or Javascript, and I'm open to anything. Can anyone help me out with that?

    I tried using modestbranding, but it did not work. The description of modestbranding says that it will remove the logo from the control bar. There is no control bar when I embed the video using the above code. The logo I'm trying to remove or at least disable is laying over the video in the lower right corner (this is an example video, of course):
    Would you mind running my code in Flash and seeing if the modest branding works for you?
    stop();
    Security.allowDomain("www.youtube.com");
    var my_player:Object;
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3&modestbranding=1"));
    my_loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
    function onLoaderInit(e:Event):void{
    addChild(my_loader);
    my_player = my_loader.content;
    my_player.addEventListener("onReady", onPlayerReady);
    function onPlayerReady(e:Event):void{
    my_player.setSize(600,337);
    my_player.cueVideoById("fPDYj3IMkRI",0);
    my_player.x = 90;
    my_player.y = 124;
    my_player.playVideo();

  • Using java mail api without servlets, I ve sent an html mail.  In that Ive

    Using java mail api without servlets, I ve sent an html mail. In that Ive specified action to the servlet. On click, it shows url as file:///C:/Documents%20and%20Settings/sirivanig/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CNFHMDIT/updatemailerform%5B2%5D.htm instead of www.servername.com/....
    May I know the reason why it shows like this.
    Do I ve to send htmlmail through servlet so that it does show proper url?

    Possibly your mailer is restricting your access to URLs to prevent
    various scams. Without the details, it's hard to know what's going
    wrong.
    Have you tried with a different mailer?

  • Submitting data through API without exposing DB credentials

    Submitting transaction / master data through API without exposing DB credentials
    I am developing a scenario where I will submit transaction / master data like sales order / master item to Oracle apps (EBS) through MS Excel via API / interface table but like to provide only apps (EBS) user credentials rather then DB credentials so DB password could not expose to normal end user. Please suggest something on same.
    [email protected]
    Thanks & regards,
    Sachin Gupta

    Sachin, you need a valid userid and password to connect to the database.
    Since these APIs are defined under apps, you need apps password to execute them.
    The workaround is that you define a new d/b userid.
    Grant execute on the API (and other objects as necessary) to this user.
    And then you call the api using the new userid and password.
    This way you are not exposing apps password. But since this means you have to grant a number of accesses to this new user.
    If you can use the interface tables, it becomes a little easier.
    All you have to do is grant insert access on a handful of interface to this new userid. And then you schedule a concurrent program that will process the interface records.
    If you absolutely can not expose ANY database password, then you can communicate with EBS using flat files. Your system creates a flat file on the server and a scheduled program in EBS reads the files and calls appropriate api.
    Hope this helps,
    Sandeep Gandhi

  • I can't watch YouTube videos on my brand new MacBook Pro with Lion. It says I need to download Adobe Flash Player but that won't install. Help!

    I can't watch YouTube videos on my brand new MacBook Pro with Lion. It says I need to download Adobe Flash Player but that won't install. Help!

    The same thing happens to me, Safari asks me to update the Adobe FlasPlayer, I download, start the installation process, ask me my username and password in order to install, then see a window where I choose if I want to always install the updates , or ask first, or not inslate updates, and at this point it is not progress, I can not cancel the process, I turn off and turn on my machine.
    What can I do ..??
    Regards.

  • Edge crashes when used with Youtube iframe API - how to solve this?

    As Edge is the thing which makes mobile interaction design possible, it would be necessary to use the youtube iframe api for youtube videos (the usual Youtube JS API operates with flash and therefore is no go for mobile useage).
    As soon as i integrate the iframe API Code in any manner into a Document that runs Edge (paralell or within Edge), Adobe Edge crashes.
    Anyone there with experience in this?
    Thanks so much,
    Andy

    Hi Hemath,
    here the project:
    http://www.jungeroemer.net/projekte/ytapi/edge.zip
    i used the yutube api as here:
    https://developers.google.com/youtube/iframe_api_reference?hl=nl#Getting_Started
    for now edge does only crash if i use the youtube code in the html file<script> tag when having an edge file running in the same html.
    When i paste the code into edge it keeps running but it seems like onYouTubeIframeAPIReady() is never being called because
    the code can not proppelry be loaded into the website within Edge Animate..
    If loaded successfully i would try to identify the player div for the youtube api and try to place the player iframe in an edge div.
    Thanks for help,
    regards,
    Andy

  • Can I use ant's api without using javascript ?

    Can I use ant's api without using javascript and which tasks we cant do without javascript in ant's build file?
    eq:
    jar=project.createTask("jar");
    jar.setDestFile(new java.io.File(project.getProperty("lib")+"/myJarFile.jar"));
    jar.setBasedir(new java.io.File(project.getProperty("classes")));
    jar.setIncludes(project.getProperty("GenericDirStructure")+"/**");
    jar.setIncludes("META-INF/**");
    jar.perform();
    can I create above jar without using javascript i. e<script language="javascript"> in build.xml file.
    Thanks,
    Archan

    Archana144 wrote:
    hello georgemc
    How to use ant's api without javascript in build.xml file because it gives error if I tries to do something like
    project.createTak("echo").in build.xml..etc ..without including this in <script language="javascirpt">
    And I cant use <jar> task directly because ..I want to crete multiple jar files depending on some configuration done in properties files..so I m doing this jar creation in loop.
    Thanks,
    Archan
    Edited by: Archana144 on Aug 13, 2008 6:00 PMHave you read all the Ant documentation? The <script> task was only added in 1.7, before that, there was no using Javascript in build files

  • Use VirtualBench API without LabVIEW. Example: Python, DLLs, etc.

    Hello,
    I would like to know if there is a way to use the VirtualBench API without LabVIEW?
    Like using python or something.
    Thank you
    Solved!
    Go to Solution.

    We just released version 1.1 of VirtualBench that adds a C API and a bunch of other features, see http://forums.ni.com/t5/VirtualBench/Announcing-free-firmware-update-version-1-1-adds-SPI-and-I2C/td....  With that you could use VirtualBench in your programming language of choice if you write the appropriate bindings.
    Zach Hindes
    NI R&D

  • Development AS3 API's under Cairngorm, it's good??

    That is my doubt, it's good to make a as3 api under cairngorm ?.
    Thanks in advice.

    Sorry misunderstood your question.
    Cairngorm is great for implementing MVC and with client communication to the server.
    Thats where its strengths lie.  What it is not extremely strong in is communication between objects within the client.
    If you are going to create api's whose main purpose is to communicate between each other you are better off choosing some other framework.
    Here is a link that compares some of them
    http://www.adobe.com/devnet/flex/articles/flex_framework.html

  • Use KM ABAP API without XI/PI

    Hello KMC Gurus,
    I try to use the <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db356ceb-0701-0010-ff8f-af07e78588a0">ABAP API for Knowledge Management and Collaboration</a> from a WebAS ABAP 7.00 (NW2004s). But I'm facing the problem that we don't have XI or now called PI installed. As I've read in OSS Note "883948 - NW 7.0(2004s): Inst.Add.Java Usage Types/Software Units" the Usage Type PI can't be installed afterwards. Is there a possibility to use the KM ABAP API also without XI/PI in place?
    Best regards
    Gregor

    Hi Gregor,
    The articel you mentioned above is a preview to the next major release which is not yet available. Unfortunately in NW2004s there is no ABAP API available. But beginning with NW04s, SPS13 there will be at least WebServices available for KM functionailty. You can use them to generate your own Web Service Proxy in ABAP to connect to KM.
    best regards,
    Martin

  • PrintScreen Functionality using Java Print Api(without Robot)

    Hi Guys
    I have an issue to discuss,can any of you tell me that is it possible to take the screen shot of screen(not printing on paper) in java using Print Api .
    I have done it with robot but i want to do it without using Robot.
    Thanks
    Vipul

    Vipul wrote:
    can u please tell me how to implement it.i want to take the screenshot not printing a java container on paper.
    package test;
    * Screenshot.java
    import java.awt.*;
    import java.awt.print.*;
    import javax.swing.*;
    public class Screenshot extends JPanel {
        private Container container;
        public Screenshot(Container container) {
            this.container = container;
        @Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            container.print(g);
        //"main" only for Testing:
        public static void main(String[] args) {
            final JFrame f = new JFrame("Frame");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(500, 600);
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(new JTextField("Begin"), BorderLayout.NORTH);
            panel.add(new JColorChooser());
            panel.add(new JTextField("End"), BorderLayout.SOUTH);
            f.add(panel);
            f.setVisible(true);
            new Thread(new Runnable() {
                public void run() {
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException ex) {
                    JDialog d = new JDialog(f, "Screenshot of Frame");
                    d.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
                    d.setSize(f.getSize());
                    d.setLocationRelativeTo(null);
                    d.add(new Screenshot(f.getContentPane()));
                    d.setVisible(true);
            }).start();
    }

  • Private APIs without headers

    A have a framework and an app.
    To access the content (executable) of the framework I must use the headers in that framework. But in other environments like the Microsoft's .Net Framework, You can dynamically reflect (scan) DLLs to find out classes, methods, events and more.
    So I think this way: .Net Framework is a "virtual" environment. The CLR links objects at runtime. It knows all the names of all the objects. I have read (and not one time) that the Objective-C Runtime also dynamicaly binds objects and knows the objects names. By "object names" I mean class names (NSString, NSLock...), method names (InitWithSomething...) and so on.
    And so why can't my app link to frameworks directly without header files?
    I could have the whole header file in a string and the Objective-C Runtime would have all the info that it needs. This way I could use Private APIs on iOS and Apple couldn't detect it.
    If I'm wrong could someone please tell me where is the error.

    It's a SECRET!

  • Is it possible to use LiveCycle ES APIs without deploying ?

    Hi.,
    Is it possible to use LiveCycle ES APIs (like form flattening) without deploying it in any application server.
    Can live cycle ES only be used with a server ?
    Thnks.,

    No. Adobe LiveCycle ES services must be run in one of the supported J2EE Application Servers.

  • Office 365 Basic end user authentication using API without using powershell

    I have an Office 365 username and password. I need to authenticate the credentials without using powershell. I mean by using REST API. I was able to authenticate the admin user using client id and secret along with their username and password.
    All I need is to authenticate an end user using his username and password using graph api or any REST api.

    So you probably need to ask in the dedicated O365 forum:
    http://community.office365.com/en-us/f/default.aspx
    Or maybe an Azure AD forum ?
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Creating LabVIEW module adapter TestStand Steps using the API without loading module prototype???

    Is it possible to programatically create a TestStand step (using the API), that calls a LabVIEW module, without loading the prototype of the module to get a reference to the Module Parameters.
    I want to specify a VI Pathname, but I dont want to use that pathname to load the prototype.  I want to programatically specify the name, type, representation etc. of each of the controls and indicators.
    My reason for attempting this is that I only want the VIs called by the steps to exist on the target hardware not on the numerous development machines running my application.
    Any thoughts greatly appreciated.
    Steve  
    https://decibel.ni.com/content/blogs/DailyCLAD

    Hi Steve,
    Unfortunatly it is not possible to do what you want within Test Stand but I am not sure why it is necessary, I think I am understanding your application incorrectly.  The only time you will need to load the prototype is if you are creating the step but if you are creating the step you will need the VI that the step calls so that VI will need to be present on the system.  If you are not calling the step then you shouldn't need to load the VI prototype.  If this is how you program funtions it may be a problem with your architecture but if not please could you correct my misunderstanding so that I can go about finding a suitable solution.
    Regards,
    Tom
    Applications Engineer
    National Instruments UK & Ireland

Maybe you are looking for

  • EXCEPTION_ACCESS_VIOLATION in WL8.1.0.3

    We are using WL8.1 sp3. The web application works fine under jdk 1.4.2 but gives an EXCEPTION_ACCESS_VIOLATION error when used with the same web application compiled using JDK 1.5. This happens even when I switched WL to run using JDK 1.5. Does anybo

  • IPod/iTunes Sound Check Sync

    Half the music on my iPod comes from my own computer that originally had Sound Check enabled in my iTunes. But the other half of my iPod music comes from my friends' computers, and I know that not every one of them used Sound Check. So the obvious pr

  • Network connections running slowly

    Hello everyone! All of a sudden, my mac seems to be taking ages to load both intranet and internet pages. In the house we have 2 laptops (one mac one PC) and another windows desktop PC and they are all behaving themselves nicely.If I go to a website

  • Snow Leopard 10.6.1 - Automator

    Hi, I've created a workflow in Automator, trying to organize my Downloads folder. It goes, "Filter Finder Items", and then, "Move Finder Items". I've lined it up, so that the Filter Finder Items "code", takes any file extension with ".dmg" and then o

  • VSS Permission Issue - Event ID 8194

    I have a server 2012 cluster server that gets the following error a number of times every minute.   Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005, Access is denied. . This is often c