1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need code for video detection: iPad or Desktop users

Discussion in 'BlackHat Lounge' started by appliedscience, Aug 15, 2013.

  1. appliedscience

    appliedscience Regular Member

    Joined:
    Jan 28, 2011
    Messages:
    202
    Likes Received:
    5
    Hey all,

    Hoping someone has this code they can copy/paste here for me.

    I have a sales copy video on autoplay, but the video doesn't work on iPad, iPhone, etc.

    Anyone have code I can use along with JWplayer so IF desktop they see the autoplay video, if iPad (etc) they get the video with the play button which they need to click to play?

    Thanks in advance.
     
  2. qrazy

    qrazy Senior Member

    Joined:
    Mar 19, 2012
    Messages:
    1,113
    Likes Received:
    1,712
    Location:
    Banana Republic
  3. appliedscience

    appliedscience Regular Member

    Joined:
    Jan 28, 2011
    Messages:
    202
    Likes Received:
    5
    Thanks but that's really confusing to me. I filled in everything as outlined but it didn't work (actually the entire player didn't work).

    Is there another option out there?

    Thanks.

    Also, I'm just hosting a HTML/CSS site not WP.
     
  4. indianbill007

    indianbill007 Jr. VIP Jr. VIP

    Joined:
    Jan 8, 2010
    Messages:
    4,815
    Likes Received:
    4,051
    Occupation:
    Making Money when the world is sleeping
    Location:
    Menlo Park - Next to Zuck
    Iphone and Ipad dont load flash swf based files. That is by design, thanks to Mr Steve Jobs who wanted HTML5 to be the de-facto standard on the web and mobile.

    Here is simple solution which I use,

    On the sales page/landing page, check the User-Agent, if its any iOS based device, just load a html5 based player instead of flash based player.

    Problem solved :)
     
    • Thanks Thanks x 1
  5. appliedscience

    appliedscience Regular Member

    Joined:
    Jan 28, 2011
    Messages:
    202
    Likes Received:
    5
    Yes, this is what I'm wanting to do.

    Do you have code you could share?
     
  6. royserpa

    royserpa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2011
    Messages:
    4,654
    Likes Received:
    3,496
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Royserpa
    Home Page:
    I think you can find the solution over at stackoverflow, there are plenty of Q&A there. Plus, you can always do one yourself on php or on java.

    Pls pm me if you would like to pay for a solution :)