How to display videos in Play Lists on iOS 6

Under iOS 5 I was able to create play lists in iTunes and put batches of videos of the same type into separate play lists.  I then opened 'Music' on the iPhone and selected the playlist I wanted.
Under iOS 6, Music no longer allows those videos to appear - they now appear only in 'Videos' but Videos doesn't appear to support play lists.
Is it possible to store videos on the iPhone in different playlists any more or has the feature just been removed?

you don't really need a MDM but it helps...
solution is here:
https://discussions.apple.com/message/19847523#19847523

Similar Messages

  • How to Sort music on play list by FILE NAME?

    How to Sort music on play list by FILE NAME?

    iTunes doesn't display the filename or filepath as a column so you can't sort on it. I could write a script to copy the filepath into the Sort Name field so that sorting by name would sort by filepath. Would that help? In normal circumstances however filepath order would be the same as Album by Artist, so I'm not sure what you would gain. Perhaps there is another way to approach whatever problem you think sorting by filename would solve.
    tt2

  • How do I transfer my play lists from one pc to another? I can't find import on the new version.

    How do I transfer my play lists from one pc to another? I can't find import on the new version.

    Holtey wrote:
    Not an option.
    Onlly have turn on home sharing or get artwork
    Do ou have the iTunes menus showing across the top of the iTunes window?
    ctrl B

  • HT1751 How can I copy a play list to a memory stick

    How can I copy a play list to a memory stick

    Yes, in preferences set up your import settings, then right click on the tracks you need in a different format and use Create < Format> Version. New copies will be created in the target format.
    tt2

  • HT202213 how do I transfer a playing list to another iPhone

    how do i transfer a playing list to another iphone

    The same way you did with the first one.

  • How to display a drop down list

    how to display a drop down list when the user clicked (right click) on a JPanel or a JFrame

    how to display a drop down list when the user clicked
    (right click) on a JPanel or a JFrameI've not done it my self, I just looked it up:
    JComponent.setComponentPopupMenu(JPopupMenu popup).
    The menu doesn't showed automatically when I added it to a JComponent and tried to right click.
    I guess you could add a listener and call setVisible and setLocation for the menu in the listener, but there has to be an easier way...

  • Having imported the tracks how do I create a Play List

    I have imported tracks to my library, how do I create a play list please?

    One method is to select the Playlists section of the iTunes Library and then click on the + button in the lower left corner.

  • Please Help::How to display a Map with LIsts as Keys and Values using JSTL

    Hi,
    I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
    OrderDetails.java
    package orderitems;
    import java.sql.*;
    import java.util.*;
    public class OrderDetails {
        private LineOder lineOrder;
        private Map lineItems;
        //returns an item number, key_item, from its unique keys
        public int getItemNumber(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            int itmNum = 0;
             * key_item a unique number for an item.
             * key_year,key_office,key_client,key_company unique keys
             * for each order where this key_item is taken
             * from.
            String select = "SELECT key_item FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + key_item +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                if(rst.next()){
                    itmNum = Integer.parseInt(rst.getString("key_item"));
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itmNum;
        //get a list of item number(item codes)
        public List getAllItemNumbers(String key_year,
                String key_office,String key_client,String key_company){
            List itemNumbers = new ArrayList();
            LineItem itemNumber = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    itemNumber = new LineItem();
                    itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
                    itemNumbers.add(itemNumber);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemNumbers;
        //get a list of tax codes
        public List getAllTaxCodes(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            ItemTax taxCode;
            List taxCodes = new ArrayList();
            int itemNum = getItemNumber(key_item, key_year,
                    key_office,key_client,key_company);
            String select = "SELECT key_tax_code FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    taxCode = new ItemTax();
                    taxCode.setKey_tax_code(rst.getString("key_tax_code"));
                    taxCodes.add(taxCode);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return taxCodes;
        /////This methode returns a Map which am trying to display in JSP
        //use tax code to get tax details
        public Map getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
                System.out.println();
                System.out.println("*********CONSOLE OUTPUT*************");//display on console
                Set set = itemTaxDetails.keySet();
                Iterator iter = set.iterator();
                System.out.println("Key\t\tValue\r\n");
                while (iter.hasNext()) {
                    Object taxCode=iter.next();
                    Object details=itemTaxDetails.get(taxCode);
                    System.out.println(taxCode +"\t" + details);
                System.out.println("************************************");
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemTaxDetails;
        //details of an item with all its taxes
        public List getAllItemDetails(String key_year,
                String key_office,String key_client,String key_company){
            List lineItems = new ArrayList();
            List itemNumbers = new ArrayList();
            Map taxDetails = new HashMap();
            LineItem item = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //A list of all item numbers in the declaration
            itemNumbers = getAllItemNumbers(key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
                    LineItem itemNum = (LineItem)itemIter.next();
                    int itemNumber = itemNum.getKey_item();
                    String select = "SELECT item_description,item_mass," +
                            "item_cost" +
                            " FROM " + Constants.WEB_TABLE +
                            " WHERE key_year = '"+key_year+"'" +
                            " AND key_office = '"+key_office+ "'"+
                            " AND key_client = '"+key_client+ "'"+
                            " AND key_company = '"+key_company+ "'"+
                            " AND key_item = " + itemNumber;
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        item = new LineItem();
                        item.setItem_description(rst.getString("item_description"));
                        item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
                        item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
                        //////other details records ommited//////////////////////////
                        /* A HashMap of all itemTaxeCodes as its keys and an
                         * ArrayList of itemTaxedetails as its values
                        taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
                                item.getKey_client(),item.getKey_company(),item.getKey_item());
                        //item tax details
                        item.setItmTaxes(taxDetails);
                        //list of items with tax details
                        lineItems.add(item);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineItems;
        public Set getOrders(String key_year,String key_office,
                String key_client,String key_company){
            List lineItems = new ArrayList();
            Set lineOrders = new HashSet();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            LineOder lineOrder = null;
            String select = "SELECT * FROM " + Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    lineOrder = new LineOder();
                    lineOrder.setKey_year(rst.getString("key_year"));
                    lineOrder.setKey_office(rst.getString("key_office"));
                    lineOrder.setKey_client(rst.getString("key_client"));
                    lineOrder.setKey_company(rst.getString("key_company"));
                    ////list of items with all their details
                    lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
                            lineOrder.getKey_client(),lineOrder.getKey_company());
                    //setting item details
                    lineOrder.setItems(lineItems);
                    //a list of order with all details
                    lineOrders.add(lineOrder);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineOrders;
    Controller.java
    package orderitems;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Controller extends HttpServlet {
        private Map taxDetails = new HashMap();
        private OrderDetails orderDetails = null;
        protected void processRequest(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            String key_year = "2007";
            String key_office = "VZX00";
            String key_company = "DG20";
            String key_client =  "ZI001";
            int key_item = 1;
            String nextView = "/taxdetails_list.jsp";
            orderDetails = new OrderDetails();
            taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
                    key_company,key_client,key_item);
            //Store the collection objects into HTTP Request
            request.setAttribute("taxDetails", taxDetails);
            RequestDispatcher reqstDisp =
                    getServletContext().getRequestDispatcher(nextView);
            reqstDisp.forward(request,response);
        protected void doGet(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <title>Simple Tax Detail Diaplay ::</title>
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
            <table>
                <c:forEach items="${taxDetails}" var="hMap">
                    <tr>
                        <td><c:out value="${hMap.key}" /></td>
                        <!--td><%--c:out value="${hMap.value}" /--%></td-->
                    </tr>
                </c:forEach>
            </table>
        </body>
    </html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
    both in my JSP and on the console:
    *******************************CONSOLE OUTPUT****************************
    Key          Value
    ICD     [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    Edited by: aiEx on Oct 8, 2007 6:54 AM

    hi evnafets,
    yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
    javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
    I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
    public List getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            //return itemTaxDetails;
            return taxDetails;
        }And my JSP
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <table>
                <c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
                        <c:choose>
                            <c:when test="${rowCounter.count % 2 == 0}">
                                <c:set var="rowStyle" scope="page" value="odd" />
                            </c:when>
                            <c:otherwise>
                                <c:set var="rowStyle" scope="page" value="even" />
                            </c:otherwise>
                        </c:choose>
                        <tr class="${rowStyle}">
                            <td>${curRecord.key_item}</td>
                            <td>${curRecord.tax_value}</td>
                            <td>${curRecord.tax_limit_val}</td>
                        </tr>
                    </c:forEach>
            </table>
        </body>
    </html>I can't see where am going wrong even with your advice.Please help.
    Thnx.

  • How to stop video from playing?

    Hi,
    i have a problem that i've already see that is pretty usual, the videoplayer that i have works fine but when i click in a button to go to another page the videoplayer doesn't stop,the audio continues playing even when i'm not on the videoplayer page.
    I've already found some solutions in the web but none of them worked,probably because i didn't put them in the right place
    The code is a little long:
    // ############# CONSTANTS
    // time to buffer for the video in sec.
    const BUFFER_TIME:Number                = 8;
    // start volume when initializing player
    const DEFAULT_VOLUME:Number                = 0.6;
    // update delay in milliseconds.
    const DISPLAY_TIMER_UPDATE_DELAY:int    = 10;
    // smoothing for video. may slow down old computers
    const SMOOTHING:Boolean                    = true;
    // ############# VARIABLES
    // flag for knowing if user hovers over description label
    var bolDescriptionHover:Boolean = false;
    // flag for knowing in which direction the description label is currently moving
    var bolDescriptionHoverForward:Boolean = true;
    // flag for knowing if flv has been loaded
    var bolLoaded:Boolean                    = false;
    // flag for volume scrubbing
    var bolVolumeScrub:Boolean                = false;
    // flag for progress scrubbing
    var bolProgressScrub:Boolean            = false;
    // holds the number of the active video
    var intActiveVid:int;
    // holds the last used volume, but never 0
    var intLastVolume:Number                = DEFAULT_VOLUME;
    // net connection object for net stream
    var ncConnection:NetConnection;
    // net stream object
    var nsStream:NetStream;
    // object holds all meta data
    var objInfo:Object;
    // shared object holding the player settings (currently only the volume)
    var shoVideoPlayerSettings:SharedObject = SharedObject.getLocal("playerSettings");
    // url to flv file
    var strSource:String                    = root.loaderInfo.parameters.playlist == null ? "playlist.xml" : root.loaderInfo.parameters.playlist;
    // timer for updating player (progress, volume...)
    var tmrDisplay:Timer;
    // loads the xml file
    var urlLoader:URLLoader;
    // holds the request for the loader
    var urlRequest:URLRequest;
    // playlist xml
    var xmlPlaylist:XML;
    // ############# STAGE SETTINGS
    stage.scaleMode    = StageScaleMode.NO_SCALE;
    stage.align        = StageAlign.TOP_LEFT;
    // ############# FUNCTIONS
    // sets up the player
    function initVideoPlayer():void {
        // hide video controls on initialisation
        mcVideoControls.visible = false;
        // hide buttons
        mcVideoControls.btnUnmute.visible            = false;
        mcVideoControls.btnPause.visible            = false;
        mcVideoControls.btnFullscreenOff.visible    = false;
        // set the progress/preload fill width to 1
        mcVideoControls.mcProgressFill.mcFillRed.width    = 1;
        mcVideoControls.mcProgressFill.mcFillGrey.width    = 1;
        // set time and duration label
        mcVideoControls.lblTimeDuration.htmlText        = "<font color='#ffffff'>00:00</font> / 00:00";
        // add global event listener when mouse is released
        stage.addEventListener(MouseEvent.MOUSE_UP, mouseReleased);
        // add fullscreen listener
        stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen);
        // add event listeners to all buttons
        mcVideoControls.btnPause.addEventListener(MouseEvent.CLICK, pauseClicked);
        mcVideoControls.btnPlay.addEventListener(MouseEvent.CLICK, playClicked);
        mcVideoControls.btnStop.addEventListener(MouseEvent.CLICK, stopClicked);
        mcVideoControls.btnNext.addEventListener(MouseEvent.CLICK, playNext);
        mcVideoControls.btnPrevious.addEventListener(MouseEvent.CLICK, playPrevious);
        mcVideoControls.btnMute.addEventListener(MouseEvent.CLICK, muteClicked);
        mcVideoControls.btnUnmute.addEventListener(MouseEvent.CLICK, unmuteClicked);
        mcVideoControls.btnFullscreenOn.addEventListener(MouseEvent.CLICK, fullscreenOnClicked);
        mcVideoControls.btnFullscreenOff.addEventListener(MouseEvent.CLICK, fullscreenOffClicked);
        mcVideoControls.btnVolumeBar.addEventListener(MouseEvent.MOUSE_DOWN, volumeScrubberClicked);
        mcVideoControls.mcVolumeScrubber.btnVolumeScrubber.addEventListener(MouseEvent.MOUSE_DOWN , volumeScrubberClicked);
        mcVideoControls.btnProgressBar.addEventListener(MouseEvent.MOUSE_DOWN, progressScrubberClicked);
        mcVideoControls.mcProgressScrubber.btnProgressScrubber.addEventListener(MouseEvent.MOUSE_ DOWN, progressScrubberClicked);
        mcVideoControls.mcVideoDescription.btnDescription.addEventListener(MouseEvent.MOUSE_OVER, startDescriptionScroll);
        mcVideoControls.mcVideoDescription.btnDescription.addEventListener(MouseEvent.MOUSE_OUT, stopDescriptionScroll);
        // create timer for updating all visual parts of player and add
        // event listener
        tmrDisplay = new Timer(DISPLAY_TIMER_UPDATE_DELAY);
        tmrDisplay.addEventListener(TimerEvent.TIMER, updateDisplay);
        // create a new net connection, add event listener and connect
        // to null because we don't have a media server
        ncConnection = new NetConnection();
        ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
        ncConnection.connect(null);
        // create a new netstream with the net connection, add event
        // listener, set client to this for handling meta data and
        // set the buffer time to the value from the constant
        nsStream = new NetStream(ncConnection);
        nsStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
        nsStream.client = this;
        nsStream.bufferTime = BUFFER_TIME;
        // attach net stream to video object on the stage
        vidDisplay.attachNetStream(nsStream);
        // set the smoothing value from the constant
        vidDisplay.smoothing = SMOOTHING;
        // set default volume and get volume from shared object if available
        var tmpVolume:Number = DEFAULT_VOLUME;
        if(shoVideoPlayerSettings.data.playerVolume != undefined) {
            tmpVolume = shoVideoPlayerSettings.data.playerVolume;
            intLastVolume = tmpVolume;
        // update volume bar and set volume
        mcVideoControls.mcVolumeScrubber.x = (53 * tmpVolume) + 318;
        mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
        setVolume(tmpVolume);
        // create new request for loading the playlist xml, add an event listener
        // and load it
        urlRequest = new URLRequest(strSource);
        urlLoader = new URLLoader();
        urlLoader.addEventListener(Event.COMPLETE, playlistLoaded);
        urlLoader.load(urlRequest);
    function playClicked(e:MouseEvent):void {
        // check's, if the flv has already begun
        // to download. if so, resume playback, else
        // load the file
        if(!bolLoaded) {
            nsStream.play(strSource);
            bolLoaded = true;
        else{
            nsStream.resume();
        vidDisplay.visible = true;
        // switch play/pause visibility
        mcVideoControls.btnPause.visible    = true;
        mcVideoControls.btnPlay.visible        = false;
    function pauseClicked(e:MouseEvent):void {
        // pause video
        nsStream.pause();
        // switch play/pause visibility
        mcVideoControls.btnPause.visible    = false;
        mcVideoControls.btnPlay.visible        = true;
    function stopClicked(e:MouseEvent):void {
        // calls stop function
        stopVideoPlayer();
    function muteClicked(e:MouseEvent):void {
        // set volume to 0
        setVolume(0);
        // update scrubber and fill position/width
        mcVideoControls.mcVolumeScrubber.x                = 318;
        mcVideoControls.mcVolumeFill.mcFillRed.width    = 1;
    function unmuteClicked(e:MouseEvent):void {
        // set volume to last used value or DEFAULT_VOLUME if last volume is zero
        var tmpVolume:Number = intLastVolume == 0 ? DEFAULT_VOLUME : intLastVolume
        setVolume(tmpVolume);
        // update scrubber and fill position/width
        mcVideoControls.mcVolumeScrubber.x = (53 * tmpVolume) + 318;
        mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
    function volumeScrubberClicked(e:MouseEvent):void {
        // set volume scrub flag to true
        bolVolumeScrub = true;
        // start drag
        mcVideoControls.mcVolumeScrubber.startDrag(true, new Rectangle(318, 19, 53, 0)); // NOW TRUE
    function progressScrubberClicked(e:MouseEvent):void {
        // set progress scrub flag to true
        bolProgressScrub = true;
        // start drag
        mcVideoControls.mcProgressScrubber.startDrag(true, new Rectangle(0, 2, 432, 0)); // NOW TRUE
    function mouseReleased(e:MouseEvent):void {
        // set progress/volume scrub to false
        bolVolumeScrub        = false;
        bolProgressScrub    = false;
        // stop all dragging actions
        mcVideoControls.mcProgressScrubber.stopDrag();
        mcVideoControls.mcVolumeScrubber.stopDrag();
        // update progress/volume fill
        mcVideoControls.mcProgressFill.mcFillRed.width    = mcVideoControls.mcProgressScrubber.x + 5;
        mcVideoControls.mcVolumeFill.mcFillRed.width    = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
        // save the volume if it's greater than zero
        if((mcVideoControls.mcVolumeScrubber.x - 318) / 53 > 0)
            intLastVolume = (mcVideoControls.mcVolumeScrubber.x - 318) / 53;
    function updateDisplay(e:TimerEvent):void {
        // checks, if user is scrubbing. if so, seek in the video
        // if not, just update the position of the scrubber according
        // to the current time
        if(bolProgressScrub)
            nsStream.seek(Math.round(mcVideoControls.mcProgressScrubber.x * objInfo.duration / 432))
        else
            mcVideoControls.mcProgressScrubber.x = nsStream.time * 432 / objInfo.duration;
        // set time and duration label
        mcVideoControls.lblTimeDuration.htmlText        = "<font color='#ffffff'>" + formatTime(nsStream.time) + "</font> / " + formatTime(objInfo.duration);
        // update the width from the progress bar. the grey one displays
        // the loading progress
        mcVideoControls.mcProgressFill.mcFillRed.width    = mcVideoControls.mcProgressScrubber.x + 5;
        mcVideoControls.mcProgressFill.mcFillGrey.width    = nsStream.bytesLoaded * 438 / nsStream.bytesTotal;
        // update volume and the red fill width when user is scrubbing
        if(bolVolumeScrub) {
            setVolume((mcVideoControls.mcVolumeScrubber.x - 318) / 53);
            mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 371 + 53;
        // chech if user is currently hovering over description label
        if(bolDescriptionHover) {
            // check in which direction we're currently moving
            if(bolDescriptionHoverForward) {
                // move to the left and check if we've shown everthing
                mcVideoControls.mcVideoDescription.lblDescription.x -= 0.1;
                if(mcVideoControls.mcVideoDescription.lblDescription.textWidth - 133 <= Math.abs(mcVideoControls.mcVideoDescription.lblDescription.x))
                    bolDescriptionHoverForward = false;
            } else {
                // move to the right and check if we're back to normal
                mcVideoControls.mcVideoDescription.lblDescription.x += 0.1;
                if(mcVideoControls.mcVideoDescription.lblDescription.x >= 0)
                    bolDescriptionHoverForward = true;
        } else {
            // reset label position and direction variable
            mcVideoControls.mcVideoDescription.lblDescription.x = 0;
            bolDescriptionHoverForward = true;
    function onMetaData(info:Object):void {
        // stores meta data in a object
        objInfo = info;
        // now we can start the timer because
        // we have all the neccesary data
        if(!tmrDisplay.running)
            tmrDisplay.start();
    function netStatusHandler(event:NetStatusEvent):void {
        // handles net status events
        switch (event.info.code) {
            // trace a messeage when the stream is not found
            case "NetStream.Play.StreamNotFound":
                trace("Stream not found: " + strSource);
            break;
            // when the video reaches its end, we check if there are
            // more video left or stop the player
            case "NetStream.Play.Stop":
                if(intActiveVid + 1 < xmlPlaylist..vid.length())
                    playNext();
                else
                    stopVideoPlayer();
            break;
    function stopVideoPlayer():void {
        // pause netstream, set time position to zero
        nsStream.pause();
        nsStream.seek(0);
        // in order to clear the display, we need to
        // set the visibility to false since the clear
        // function has a bug
        vidDisplay.visible                    = false;
        // switch play/pause button visibility
        mcVideoControls.btnPause.visible    = false;
        mcVideoControls.btnPlay.visible        = true;
    function setVolume(intVolume:Number = 0):void {
        // create soundtransform object with the volume from
        // the parameter
        var sndTransform        = new SoundTransform(intVolume);
        // assign object to netstream sound transform object
        nsStream.soundTransform    = sndTransform;
        // hides/shows mute and unmute button according to the
        // volume
        if(intVolume > 0) {
            mcVideoControls.btnMute.visible        = true;
            mcVideoControls.btnUnmute.visible    = false;
        } else {
            mcVideoControls.btnMute.visible        = false;
            mcVideoControls.btnUnmute.visible    = true;
        // store the volume in the flash cookie
        shoVideoPlayerSettings.data.playerVolume = intVolume;
        shoVideoPlayerSettings.flush();
    function formatTime(t:int):String {
        // returns the minutes and seconds with leading zeros
        // for example: 70 returns 01:10
        var s:int = Math.round(t);
        var m:int = 0;
        if (s > 0) {
            while (s > 59) {
                m++; s -= 60;
            return String((m < 10 ? "0" : "") + m + ":" + (s < 10 ? "0" : "") + s);
        } else {
            return "00:00";
    function fullscreenOnClicked(e:MouseEvent):void {
        // go to fullscreen mode
        stage.displayState = StageDisplayState.FULL_SCREEN;
    function fullscreenOffClicked(e:MouseEvent):void {
        // go to back to normal mode
        stage.displayState = StageDisplayState.NORMAL;
    function onFullscreen(e:FullScreenEvent):void {
        // check if we're entering or leaving fullscreen mode
        if (e.fullScreen) {
            // switch fullscreen buttons
            mcVideoControls.btnFullscreenOn.visible = false;
            mcVideoControls.btnFullscreenOff.visible = true;
            // bottom center align controls
            mcVideoControls.x = (Capabilities.screenResolutionX - 440) / 2;
            mcVideoControls.y = (Capabilities.screenResolutionY - 33);
            // size up video display
            vidDisplay.height     = (Capabilities.screenResolutionY - 33);
            vidDisplay.width     = vidDisplay.height * 4 / 3;
            vidDisplay.x        = (Capabilities.screenResolutionX - vidDisplay.width) / 2;
        } else {
            // switch fullscreen buttons
            mcVideoControls.btnFullscreenOn.visible = true;
            mcVideoControls.btnFullscreenOff.visible = false;
            // reset controls position
            mcVideoControls.x = 0;
            mcVideoControls.y = 330;
            // reset video display
            vidDisplay.y = 0;
            vidDisplay.x = 0;
            vidDisplay.width = 440;
            vidDisplay.height = 241;
    function playlistLoaded(e:Event):void {
        // create new xml with loaded data from loader
        xmlPlaylist = new XML(urlLoader.data);
        // set source of the first video but don't play it
        playVid(0, true)
        // show controls
        mcVideoControls.visible = true;
    function playVid(intVid:int = 0, bolPlay = true):void {
        if(bolPlay) {
            // stop timer
            tmrDisplay.stop();
            // play requested video
            nsStream.play(String(xmlPlaylist..vid[intVid].@src));
            // switch button visibility
            mcVideoControls.btnPause.visible    = true;
            mcVideoControls.btnPlay.visible        = false;
        } else {
            strSource = xmlPlaylist..vid[intVid].@src;
        // show video display
        vidDisplay.visible                    = true;
        // reset description label position and assign new description
        mcVideoControls.mcVideoDescription.lblDescription.x = 0;
        mcVideoControls.mcVideoDescription.lblDescription.htmlText = (intVid + 1) + ". <font color='#ffffff'>" + String(xmlPlaylist..vid[intVid].@desc) + "</font>";
        // update active video number
        intActiveVid = intVid;
    function playNext(e:MouseEvent = null):void {
        // check if there are video left to play and play them
        if(intActiveVid + 1 < xmlPlaylist..vid.length())
            playVid(intActiveVid + 1);
    function playPrevious(e:MouseEvent = null):void {
        // check if we're not and the beginning of the playlist and go back
        if(intActiveVid - 1 >= 0)
            playVid(intActiveVid - 1);
    function startDescriptionScroll(e:MouseEvent):void {
        // check if description label is too long and we need to enable scrolling
        if(mcVideoControls.mcVideoDescription.lblDescription.textWidth > 138)
            bolDescriptionHover = true;
    function stopDescriptionScroll(e:MouseEvent):void {
        // disable scrolling
        bolDescriptionHover = false;
    // ############# INIT PLAYER
    initVideoPlayer();

    No,im not using flvplayback component (i think).
    Heres the video player that i'm using:
    http://www.thetechlabs.com/tutorials/xml/expanding-the-as3-videoplayer/

  • How to display video in Java?????????????????????

    hello everybody. this is my first time i post a qestion and i hope that you will help me. I started to make a project where I have to display video when I choose from a combo box.
    I had two problems is how to display in arabic and I solved this problem.
    Second problem what pakage I need? I knew that I have to you class Player from package media?
    my question is how to download this pakage?and do I have to download JFM or other pakages.

    JMF download & installation instructions are available at
    http://java.sun.com/products/java-media/jmf/2.1.1/download.html
    JavaDocs for JMF2.1.2 at
    http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/
    Also download & read the JMF2.0 API Guide available at
    http://java.sun.com/products/java-media/jmf/2.1.1/specdownload.html

  • How to make videos automatically play right after each other?

    I have four videos that I need to automatically play right after each other. For instance video1 plays and is done so video 2 should automatically start to play and then when video 2 is done video 3 should start and when video 3 is done video 4 should start and when video 4 is done video 1 should start. How do you code for this? Also, when a button is clicked whatever video is playing needs to stop and then the item that the button is linked to should show up whether it is another video or a graphic with scrolling text.

    How do you use a complete listener? Can you give me an example of code to use or give me a link that has step-by-step instructions? I really would appreciate it.

  • How to get videos to play.

    I get my videos onto the itunes library and try to put them onto my ipod but it will only play as music not as a video. How do i get videos to play?

    Go to Videos.Video Settings...Make Sure "TV Out" is set to "OFF" on the IPOD:
    iPod plays audio but not video of movies:
    http://docs.info.apple.com/article.html?artnum=302828

  • How to display grid lines in list view please help

    Hello,
    What should I do if I would like do display grid lines in list view. I've read related topics but I stil don't know how to do it. I use Sharepoint Designer. Please help
    Regards

    Hi,
    You need to modify default XSLT of listview webpart. Open your page in designer and use below jquery.
    <!–ADJUST TABLE COLUMN WIDTH–>
    <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js“></script>
    <script>
    $(function(){
    $(“tr.ms-viewheadertr th:contains(‘Title’)”, “#MSO_ContentTable”).css(“width”, “50px”);
    $(“tr.ms-viewheadertr th:contains(‘Assigned To’)”, “#MSO_ContentTable”).css(“width”, “300px”);
    </script>
    Check this for more info about steps:
    http://jshidell.com/2010/09/19/adjusting-sharepoint-list-columns-using-jquery/
    You can also look into this MSDN article for more customization:
    http://msdn.microsoft.com/en-us/library/ff630941.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListViewWebPart.
    Hope it could help
    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"

  • How to get videos to play on IPOD (what program to use)

    Hello folks,
    Quick question - how do I get just small music clip videos to play on my IPOD? I'm not even sure why I am asking this question since I have exported in "QT" to .mp4 but they are still not uploading.
    I downloaded "VisualHub" and the demo version is only 2minutes of video but I really don't have any more money to purchase any other stuff to get these videos to play so what do u suggest?
    Thanks,
    Joey Dee

    hey CG,
    Thanks for the reply, i did a search for this "Videora" and i found it to be only a windows program and I downloaded the file but it's .exe
    I have been trying to find a MAC version but I don't think its available - is there a way you can link me that file?
    Regards,
    Joey Dee

  • HT202213 How do I home share play lists?

    I have my home share set up between two PCs. The entire library is on both computers. Can I home share individual play lists?

    I don't think you can, jeanne. In order to do that, you'd need to have both user accounts "running" at the same time on the PC. To do that, you'd need to be using Fast user switching ... but iTunes for Windows doesn't work with Fast user switching.
    The following document might be of some assistance if you want both user accounts to have access to the same music:
    iTunes: How to share music between different accounts on a single computer

Maybe you are looking for