Android Question MP4 won't play in webview

Discussion in 'Android Questions' started by andredamen, Feb 28, 2015.

  1. andredamen

    andredamen Member Licensed User

    When I go to a website I can play the mp4-video. Within my app I go to the same website with webview and I can the the whole website, but the mp4-video won't play. In the Manifest I include SetApplicationAttribute(android:hardwareAccelerated, "true") and the video does play in a good way on tablets, but not on a telephone (androidversion 4.4.2). What can I do to let it play witin the webview?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    On older devices you could have played videos with Flash. However this will not work on more recent devices.

    You can handle OverrideUrl event and if the link is a mp4 link show the video with VideoView.
     
  3. andredamen

    andredamen Member Licensed User

    Where can I find the videoview library?
     
  4. DonManfred

    DonManfred Expert Licensed User

  5. andredamen

    andredamen Member Licensed User

    Thanks. I now know that I have to use the audio library. I was looking for a video library.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice