Context menu with video player problem

Hello

I don't think I'm doing something stupid... It seems that having a MediaContainer onstage prevents somehow the ContextMenu send a click event, someone else knows it? I created a very simple example below to illustrate the problem. If you click anywhere on the stage, you will get the ContextMenu correct (with the custom "click me"), but only if you click outside the MediaContainer will be distributed ContextMenuEvent. If anyone has any ideas of what I could do wrong, or could confirm that maybe it's a bug, I'd be very happy.

package
{
import flash.display.Sprite;
Import org.osmf.containers.MediaContainer;
Import org.osmf.elements.VideoElement;
Import org.osmf.media.MediaPlayer;
Import org.osmf.net.DynamicStreamingResource;
Import org.osmf.net.DynamicStreamingItem;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
import flash.events.ContextMenuEvent;

[SWF (width = "1024" height = "600", backgroundColor = "#000000", frameRate = "30")]
SerializableAttribute public class OSMFPlayerTest extends Sprite
{
public void OSMFPlayerTest()
{
var dynamicStreamingResource:DynamicStreamingResource = new DynamicStreamingResource ('rtmp://myhost/');
dynamicStreamingResource.urlIncludesFMSApplicationInstance = true;
var stream1:DynamicStreamingItem = new DynamicStreamingItem ('mp4:mystream.f4v', 190);
dynamicStreamingResource.streamItems.push (stream1);

var videoElement:VideoElement = new VideoElement (dynamicStreamingResource);
Player: var = new MediaPlayer MediaPlayer (videoElement);
Display: Var MediaContainer = new MediaContainer();
display.addMediaElement (videoElement);
addChild (display);

menu: ContextMenu var = new ContextMenu();
menu.hideBuiltInItems ();
var point: ContextMenuItem = new ContextMenuItem ("click me '");
item.addEventListener (ContextMenuEvent.MENU_ITEM_SELECT, onMenuItemClick);
menu.customItems.push (item);
menu = this.contextMenu;
}

private void onMenuItemClick(e:ContextMenuEvent):void
{
trace ('click');
}
}
}

Thank you very much

Simon

Hi Simon,.

You stumbled upon a known issue of Flash Player and its impact on the event of shipping on the video object context menu.

There are two possible solutions:

1 Add a transparent sprite on top of the video and add event listeners.

2 use something like a sprite "control bar" as a target for event listener context menu.

Hope this helps,

ANDRIAN

Tags: Adobe Open Source

Similar Questions

  • Problem with video player

    Hi experts,

    I'm under 2 problems with video player in my application:

    1. the backlight turns off automatically after 30 seconds by default during playback of a video file.

    2. impossible to adjust the volume, he always plays with the highest volume.

    When I try to play the video by media player integrated BB Bold, the volume is adjustable and the backlight is on during the display of the video. Is it possible to do the same thing in my application?

    Thanks in advance,

    Kind regards

    Binh Nguyen

    -For the first problem, you will need to set the backlight to yourself in the code, something like:

    If ((Display.getProperties () & Display.DISPLAY_PROPERTY_REQUIRES_BACKLIGHT)! = 0)
    {
    Backlight.Enable (true, 20);
    }

    Be careful about the number of seconds that you pass to the enable(). They are tp limited 255 seconds even if you spend a lot. This means that if your video is longer than 255 seconds, you must call the activate more than once. I usually call it the timer as well as check the status

    -For volume control, the player does not meet the default control buttons. You need to implement it in your code.

    Set the class of player that you use to implement the method as follows:

      protected boolean keyControl(char c,int status,int time)
        {
            if(c == Characters.CONTROL_VOLUME_UP)
            {
                //IncreaseVolume;
            }
            else if(c == Characters.CONTROL_VOLUME_DOWN)
            {
                //decreaseVolume();
            }
            return super.keyControl(c,status,time);
        }
    

    Where the increseVolume is something like:

    If (_Kit! = null) //_vc = player VolumeControl
    {
    _vc.setLevel (volumeLevel);
    }

    Rab

  • Firefox won't let me copy the web address of the bar using the context menu with the second mouse button or trackpad to address

    Hello!

    I am writing to report a problem I have with the new patch v35 and v35.0.1 Firefox address bar

    With the new version 35 of Firefox on Mac OSX Yosemite, clicking with the right mouse button in the address bar to copy the web address, a context menu DO NOT allowed to copy the link, he shaded in grey, inactive... you click on an other browser zone before returning to click a second time and be able to copy the link in the context menu

    I mean, with the first right click on the menu bar that appears to address do not allow me to copy the link directly, you must click another area and then click again with the right mouse button in the address bar to copy the Internet address (happens to all pages)

    I tried to open Firefox plugins and completed inactive and reset Firefox on first use (as the first installation) and the problem is here again... The problem with or without add-ins and plugins is here

    What happens before and then when I format my computer

    Here I put a screenshot that explains the problem better than my words
    http://i.imgur.com/QxKd8P1.gif

    I hope you can help me

    Hello

    I want to just inform you that with the new version 36 of Firefox, this problem has been corrected in my browser
    Now I can access the copy option in the context menu directly in the address bar
    Thanks for the replies

  • Video player problem restart when W7

    Hello.

    I have a very unusual problem (sorry for my English. I speak Spanish and did this with index).

    OK, I have install the Production Premium CS6 upgarde in my laptop (HP Pavilion DV6-Intel Core I7 2.0 GHz 6 GB Ram 1 GB Radeon HD 6770 M video card). I got CS5.5 and everything was OK. Now with CS6, all programs work fine but the Premiere Pro. When I run this program, I see the start screen where you can see the name of the components and loading of plugins. As soon as it reaches ImporterQuickTime.prm file it stops and this message appears: "Adobe Premiere Pro can not find any module of video game. ' Update your video drivers and try again. So I know I have a problem of video player. I update the drivers and I still have the problem. Then I down grade drivers and it fix it! Finally I can run the first Pro CS6. But, that soon I reboot my system the problem is back. Then I run the upgrade, and it correct it again. But again, when I restart the system the problem is back.

    So as you can see, any if I upgrade or downgrade the video driver, I have Premier Pro works without problems, but as soon as a reboot of my laptop, the problem comes back and I need to change the video driver (without restarting) in order to work with the Premier Pro.

    Can someone has an idea? I really appreciate because tech people at Adobe have still no solution my problem yet.

    Thank you.

    Eduardo

    Check that you have not lit at all in the BIOS embedded graphics.

  • Do menu with video thumbnails

    I created a menu with the video thumbnail. I want the video thumbnail to use Chapter 2 on the timeline, but when the user click on the play button, I want the chronology from Chapter 1. How do I do that?

    Select the chapter marker 1.

    Move to where you want the tile to start.  Right click and choose "poster frame".

    the poster frame may appear anywhere on the timeline; the trick is to select the brand of Chapter 1.

    I don't know if the framework of Chapter 1 poster may be just above the terminal of Chapter 2; Try it!

    If transcoded already (mpg, LWA or avi that has been converted) make sure that you create the marker on a gop boundary.

  • Failed to create the menu popup JavaScript with to display the context Menu with the help of add behaviors

    Whenever I load a page with this added behavior and test it with my link, I get a message "error on Page".

    Here's what I do:

    Create a new HTML page in Dreamweaver 8.0.2 and save it.

    Add a hyperlink in the Insert-> menu hyperlink. Do not put anything in it except a few example of text; "THIS IS a TEST", or something.

    Select the hyperlink and choose "Show the context Menu" in the tag behaviors menu tab ' + '. The dialog box will appear.

    Add a single item and add a link to a page. Do not change the other options. Click OK to close the dialog box and the code will be added to the page.

    Save the HTML page again and press F12 to load the page on your test server and display them in a browser.

    Hover your mouse over the link to test. Nothing happens and there is a message in the status bar at the bottom of the browser, "error on Page".

    OK, it works. I saw the source file that are listed there, but I assumed that Dreamweaver would be to download the file with the HTML file to test on my test server. Usually, I'm prompted to download all the dependent files. Is there an exhibitor or dreamweaver do not miss this link?

    I'm sold on convictions explained in the rants you have linked, but only after I see that Dreamweaver menus don't work. It is not entirely necessary for my completely dependent users of my menus, they are only a feature of page layout.

    Since I have the ear, maybe you could tell me something before my attempt it: is it possible to generate the JavaScript using PHP? I would like to include JavaScript in the context of records with PHP MySQL. Is there another possible solution from PHP? I guess that ASP is a solution already and maybe Flash too.

    This is the kind of page I'm working on that:

    http://www.symbiota.com/MiloTrial/witnesses.php

    I would like to see a drop down menu for each trial where the number of witnesses is less than 10 to save someone the trouble to open a new page just to see a list of ten names.

  • Overview of context Menus with third Player for mac

    Hello world

    Does anyone have an idea, how can I preview my menus pop up without burning and waisting a BD every time?

    I just downloaded two different of Blu - Ray players free for mac, they both seem to lack the ability to open a context menu. (Really, I wonder why this is so, I can't imagine that it is so hard to develop...)

    Anyway, how do you guys do you this? is there any software out there that can do this? I'm at a point where I feel I still pay for software or get a windows software and run it through crossover, if necessary...

    Please help, I really want to watch my BluRay before I burn to disc.

    Thank you very much

    Niki

    Two methods:

    I use Total Media Theater (5 or 6). It is not free, and I don't know if it is available for Mac. Context menus slideshow operation is the most difficult for the emulators (which is are players computer DVD/BD).

    Burn to a DVD + RW. This is essential as a step of test to burn to a disc.

  • Help with video player FLV DL Progressive

    Hi guys,.

    I need help to find a good video for progressive download FLV video player. I like the way that players who are included in DW CS4, but they don't have what I want. What I want is a simple player that shows how much of the video is downloaded (as on youtube when a bunch of video the progress is displayed in red light and which played already appears in dark red). Is there a player or plugin for download progressive FLV movies (I think that I am using FV4 Formate). Thank you!

    PS I don't know site Web of ch is www.straightwayfellowships.com if you want references, simply click on a video on thelower right on the page, we're working and we use a drive that is not working and just says "the player will show in this paragraph")

    P.P.S. I'm not afraid of hardcoding HTML

    Download the demo and see for yourself. Want to get Flash custom player and build yourself. Don't know Flash so learn it or the employment contract. Don't want to do it then find a built-in online reader. Some are free and some cost. There are many options available, it's yours to explore and decide. For example, a google search for FLV player produced very interesting results. Maybe the free addition of your search query can help.

  • Windows 8 Pro: cannot play video files and Misic in WMC on Xbox 360 - can do with video player

    Hey,.

    I've had problems with this for a few days now. Everything worked perfectly on Win 7 Ultimate.
    However, after an update to Win 8 Pro with the Media Center Pack, I can't Windows Media Center on my xbox 360 to play all files. All files (audio & video) are visible, but they refuse to play and generate errors such as:

    Video error
    Files needed to display video are not installed or do not work properly. Restart Windows Media Center or restart the computer

    None of the options above worked.

    A homegroup is set up, I'm on a private network, network discovery and file sharing & printer are on and I can see the Xbox and its Media Center Extender devices & Printers.

    Everything is shared. My 2 drives have been set to 'Share' for all records to the breast.

    I can play the files in WMC perfectly on my PC.

    What I've seen, this is the event logs to complain about digital rights management

    See below:

    Journal name: Media Center
    Source: Microsoft-Windows Media Center Extender
    Date: 06/07/2013-00:36:49
    Event ID: 700
    Task category: digital rights management
    Level: error
    Keywords:
    User: ScartaPC\Mcx1-SCARTAPC
    Computer: ScartaPC
    Description:
    WMDRM-ND registration failed for Media Center Extender.

    Area: 5
    : Error unspecified
    The event XML:

     
       
        700
        0
        2
        5
        0
        0 x 8000000000000000
       
        1086
       
       
        Media Center
        ScartaPC
       
     

     
        5
        -2147467259
     

    ------------------------------------------------

    Journal name: Media Center
    Source: Microsoft-Windows Media Center Extender
    Date: 06/07/2013-00:38:48
    Event ID: 701
    Task category: digital rights management
    Level: error
    Keywords:
    User: ScartaPC\Mcx1-SCARTAPC
    Computer: ScartaPC
    Description:
    WMDRM-ND proximity detection failed for Media Center Extender.

    Area: 4
    Error: Operation abandoned
    The event XML:

     
       
        50 s
        0
        2
        5
        0
        0 x 8000000000000000
       
        1087
       
       
        Media Center
        ScartaPC
       
     

     
        4
        -2147467260
     

    Any suggestions please?

    Hello Hernan,

    This is may be due to the DRM (Digital Rights Management); I suggest you to check the parameters;

    Check out the links and check if this may help;

    Method 1: If you're having trouble playing a media file, such as music or video file, it may be because the file is protected.

    The Player Windows Media DRM: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-8/Media-Player-DRM-frequently-asked-questions

    Method 2: Refer to the link and check if the settings are correct:

    Set up Windows Media Center on the Xbox 360 (Windows 8)

    http://support.Xbox.com/en-us/apps/Windows-Media-Center-on-Xbox-360/Windows-Media-Center-on-Xbox-360-Windows-8-Setup

    Method 3:

    Troubleshoot the connection between your Xbox 360 and Windows Media Center

    http://support.Xbox.com/en-us/apps/Windows-Media-Center-on-Xbox-360/Windows-Media-Center-on-Xbox-360-help

    Troubleshoot Windows Media Center

    http://support.Xbox.com/en-in/apps/Windows-Media-Center-on-Xbox-360/Windows-Media-Center-on-Xbox-360-FAQ

    Check out the link:

    Xbox on Windows 8 FAQ

    http://support.Xbox.com/en-in/apps/Windows-8/Windows-8-FAQ

    If the problem still persists I suggest you to contact Xbox 360 support

    http://support.Xbox.com/en-in/

    If you need help with Windows, please do not hesitate to post. We will be happy to help you.

  • Menu with video instead of the static image buttons?

    Hello.

    Working on my first still project and I have pretty much done. Just have a question about the menu buttons.

    Is it possible to have show a short, repeating the clip of the associated chapter or are we stuck with static image?

    I know that we have a video clip as a background for the whole menu, but I wonder about the buttons themselves.

    Thank you.

    They are called "animated vignettes." You can set the framework from the beginning (the poster frame). The buttons have special features. Almost all menus "submenu" called library have this features and show you the button layer prefix.

    Edit: See this:

    http://help.Adobe.com/en_US/Encore/CS/using/WS4BCC1FEA-7C18-4ba2-9AFA-F37170BA3A6A.html#ws 4EC6DCF3-F998-45a3-92C9-213DF29214BC

  • Create the new template context menu with TweakUI

    I regularly use a program called NoteTab Light to various textual works with UTF-8 encoding. I want to be able to right-click and create a new file with the UTF-8 encoding (I was using an extension .utf8 for that), but I'm unable to add this option when I use TweakUI. The instructions I found said to create an empty file and use it as my model, but whenever I try, I get an error message saying: "this document can serve as a model of document." Someone at - it advice?

    Hello

    We take great care to ensure that PowerToys work as they should, but they are not part of Windows and are not supported by Microsoft. For this reason, Microsoft Technical Support is unable to answer questions about PowerToys.

    From: http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Sound with Flash Player problem

    Hello

    I have no sound when I play a video from YouTube, while the sound works with other applications.

    Thanks in advance for your help.

    Benedict Vriendt.

    Is your YouTube large open volume control and not cut?

  • Context menu with Images

    I used the following article to create a menu that connects several applications to create a large application

    Build a framework for Menu
    By Tony Jedliński
    [http://www.oracle.com/technology/oramag/oracle/06-may/o36apex.html]

    Now after login, the user is presented with a page containing a tree menu

    Select 'M_APPLICATION_NUM' id,
    "PARENT_M_APP_NUM" the nest,
    The name "DESCRIPTION."
    NVL ('URL', "f? p = & APP_ID.:1'). case substr (URL, 1, 4)
    When ' f? p = "then": & SESSION.' link otherwise null end.
    "& nbsp | "MORE_INFORMATION" a1,
    case: P1_ADMIN
    When 'Y' then ' < a href = "f? p = & APP_ID.:4: & SESSION. : RP:P4_M_APPLICATION_NUM:' | TO_CHAR (M_APPLICATION_NUM) | "> < /a > (edit)'.
    Another null
    end a2
    of ' #OWNER # '. " M_APPLICATIONS ".
    where: P1_ADMIN = 'Y' or parent_m_app_num is null or
    authorize_m_user2 (M_APPLICATION_NUM,: APP_USER) = 'Y '.

    It shows the description and a link to edit (If admin).
    Ideally, I want to show an image map (instead of description) with a label, which take place on the server.
    Once I've finished development, no more applications will be created and the images will not change, so I can hard link to the image, IE there is no need to be in a table.

    Can someone give me some advice on how to achieve this

    Thank you

    Gus

    See this thread: Re: conditional icons?

    Thank you

    Tony Miller
    Webster, TX

  • Spry menu with rounded corners problem bar

    Hello

    I rounded upper-left & right corners on the bar using the Top Menu rule ul. MenuBarHorizontal.a. unfortunately it also rounded summits of the submenus.

    I tried the menu SUP rules to try and get the submenus to square boxes but have failed.

    Can someone tell me how to get the square corners of submenus, while leaving the corners of rounded top-level menu?

    Capture.JPG

    Thank you

    Please tell me where you have placed the style for ul rule. MenuBarHorizontal ul has. I can't find anywhere in your online version.

    GRAMPS

  • Best way to have a button click on create a context menu with URL link?

    Hello world

    What is the best way to define click a button to open a pop-up window and take the user to a specific link?

    I did some research and it seems that there are many methods and I don't know if the positions were older, but many mention that certain methods are incompatible with different browsers + get stuck in the pop-up blockers...

    Different methods:

    navigationToURL()

    Window.Open)

    ExternalInterface.call("saveglobalscore",score))

    Thank you very much

    DK


    http://www.Adobe.com/2006/mxml"layout ="absolute">
       
            import flash.net.navigateToURL;
               
    private function goGoogle (): void {}
    var urlRequest:URLRequest = new URLRequest ("http://www.google.co.uk")
    navigateToURL (urlRequest, '_blank');
    }
               
               
    ]]>
       

       

    That should do it.

    Andrew

Maybe you are looking for

  • I have FF 40.0.3, Win 10, FF will minimize and not recover.

    When working on other things and FF is open, click on the tab in the taskbar does not restore FF. Can I close all other windows, but FF will not return. The only way I found out how to restore it is close FF then re-open and restore previous session

  • Reorganization of the text boxes so that they mix upwards or downwards

    Hello I'm not sure to understand what happens when the text inline boxes are dragged - I have 6 on a page that are the width of the page but different heights and I would like to re - order them so they mix it up or down depending on where I drag the

  • Vista Ultimate SP1 to SP2 error: Code FF

    System: HP d5000t with 6 GB of memory; 408 GB of free space on the hard drive; w2408H 24 "monitor running Vista Ultimate SP1. I tried a dozen times more than 3 months of updating Vista Ultimate 64 bit SP1 to SP2, each time that the error below.  It's

  • pointer to null when using af.form

    Hi am a NPE everytime I try to use af.formthe code is <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"           xmlns:af="http://xmlns.oracle.com/adf/faces/rich"           xmlns:f="http://java.s

  • Percentage of elapsed time

    I have build an analysis and I want to know what percent of the time between two dates is elapsed.I use the following formula:(TimestampDiff (SQL_TSI_DAY, 'Project'. "" Date of actual start»(, CURRENT_DATE) / TimestampDiff (SQL_TSI_DAY, 'Project'. "