Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7084815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:20:54+00:00 2026-05-28T07:20:54+00:00

Firstly, I’d like to show you a piece of code. The code is a

  • 0

Firstly, I’d like to show you a piece of code. The code is a simple (old style) of embedding a YouTube movie to your website:

<object width="560" height="315">
    <param name="movie" value="http://www.youtube.com/v/-pGYHDcQDwA?version=3&amp;hl=da_DK"></param>
    <param name="allowFullScreen" value="true"></param>
    <param name="allowscriptaccess" value="always"></param>
    <embed src="http://www.youtube.com/v/-pGYHDcQDwA?version=3&amp;hl=da_DK" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>

It’s pretty simple and works.

My current solution

I also have a video player, which allows for embedding also. The embed code is basically the same:

<object width="387" height="316" align="top">
    <param name="movie" value="http://example.com/embedplayer.swf"></param>
    <param name="salign" value="lt" /></param>
    <param name="allowFullScreen" value="true"></param>
    <param name="allowscriptaccess" value="always"></param>
    <param name="wmode" value="transparent"></param>
    <embed src="http://example.com/embedplayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" salign="lt" width="387" height="316"></embed>
</object>

My Issue

I’d like to allow the viewer to see my videos on an iPad or iPhone.
File formats isn’t the problem, as the vidoes has been encoded to several needed formats.

What I’d like is to have similar functionality as the YouTube embed code. When viewing a page with the YouTube embed code on a iPad/iPhone, something else appears (my guess is an image with a link to the correct file format).

When viewing my own embed code on an iPad/iPhone, this obviously doesn’t work as I link directly to a SWF file.

What have I tried?

Trying to find out how and what the YouTube embed/object serves, I’ve simply tried doing some simple GET requests to the YouTube URL specified in the embed code ( http://www.youtube.com/v/-pGYHDcQDwA?version=3&hl=da_DK ) and this has given my mostly 404’s (because of bad headers) or a new HTML source with a new Flash object.
In other words, I wasn’t able to manually reproduce what is served for the iPad/iPhone.

A possible/alternative solution

YouTube also allows for a new method of embedding.
It looks like this:

<iframe width="560" height="315" src="http://www.youtube.com/embed/-pGYHDcQDwA" frameborder="0" allowfullscreen></iframe>

This is pretty transparent to me. Embedding another page in the iframe allows the external page to do the checks which allows serving the right content to the client (HTML5, Flash or something else). No big deal.

The questions

  1. How does this work for YouTube’s old embed code? Using embed/object tags for me, should embed some sort of specified object, but it seems that YouTube’s embed code allows for different content in the embed/object elements.
  2. Would the new (alternative solution) be a better way to do this? It seems flexible and allows for future easy maintanence. But I always hear that iframes is a no-no.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:20:55+00:00Added an answer on May 28, 2026 at 7:20 am

    It seems that I was looking in the wrong direction.

    Question one:
    Testing other video sites with embed codes on the iPhone/iPad gave me the result I expected – a blank area.

    It seems that, through Content Negotiation, the device browser is able to replace the object/embed tags with the elements needed for starting the YouTube application on the device.

    This implies that I cannot create a similar solution, which means I have to either create/use a HTML5 Video player or use the alternative solution with an iframe (I could combine the two).

    This makes answering the second question redundant as I have no other alternatives.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, thanks for your help. Here's my situation: I'm trying to edit the code
Firstly, let me set out what I'd like to do. Assume I have three
Firstly I'd like to say my knowledge on Excel is fairly limited, and I'm
firstly, pardon my pseudo-code, i think in this case it is more legible than
Firstly here is my PHP CODE if(!isset($_POST['selection'])){ $missing['selection'] = $required['selection']; } if(empty($missing)) { post2session();
Firstly I'd like to start by apologizing for the potentially miss-leading title... I am
Firstly I plan to CSS to style pages (with fluid layouts) which are targetted
Firstly, I've got functions like this. void func1(); void func2(); void func3(); Then I
Firstly, Thanks everyone for all your help. I can see the successful completion of
Firstly here is the code that im trying to get to work- private: System::Void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.