Video playback HTML5 on Android, after the "back" button is used.

Hi, I'm looking to create an app that plays the video online, using the HTML5 video tag. I have to support Android and have a problem on this platform. My app OK video online games when the application is first started, but if you exit through the back button and then restarted, the video will not play again. I have to "force stop" the app before it will work again. If I exit the application using the home button and restart, the video is very well and reproduce again OK. This behavior occurs if I'm playing a video hosted remotely or locally hosted video. The MP4 video format, I have tried all other formats at the moment. Can someone tell me what I am doing wrong? I guess that the needs of the "back" button a kind of reset or clear-up to the release of the app, but I can't find anything about it!

I tried to catch and disabling the "back" button event, but that doesn't seem to work at all, maybe because I'm using the Ionic framework and do it in the wrong place. But in any case I don't really want turn off if I can help it.

I have KeepRunning = false in my file config.xml.

I am currently using PhoneGap Build, CLI 5.2.0, 4.1.1 Android on a Samsung tablet.

My code (I am disabling the button full screen via CSS):

<video id="vidStart" class="videoDisplay" controls="controls" webkit-playsinline>
                <source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">

                Your browser does not support the video tag.
</video> 

Thank you, Andrew

Using plugins in your application? If this isn't the case, you can consider using the Plugin of crosswalk (https://www.npmjs.com/package/cordova-plugin-crosswalk-webview), in this way, that you're not having to deal with the glitches of web view frustrating that occur on different versions of Android.

Also, when this problem occurs, you see anything on your machine (adb logcat) console?

Tags: PhoneGap

Similar Questions

  • What happened to the 'back' button that used to be in the upper left corner of the page?

    All of a sudden yesterday, I lost the ability to return to the home page when I'm done with a Web site.
    I also is no longer a way to connect to a Web site with a www...

    If you do not see the menus or toolbars, Firefox may be full-screen mode. The F11 function key toggles between the normal modes and full screen.

    Make sure that your Navigation bar (main bar with button URL box and back) is activated using one of these:

    • Right click on a zone empty of the tab bar > Navigation bar
    • Press the Alt key > menu view > toolbars > Navigation toolbar

    If the Navigation bar is visible, but some controls are missing, try resetting your toolbars as follows:

    • Right click on a zone empty of the tab bar > customize
    • Press the Alt key > menu view > toolbars > customize

    In the Customize dialog box, click Restore Default Set.

    A little luck?

  • Legend when the "back" button is used

    Hello

    I have a problem, I opened a modal of legend, up here, everything is beautiful. But when the user types the button "return" (the return of the Android device button) the application for return should another view (OK), but the legend is on the screen.

    Any suggestions?

    I found a solution:

    1 earphone is not the component itself, but systemManager.stage

    2 listening test phase of capture as systemManager.stage.addEventListener (KeyboardEvent.KEY_DOWN, backKeyHandler, true)

    3. in the handler if (e.keyCode == Keyboard.BACK) e.preventDefault ();

    Ty

  • Impossible to return to the place where I ieft off after clicking the back button

    When I browse Smugmug photos, after you select the gallery that I want, when I'm done and I click the back button it brings back me initially galleries and not where I chose the last Gallery or photo. IE and chrome don't do that.

    Thank you for your question and I'm happy to help you. I understand that the back button does not work as expected in Firefox, all seeking to smugmug.

    At the same time as a work autour, if you right click on the back button, it will give the list all the pages that are visited.

  • Embedded YouTube videos work locally, but not after the FTP publishing. Works locally and on the web in all other browsers. Using FF 17.0.1 and Adobe Flash 11.5.502

    Found a Tube-video, which I embarked on one of the pages of my site. Using FF 17.0.1 and Adobe Flash 11.5.502, YouTube-videos work locally, but not after the FTP publishing.

    I work reasonable locally and on the web in all other browsers.

    Stupid FF?

    The HTML code is as follows:

    <table WIDTH="770" CELLPADDING="0" CELLSPACING="0">
      <tr VALIGN="TOP">
        <td VALIGN="top" ALIGN="left" width="463">
    <object WIDTH="340" HEIGHT="193">
          <param name="movie" value="http://www.youtube.com/v/N6GvuO_9tLY?fs=1?amp;hl=de_DE">
          <param name="allowFullScreen" value="true">
          <param name="allowscriptaccess" value="always"><embed SRC="http://www.youtube.com/v/N6GvuO_9tLY?fs=1?amp;hl=de_DE" TYPE="application/x-shockwave-flash" WIDTH="340" HEIGHT="193">
        </object>
    </td>
        <td VALIGN="top" ALIGN="left" width="403"></td>
        </tr>
    </table>

    I've experimented on the use of < iframe > instead of < object >. No change. Cache cleared on each attempt.

    Any thoughts?

    If it works in Firefox Safe mode and then disable all extensions (Tools > Modules > Extensions) and then try to find out who is causing by allowing an extension at a time until the problem reappears.

    Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    Alternatively, you can try to disable hardware acceleration in Firefox.

  • When click the "back" button after filling out web form, I can't, a message says that Firefox must send information that will be rpeat any action... Why can I go back?

    My current Firefox is version 9.0.1 update
    "when I click on the"back"button after filling web form or make payment online etc, I can't go back to my homepage, if I press the BACK BUTTON (arrow) a message said.
    "Firefox must send information that will repeat any action (for example, a search or order confirmation) that was carried out earlier.

    I don't want to re - order or repeat the process over. The only thing I can do is to leave Firefox and start again which is very painful.

    Any solution will be appreciated.

    Older Firefox had this coming message in case you have used the back to go to a page that is requested from the server with the POST data specific to a form previously sent.

    You receive an alert to send POST data if you return to a page or refresh a page that was requested in advance from the server by submitting form via a (hidden) MESSAGE form data.

    Firefox can only make sure to get the same page send this POST form.

    Firefox doesn't know what it means shape data, so Firefox asks for confirmation before sending the form data so action can you take to repeat an action and buy another article or post a message once.

    A way to prevent that pop up is not to use the back button, but to open the links on a page that have been requested from a server by sending a MESSAGE form in a new tab (window) with a middle click or a Ctrl + left click.

    Then you can close the tab or window to go back.

  • Why the 'Back' button often fails for the first time after moving to a new page to work?

    During further testing, I can repeat this bug every time: it happens when I clicked on a page background (focus it and allow scrolling arrow key). After having done this, clicking on the back button does not work as expected: don't not visually get "push the button" and the browser does not return to the previous page. Instead, everything on the menu (help, all file) becomes grey as if Firefox just lost focus.

    It almost seems like Firefox 7 has a 'smart' function to prevent accidental 'Back' presses, but if so, it does not work!

    Please let me know if you need more information about this bug.

    See:

    The default value of the pref Network.http.Max - connections has been increased from 30 up to 256 in versions of Firefox 6 +.

    Try to decrease the value of the pref Network.http.Max - connections 256-30 such as used in versions of Firefox 3.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • After I print something, the back button disappears. How to fix? He's never done that with 3.5, but made with 4 or 5

    When you navigate around a site, if I stop and print a copy of a post or something after I'm done the back button no longer works and I have to exit firefox and go back and start over. As mentioned, that never happened with previous editions of firefox, but when I upgraded to 4.0, so I uninstalled and went back to 3.6 where the problem has disappeared. I upgraded to 5.0, the problem has been fixed, but it still happens hope. A way to solve this problem, in addition to return to 3.6? Thank you, Henry

    Try mode without failure of Firefox.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    1. You can open the Firefox 4, 5, 6, 7 SafeMode pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    2. Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox SafeMode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • Authenticate when the user clicks on the "back" button after disconnection

    Hi all

    Is there a way that the user can be required to authenticate, if simply disconnected, then click on the back button.

    I have a situation where a user who works on relatively sensitive data disconnects (yeees they should close the browser and all, but they never obey instructions...) and someone else can come around and click on the back button and see it as what he had worked on.

    Is it possible to disable this behavior, or otherwise force a reload/re-authentication.

    Thank you.

    Hello

    You can do this by writing this code in each page of your application

    Write this in the html header:

    
    

    and write it in the Page HTML Body attribute:

    onunload="javascript:history.go(1)";
    

    It will not allow users to go back.

    Thank you
    Tauceef

  • How can I stop the page to reload automatically when I hit the back button?

    A few months back, I upgraded to a new laptop, and since then, when I hit the back button, it refreshes the previous page from what I can understand. On my last laptop, if I was doing some research on a site and click the previous button, the search bar would be automatically ready to hit the BACKSPACE and delete what is there for a new search. Now, when I hit the back button, I have to manually click inside the search box to do, and I hate it. When you are doing research on multiple sites, like this time savers really help. This applies to regular sites (forums, online stores, etc.), not search like Google sites.

    I don't have this problem on my old laptop and does not know how to solve this problem on this one. They are the two Win7 x 64, and version of the browser is not the issue. I started Firefox on this computer that same exact on the last of them, and after the updates, it's always the same. I am currently on 8.0 but will soon be upgrading to the new.

    Do you mean that the search bar on this page focus?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Can I disable the new shipment when I hit the back button

    After you send a form (search form, say) and then by clicking a link on the page of results ("action"), I want to go back to the page of the form and change the criteria of form. However, when I hit the back button Firefox always want to re-post form data before I can go back further in history. Very clumsy. Is there a way to prevent this re-post and simply open the cached page?

    Google Chrome altogether kindly view of a page instead of the page of 'action' of the form which gives you the opportunity to submit again, or you can simply click back to return to the page of the form. I don't think that Firefox should force you to submit a form if you just try to navigate back in your history.

    I used to work around this problem by using the slot back button to choose the page of form directly, but the navigation/FF4 FF5 default buttons is not that much longer (that I can find anyway).

    Is there a topic: config that will prevent this re - submit forced?

    Use one of the following methods to open the history list and work around the page that gives the alert:

    • Right-click on the back or next button
    • Press and hold the left button of the mouse on the active back or forward button until the list opens

    You can watch this extension:

  • The back button brings back me to the top of the previous page instead of the place in the previous page, where I was before. How does it evolve?

    On a list as Craiglists which has 100s of lists on a page, you click on the link to access the item description page, after the ad, I then click on the back button & instead of back to where I was on the previous page, I went back to the top of the page. It's a lot of time, because I then locate the list I was before so I can continue my review of the list of others.

    Maybe it's a problem of compatibility add-on or extension.
    I had the same problem and I seem to have solved by uninstalling APTURE HIGHLIGHTS 1.6. following the standard diagnostic test not more white flashes and now my scroll position is known.
    It also cleared up a bad freeze/hang up, I had after waking from sleep/hibernate.

  • I have most of the software UTD and the magic mouse 2.  I continue to have these episodes where Safari zoomed spontaneously and I can't cancel it without hitting the back button of the browser.  Did someone came across this?

    On an IMac 27 "OS is El Capitan 10.11.2 Magic Mouse 2, Safari 9.0.2

    Seen the episodes while in Safari, it suddenly zoomed in and let even me not to scroll the page.  I have to click on the back button to cancel it. It seems to happen spontaneously, but my hand is still physically on the mouse, just I don't do anything with or to the mouse.  Seems to be developed after I went to the Magic Mouse 2.  Any ideas?

    Please, open the mouse in system preferences and uncheck that smart zoom.

  • How to remove the default save alert by pressing the "back" button

    Hi all

    Scenario: I have a screen in which, after I press the back button, the default alert box appears with the options "save, delete, cancel. How do I remove this menu?

    I tried to find it on the forum, but I guess that I do not use the search words to the right. Sorry for starting a new thread, in case it is a solved problem.

    Override the onSavePrompt method in your screen class

    and return true;

    protected boolean onSavePrompt() {
            return true;
    
        }
    

Maybe you are looking for