Playing MP4 using AS3

Page: 1

Author Post
Member
Registered: May 2012
Posts: 3
Hi There

I am trying to play MP4 files using AS3.
My problem is that the first video plays in the group and then If i click next just a white screen appears and the next video does not play.

If I click previous again the first video does not play either.

I need to use action script or any other player that supports Ipad and that does not require any downloads.I have also tried flowplayer but have had no luck with that either.

I am completely stuck any suggestions would be greatly appreciated.

See code below



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html lang="en">
<head>
<title>:: Draftfcb – 6.5 Seconds That Matter ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<link rel="stylesheet" href="floatbox.css" type="text/css" media="all"/>
<script type="text/javascript" src="floatbox.js"></script>



</head>
<body>

<a href="/media/big_img1d.jpg" class="floatbox" data-fb-options="showThis:false group:demo1 ">click me video AS3</a>

<br /><br /><br />
<div class="floatbox" data-fb-options="group:demo1" style="visibility:hidden" >

<a href="media/audio/video_AS3.swf?fileVideo=Hilux_Buddy.mp4" data-fb-options="type:flash group:demo1" title="video 1"></a>
<a href="media/audio/video_AS3.swf?fileVideo=BUDDY01.mp4" data-fb-options="type:flash group:demo1" title="video 2"></a>

</div>



</body>
</html>


Administrator
Registered: Aug 2008
Posts: 3382
I'm not sure I'll be able to help you on this. The problem seems to lie with the Flash video player itself.

I set up a small test page based on yours that uses the youtube player, which is also an swf flash player. This test page works fine. The only meaningful difference is the flash player in use.

My test page can be found at http://floatboxjs.com/misc/tvid. It will likely disappear in a couple of days.

The only thing I could suggest is to perhaps set up your videos to play on their own small standalone pages and load these pages as iframe content. Changing things up like this might give different results. An example of this iframe-based approach can be found on the Multimedia tab of the demo page as the "Local: flowplayer flv" example.

Page: 1