tripwater
06-24-2010, 11:04 AM
Hello, this is for a project that is a private business app that you have to have a login for so I can't give you a link but here is my problem..
The initial solution was window.open(path to movie )
and it loaded in a popup. I am now ( using ajax calls ) calling a php page that knows where you are in the system and calls the appropriate training video. If I alert the comm response it shows me the correct path to my movie and if I take that path and place it in the browser the movie plays, how ever if I try to load my movie like this
<div onclick="this.style.display='none';" style="display: block; width: 1640px; height: 947px;" id="video_overlay"><div id="for_video">
<embed width="1024" height="768" pluginspage="http://www.apple.com/quicktime/" autoplay="true" bgcolor="000000" src="path_to_movie.mov">
</div>
</div>
Nothing shows. I am new to all this so I may be doing something way wrong here. To explain the divs above, I am, in my own way, re-creating the look of the lightbox technique without all the extra code. It is a much more simple solution without all the fade effects. The main div loads a transparent layer and within that layer I load the response from my ajax call which the div with the id 'for_video' and contents within.
I assume I need something else added to the embed code to make the movie show? I looked on apple's site for the tutorial http://www.apple.com/quicktime/tutorials/embed2.html and my tag looks exactly like theirs so I am not sure what I am doing wrong.
Any help with this would be grand. Thanks
The initial solution was window.open(path to movie )
and it loaded in a popup. I am now ( using ajax calls ) calling a php page that knows where you are in the system and calls the appropriate training video. If I alert the comm response it shows me the correct path to my movie and if I take that path and place it in the browser the movie plays, how ever if I try to load my movie like this
<div onclick="this.style.display='none';" style="display: block; width: 1640px; height: 947px;" id="video_overlay"><div id="for_video">
<embed width="1024" height="768" pluginspage="http://www.apple.com/quicktime/" autoplay="true" bgcolor="000000" src="path_to_movie.mov">
</div>
</div>
Nothing shows. I am new to all this so I may be doing something way wrong here. To explain the divs above, I am, in my own way, re-creating the look of the lightbox technique without all the extra code. It is a much more simple solution without all the fade effects. The main div loads a transparent layer and within that layer I load the response from my ajax call which the div with the id 'for_video' and contents within.
I assume I need something else added to the embed code to make the movie show? I looked on apple's site for the tutorial http://www.apple.com/quicktime/tutorials/embed2.html and my tag looks exactly like theirs so I am not sure what I am doing wrong.
Any help with this would be grand. Thanks