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

  • SEARCH
  • Home
  • 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 9020377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:00:02+00:00 2026-06-16T05:00:02+00:00

I am using an external player to display a video. but when i append

  • 0

I am using an external player to display a video. but when i append it in a div it just shows [object Object]
I have extracted the video by this function in javascript:

<script type="text/javascript">function loadArchiveInPlayer(vdo) {
var s12 = new SWFObject('http://jetpitch.com/hdflvplayer/hdplayer.swf','player','513','285','9');
    s12.addParam('allowfullscreen','true');
    s12.addParam('allowscriptaccess','always');
    s12.addParam('wmode','transparent');
    s12.addVariable('file',vdo);    enter code here
    s12.addVariable('Preview','<?php echo SITEROOT; ?>/images/video-load-img.jpg');
    s12.write('mediaspace');

    //document.getElementById("newimg1").appendChild(s12);

    return s12;
} </script>

After returning the video it is displayed by this:

<script type="text/javascript"> var s22 = loadArchiveInPlayer(vdo);
document.getElementById('newimg1').innerHTML = s22; </script>

But the div “newimg1” dosent displays the video. Please Help.

  • 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-06-16T05:00:03+00:00Added an answer on June 16, 2026 at 5:00 am

    The line

    s12.write('mediaspace');
    

    does the embedding of the flash player into your websites DOM. It adds the flash object into a HTML element with id="mediaspace". Just make sure that you have a div with such an ID in your document.

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

Sidebar

Related Questions

I'm using an external API to receive xml and serializing this to an object
I have a little application here which deals with QuickTime video using QTKit. This
I have flash resizing it's container div by using external interface to call the
I am trying to clear images using external jquery file but it's not showing
I am using the external library IMAPClient. When the login fails, i see this
This is my first time using an external library, and I'm a bit nervous
I'm using external XML to set flash vars. Alpha works, but not Visibility. How
Question I have video player chrome buttons designed with HTML/CSS. The full screen button
I'm using external mongo instance at mongohq, so I have MONGO_URL=mongodb://heroku:censored@alex.mongohq.com:10025/appCensored in in my
I am developing a video player using html5 for iPad and iPhone device, I

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.