Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to Play dynamic video into flowlayer
- <?php
- if($total_count > 0)
- {
- while($val =$objDB->get_row($rs_member))
- {
- // $flowplayer = "player".$val['video_id'];
- $VideoPath = "uploadedvideo/video/".$val['video'];
- ?>
- <div style="border:#FF0000;">
- <div id="video1">
- <a href="<?=$VideoPath?>"
- style="display:block;width:425px;height:300px;"
- id="player">
- </a>
- <!-- this will install flowplayer inside previous A- tag. -->
- <script>
- flowplayer("player", "flowplayer-3.2.5.swf", {
- clip: {
- // these two configuration variables does the trick
- url: '<?=$VideoPath?>',
- autoPlay: false,
- autoBuffering: true // <- do not place a comma here
- }
- });
- </script>
- </div>
- </div>
- <?php
- }
- }
- ?>
- <?php
- if($total_count > 0)
- {
- $Videos = array();
- while($val =$objDB->get_row($rs_member))
- {
- // $flowplayer = "player".$val['video_id'];
- $Videos[] = "uploadedvideo/video/".$val['video'];
- }
- $VideoPlaylist = "'" . implode("', '", $Videos) . "'"; // will look something like : 'vid1.fla', 'vid2.fla'
- ?>
- <div style="border:#FF0000;">
- <div id="video1">
- <a
- style="display:block;width:425px;height:300px;"
- id="player">
- </a>
- <!-- this will install flowplayer inside previous A- tag. -->
- <script>
- flowplayer("player", "flowplayer-3.2.5.swf", {
- clip: {
- // these two configuration variables does the trick
- autoPlay: false,
- autoBuffering: true // <- do not place a comma here
- },
- playlist: [<?php echo $VideoPlaylist; ?>]
- });
- </script>
- </div>
- </div>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement