Package com.bramosystems.oss.player.core.client

Examples of com.bramosystems.oss.player.core.client.PlayTime


                        }
                    }
                    switch (parentNodes.peek()) {
                        case _entry:
                            if (entry.getDuration() == null) {
                                entry.setDuration(new PlayTime(href));
                            }
                            break;
                        case _ref:
                            if (ref.getDuration() == null) {
                                ref.setDuration(new PlayTime(href));
                            }
                    }
                    break;
                case _moreinfo:
                    it = attr.keySet().iterator();
                    while (it.hasNext()) {
                        String ky = it.next();
                        if (ky.equalsIgnoreCase("href")) {
                            href = attr.get(ky);
                            break;
                        }
                    }
                    switch (parentNodes.peek()) {
                        case _asx:
                            if (playlist.getMoreInfoHref() == null) {
                                playlist.setMoreInfoHref(href);
                            }
                            break;
                        case _entry:
                            if (entry.getMoreInfoHref() == null) {
                                entry.setMoreInfoHref(href);
                            }
                    }
                    break;
                case _param:
                    it = attr.keySet().iterator();
                    while (it.hasNext()) {
                        String ky = it.next();
                        switch (parentNodes.peek()) {
                            case _asx:
                                playlist.getParams().put(ky, attr.get(ky));
                                break;
                            case _entry:
                                entry.getParams().put(ky, attr.get(ky));
                        }
                    }
                    break;
                case _ref:
                    parentNodes.push(ASXNodeNames._ref);
                    ref = new Ref();
                    it = attr.keySet().iterator();
                    while (it.hasNext()) {
                        String ky = it.next();
                        if (ky.equalsIgnoreCase("href")) {
                            ref.setHref(attr.get(ky));
                        }
                    }
                    break;
                case _repeat:
                    repeat = new Repeat();
                    it = attr.keySet().iterator();
                    while (it.hasNext()) {
                        String ky = it.next();
                        if (ky.equalsIgnoreCase("count")) {
                            repeat.setCount(Integer.parseInt(attr.get(ky)));
                        }
                    }
                    parentNodes.push(ASXNodeNames._repeat);
                    break;
                case _starttime:
                    it = attr.keySet().iterator();
                    while (it.hasNext()) {
                        String ky = it.next();
                        if (ky.equalsIgnoreCase("value")) {
                            href = attr.get(ky);
                            break;
                        }
                    }
                    switch (parentNodes.peek()) {
                        case _entry:
                            if (entry.getStartTime() == null) {
                                entry.setStartTime(new PlayTime(href));
                            }
                            break;
                        case _ref:
                            if (ref.getStartTime() == null) {
                                ref.setStartTime(new PlayTime(href));
                            }
                    }
                    break;
            }
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.bramosystems.oss.player.core.client.PlayTime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.