Remove Video Controls and add Replay button on page

Hello,
I am trying to create a page in Adobe Edge that loads a video without any controls (play, slider bar, volume, full screen) and then displays a replay button after the video finishes which will start it from the beginning.
Currently I am able to load the video file and have it play to the end and stop, but I can't seem to get a replay button working.  I also can't find a way to disable controls on the video so they do not show.
Here is the code I am using to load the video:
// insert code to be run when the composition is fully loaded here
$("#Stage").css("margin","auto")
sym.stop();
// original video play code starts here
// create a text object called vid;
var vid = $("<video width='980' height='300' controls='none'>" +
   "<source src='video.mp4' type='video/mp4' />" +
   "<source src='video.webm' type='video/webm' />" +
   "<source src='video.ogv' type='video/ogg' />" +
   "This browser is not compatible with HTML 5" +
"</video>"
sym.$("replay_btn").stop().animate({"size":"absolute", "top":"-265", "left":"7", "opacity":"1"}, 0);
// stage symbol lookup, and append the above vid object to it;
// in other words, get the div called 'vcontainer' and attach the video control to it;
sym.$("vContainer").append(vid);
// additional options for the video object
vid.attr('autoplay', 'autoplay');
vid.attr('preload','auto');
vid.attr('controls', 'none');
// End original code
// this is the insert for the action after the video ends
$(vid).bind("ended", function () {
sym.$("vContainer").stop().animate({"size":"absolute", "left":"0", "opacity":"0"}, 0);
sym.$("replay_btn").stop().animate({"size":"absolute", "top":"394", "left":"19", "opacity":"1"}, 0);
$("#Stage").on('click','#replay_btn',function(){
vid.pause();
vid.currentTime = '0';
vid.play();
sym.$("vContainer").stop().animate({"size":"absolute", "top":"133", "left":"0", "opacity":"1"}, 0);
vid.removeAttribute("controls");
As you can see, I tried a few ways of disabling the controls, and I also tried adding the replay function to the button itself, but neither of those worked.  Any advice or information on controlling the video control display and replay function in Adobe Edge would be very helpful.
Thanks!

In case anyone is interested in the replay button, I was able to find code that worked:
var myVideo = document.getElementById("activeVideo");
myVideo.currentTime = 0;
myVideo.play();
This is executed when the replay button is clicked.  Just be sure to set the video in question's ID to "activeVideo".
I am still unable to turn off the controls on the video.  It seems like some of the code I have tried should work, but I haven't had success yet.
I've tried all of the following:
var vid = $("<video width='980' height='300' controls='none'>"
var vid = $("<video width='980' height='300' controls='0'>"
var vid = $("<video width='980' height='300' controls=''>"
vid.attr('controls', 'none');
vid.attr('controls', '0');
vid.attr('controls', '');
But nothing has worked so far.  Any help would be much appreciated.
Thanks!

Similar Messages

  • How to create a control and add it to a page layput

    I am reading the following link :-
    http://www.itidea.nl/index.php/what-about-you-must-fill-out-all-required-properties-before-completing-this-action-when-publishing-a-page/
    which says that i need to create a control and add it to a page layout. but can anyone help me in understanding how i can create a user control and add them to page layout ?
    Thanks

    > First problem  i could not find a User Control (Farm Solution only) under the Office/SharePoint section
    if you mean New item in Visual Studio, then check it under general Web category. User controls are basic ASP.Net functionalities, not Sharepoint-specific. If it is not there, you may use the following trick:
    1. Create new project in other VS instance using "ASP.Net Empty Web Application" template
    2. Add new user control there (in this project type it should exist for sure under Web category. Called "Web User Control")
    3. Copy all user control's files to the folder of your Sharepoint project (ascx, ascx.cs, ascx.designer.cs)
    4. In VS instance with Sharepoint project add existing items: all copied user control files. They should be grouped under ascx file automatically after that
    > The type or namespace name 'TaxonomyFieldControl' could not be found (are you missing a using directive or an assembly reference?)"
    you need to add reference to Microsoft.SharePoint.Taxonomy.dll assembly, which is located in the GAC (assume that you have installed Sharepoint on your dev env)
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com
    thanks a lot for your help. so can i do the following steps:-
    I follow these steps to deploy a user control.
    using Visual Studio 2012 , i added a new Farm solution.
    then inside the farm solution i added a new User Control(Farm Solution Only).
      3.   inside the user control i entered the following code:-
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Taxonomy;
    using Microsoft.SharePoint.WebControls;
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    namespace WikiPopUp.ControlTemplates.WikiPopUp
    [ToolboxData("<{0}:CustomValidationRequiredFieldsOnPage runat=server></{0}:CustomValidationRequiredFieldsOnPage>")]
    public class CustomValidationRequiredFieldsOnPage : WebControl
    protected override void CreateChildControls()
    base.CreateChildControls();
    if (SPContext.Current.FormContext.FormMode == SPControlMode.Edit)
    bool arethere = AreThereAnyMissingRequiredFieldsOnPage();
    if (arethere)
    //SPPageStateControl:
    //Provides an ASP.NET control that handles the Ribbon buttons controlling the state of a Microsoft SharePoint Server wiki or publishing page,
    //such as the CheckInCheckOutButton or the PublishingButton.
    SPPageStateControl baseParentStateControl = Page.Items[typeof(SPPageStateControl)] as SPPageStateControl;
    //Publish button: SPListItem MissingRequiredFields checks this.FieldHasValue(link.Name, field);
    //the field is empty (which is right) when the page is first created (MMD field is never filled in)
    //when the field was once filled, saved and emptied the field in sp code still has the previous value and the check MissingRequiredFields succeeds
    //after succeeding this check the page is validated (this.Page.Validate()) and this one fails which results SP validating the page as the Save button does
    if (baseParentStateControl.HasError)
    //this overwrites the previous PageErrorState
    //and validates the page
    //no popup anymore and status updates in yellow area
    baseParentStateControl.EnsureItemSavedIfEditMode(false);
    else
    //there are missing fields at this listitem, but they're not on the page
    //do nothing here, because the SerializedErrorState contains the navigate url to the Edit Properties page
    //and a message pops up
    /// <summary>
    /// Check if required fields are missing which are present at the page
    /// </summary>
    /// <returns></returns>
    private static bool AreThereAnyMissingRequiredFieldsOnPage()
    foreach (Control control in SPContext.Current.FormContext.FieldControlCollection)
    //get the control type
    string type = control.GetType().Name;
    FieldTypes controlType = (FieldTypes)Enum.Parse(typeof(FieldTypes), type);
    switch (controlType)
    case FieldTypes.TaxonomyFieldControl:
    TaxonomyFieldControl tfc = control as TaxonomyFieldControl;
    if (!tfc.IsValid)
    return true;
    break;
    default:
    break;
    return false;
    enum FieldTypes
    DateTimeField, FieldValue, TextField, RichImageField, NoteField, RichHtmlField, PublishingScheduleFieldControl, TaxonomyFieldControl, BooleanField, ComputedField
      4. i add a reference for the Sharepoint.taxnomy
      5. then i deploy the solution to my site collection. and now i can see the new solution inside the farm solution under central administration.
    but not sure if these are all the required steps to register the user control or still i need to do extra steps ?

  • I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    Add another e-mail account to your messages, so people could reach you on that e-mail from messages. As soon as you are online (if you have wifi only iPad) you are able to send and receive messages. i.e. your son can send you a messages from his iPhone addressing it to your (that additional) e-mail address.

  • I rented a movie on my mini iPad from iTunes. There is a blank box in the video folder and no download button. Any suggestions?

    I rented a movie on my mini iPad from iTunes. There is a blank box in the video folder and no download button. When I press the box the movie comes up but won't download.  There is usually a download button at the bottom of the screen but is not there.  Any suggestions?

    You move the movie from iTunes to iPad (tap to enlarge image)
    Movie will be moved to the Videos app.

  • Need to remove the header and footer regions on one page

    Hi,
    I have a requirement to remove the header and footer regions on one page only. The regions I'm referring to contain the following:
    Header:
    Company logo, Home link, Logout link, Preferences link
    Footer:
    Copyright info, Privacy Statement, Home link, Logout link, Preferences link
    These are the standard Oracle header and footer regions/page items, so I am not specifying a particular page name, although it would be the create time cards page we want to modify.
    Also, we only want to remove these regions/items from ONE page, not an entire responsibility.
    Any help is greatly appreciated.
    Thanks!
    Suzanne

    Hi,
    In order to hide,
    Home link, Logout link, Preferences link
    Use this code in the processrequest of the controller on the page on which you want tohide these
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    page.setGlobalButtons((oracle.cabo.ui.UINode)null);
    And for hiding the Copyright info, Privacy Statement:
    Click on Personalise page link
    then Click on Choose Context
    Choose "OAFooter" as Scope
    and click "Apply"
    and then Personalise the Copyright and Privay Statememnt icon and set rendered as False.
    Thanks,
    Gaurav
    Edited by: Gauravv on Aug 25, 2009 8:36 PM

  • Remove a panel and add a new panel

    hi guys,
    The scenario is like this
    i have a frame and a panel on that frame(call mainPanel)
    so i want to create another panel (firstPanel) to place my information
    by a click of a button placed at the mainPanel, i want to have another panel (secondPanel) to replace the firstPanel
    I tried the remove and add method, but i doesn't work at all
    The firstPanel stays at the mainPanel
    I want to know how to do it
    Please help me with some codes
    thanks!

    As far as I understand, you want to implements a sort of JTabbedPane. See this component, maybe it do what you want. But if you want to switch the panels on a button pressed instead of tabs, you may probably use the CardLayout.
    A CardLayout object is a layout manager for a container. It treats each component in the container as a card. Only one card is visible at a time, and the container acts as a stack of cards.
    The ordering of cards is determined by the container's own internal ordering of its component objects. CardLayout defines a set of methods that allow an application to flip through these cards sequentially, or to show a specified card. The addLayoutComponent method can be used to associate a string identifier with a given card for fast random access.
    So you can easily switch for one panel or another.
    Happy coding!

  • Is there a way to block all video's and add's from youtube?

    Hello Apple Support Communities!
    I would like to watch youtube without the add's and all the other clutter around the video's. Now there is a really nice extension for Safari which can do that for you: clea.nr videos. Does a really nice job (see picture) - try it.
    However the video add's which probably are the most annoying especially when they are dutch still show up despite having installed adblock. I noticed that there is no such thing as Adblockplus for safari (in chome and firefox it solves this problem). Is there a fix for this problem in safari? Or it's chosing between clea.nr video's with video add's or for chrome which I don't like.
    I'm using a macbook air with 10.8.5 and safari 6.0.5.
    Many thanks to you all!
    N.

    Using http://clicktoflash.com/ or similar extensions allows viewing HTML5 video instead of Flash for most youtube pages, and here, on the few  pages that I see, anyway... means that no video ads are shown before the main one.
    Glimmerblocker can be set up to block the ads in Youtube/ Flash (or still could  recently, when I tried it)

  • How to remove the delete and edit toolbar buttons from the Overview page

    Hi,
    In the account/contact overview page, we see that the interaction history assignment block does not support the EDIT and DELETE options.
    However, when we click on the hyperlink description of an activity in the interaction history, we get into the overview page of the activity. Here we can see the DELETE button and the EDIT button.
    Is there a way to remove these two options from the overview page of an activity which is in COMPLETED status and in the interaction history section?
    Please advice.
    Thanks & Best Regards,
    Ramesh.
    PS: We use CRM 5.2 Web UI.

    You can hide the box that shows the snippets and the "Restore Previous Session" box with code in userContent.css
    *http://kb.mozillazine.org/userContent.css
    *http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    *ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@-moz-document url(about:home){
    /* hide snippet container on the about:home page */
    #snippetContainer { display: none !important; }
    /* hide sessionRestore container on the about:home page */
    #sessionRestoreContainer { display: none !important; }
    </nowiki></pre>

  • Need to remove video clip and save audio track.

    We are trying to remove a segment of video clip and save the audio track that goes with it.    We intend to fill that open segment with transitions of still photos, all the while allowing the narrator, who has now been "clipped" to keep speaking.
    We are using CS3 Premier Pro.
    Any advise would be greatly appreciated!   Thanks for your wisdom...
    Mary M.
    Yellowstone National Park.

    Mary,
    I find that just Alt-clicking on the Video and hitting Delete to be the quickest method. That does exactly the same as Unlinking, with two keystrokes - Atl-click Video, Del key.
    Hope that helps,
    Hunt

  • Alert Category missing in RWB and "Add Rule" button disabled

    Hi,
    1) I have added an Alert category in ALRTCATDEF but this alert is not
    visible in Runtime workbench -> Alert configuration. I have even
    pressed the "Update Table" button but still the alert category is
    missing the table.
    2) The "Add Rule" button in Runtime workbench -> "Alert configuration"
    is missing, even after selecting an alert category from the table of
    Alert categories.
    Is this some problem with my browser or something else??
    I am using IE8 / IE6/ Moziall Firefox and PI 7.1
    regrds,
    Piyush

    Hi Piyush,
    -->make sure that you created the alert category in ABAP stack of PI only.Please recheck once.
    -->In RWB if the buttons are in diabled mode means please check the roles for the user which you are using.Make sure that all the roles are assigned to your user for creating the alert category and alert rule.
    have a try with these
    Thanks

  • Is it possible to remove unnecessary hardware and add more memory?

    I wanted to know if it was at all possible to remove, say, my cd drive and add more memory.

    Yes, it certainly is.  Look at this link:
    http://eshop.macsales.com/item/OWC/DDAMBS0GB/
    Ciao.

  • Removing video controls in iBooks Author

    Is there a way that I can have it so when you a play a video in my iBook (that doesn't go full screen) the video controls don't show?

    KT, have you been able to get animated GIFs to work?
    if so what program do you use. the ones I tried from Photoshop didn't work, maybey wrong setting.
    While GIF media files may not be directly supported by IBA nor can you embed them directly in an IBA widget, they are supported by most HTML environments and an HTML widget containing an external URL reference will play within your book. Of course, this requires access to the internet and would probably only be worth the effort in situations where use of this already generated GIF file is more efficient than creating an HTML 5 animated version of the same content.
    If interested, here is a link to a zipped sample widget file that will play my signature animated GIF below in an iBooks file: SAMPLE WIDGET

  • How to get the name of a duplicated control or created control and add a callback to it

    Hi All,
    Depending on how many input points I need, I am duplicating a numeric or string input with the DuplicateCtrl function. My question is, how do I get the name and id of the control that was just created, and how can i assign a callback to it? Alternately, would it be better to create a fresh ctrl instead of duplicating?
    Thanks in advance!
    Solved!
    Go to Solution.

    Hi TurboMetrologist,
    why are you trying to get the control constant name? Keep in mind that you cannot use that name to address the control; control names are actually simply macros in the include file associated to the UIR, that is, the compiler preprocesses the code and wherever it finds PANEL_CONTROL names substitutes the corresponding numeric value as parameters to the functions (and consequently 'control' parameter is an int and not a char*)
    That is why NewCtrl () or DuplicateCtrl () functions return a control ID: it is the handle to the new object, our only way to manipulate it. You will need to store this handle into a non-volatile memory so that you can access it durng program life.
    Additionally, there are other ways to assign some particular meaning to a control than swiching on the control constant name. You could for example use the callbackData parameter to differentiate between different copies of a control.
    Let me explain with an example. You told that you need several inputs (dynamically created as you don't know in advance how many of them to use); a clean solution could be to:
    Design a master copy of one control in the UIR editor, where it is easy to customize it; assign also a callback function, if it has to be common to all copies of the control
    Programmatically assign a callbackData value to that control, e.g. SetCtrlAttribute (..., ..., ATTR_CALLBACK_DATA, (void *)1);
    Duplicate the control and then assign a different callbackData
    for (i = 2; i < 5; i++) {
       handle = DuplicateCtrl (...);
       SetCtrlAttribute (..., handle, ATTR_CALLBACK_DATA, (void *)i);
    By operating this way, every time the control callback is fired by any control it will receive the assigned callbackData, and you will be able to differentiate your code by a simple switch:
    switch ((int)callbackData) {
       case 1:    // The master control
          break;
       case 2:    // The first duplicated control
          break;
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I stop the nuisance video ads and add links being generatesd, since getting the latest Firefox update installed, I HATE them getting in the way?

    Little video ads appear at random times on the lower right of my screen. Also, in some sites a few "key words" are being converted into hyperlinks to unwanted advertisers. In some instances, we also see this appearing on the East Arkansas Community "Campus Connect" site, promoting other online educational organizations that are in potential competition with our institution. This is unacceptable.

    hello angrommet, this sounds like a problem caused by adware active on your pc. please go to ''firefox > addons > extensions'' & remove any suspicious entries (toolbars, things that you have not installed intentionally, don't know what purpose they serve, etc). also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[Troubleshoot Firefox issues caused by malware]]

  • If I buy a used Ipod Touch, how can I remove their music and add mine?

    If I buy someone else's IPod Touch, how can I access their music to remove it and then add mine to it?

    Two ways:
    - connect to a computer with a computer with iTunes and restore the iPod to factory defaults/new iPod.
    - Connect the iPod to a computer or charger and on the iPod go to: Setting>General>Reset and tap Erase all content and settings.The above maakes it lke a new iPod.  For how to restore see:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

Maybe you are looking for