Skip to main content
Participant
March 27, 2019
Answered

Bom dia good morning

  • March 27, 2019
  • 2 replies
  • 407 views

Como não exibir um arquivo swf em uma pagina html pra celulares e ipads, substituindo por uma imagem, How i can not to show swf in the html document to cell phone and ipad devices, showing a image in the same place

    This topic has been closed for replies.
    Correct answer kdmemory

    evaristoe17273259  wrote

    Como não exibir um arquivo swf em uma pagina html pra celulares e ipads, substituindo por uma imagem, How i can not to show swf in the html document to cell phone and ipad devices, showing a image in the same place

    "How not to display a SWF file in an HTML page for mobile phones and ipads, replacing it with an image, How I can not to show SWF in the HTML document to cell phone and ipad devices, showing a image in the same place"

    It will not display on most mobile phones and tablets (iPads) because it's not capable of running there. But I think you get an ugly "Get Adobe Flash Player" button instead, which doesn't help at all.

    What you can do, is to include some smart browser sniffing to detect the device on which the browser runs. I am using UA Parser from Feisalman . It's a bit of a learning effort but you can detect for example device.type and it gives you either console, mobile, tablet, smarttv, wearable, embedded. Knowing that you can serve with a little Javascript an image instead of the SWF.

    This is the link GitHub - faisalman/ua-parser-js: UAParser.js - JavaScript library to identify browser, engine, OS, CPU, and device type/…

    Klaus

    2 replies

    kdmemory
    kdmemoryCorrect answer
    Inspiring
    March 27, 2019

    evaristoe17273259  wrote

    Como não exibir um arquivo swf em uma pagina html pra celulares e ipads, substituindo por uma imagem, How i can not to show swf in the html document to cell phone and ipad devices, showing a image in the same place

    "How not to display a SWF file in an HTML page for mobile phones and ipads, replacing it with an image, How I can not to show SWF in the HTML document to cell phone and ipad devices, showing a image in the same place"

    It will not display on most mobile phones and tablets (iPads) because it's not capable of running there. But I think you get an ugly "Get Adobe Flash Player" button instead, which doesn't help at all.

    What you can do, is to include some smart browser sniffing to detect the device on which the browser runs. I am using UA Parser from Feisalman . It's a bit of a learning effort but you can detect for example device.type and it gives you either console, mobile, tablet, smarttv, wearable, embedded. Knowing that you can serve with a little Javascript an image instead of the SWF.

    This is the link GitHub - faisalman/ua-parser-js: UAParser.js - JavaScript library to identify browser, engine, OS, CPU, and device type/…

    Klaus

    avid_body16B8
    Legend
    March 27, 2019

    You need to add a poster image in your html file.

    See this here:

    https://tubularinsights.com/html-5-tutorial-video-fallback/