Looking for an xml driven video/photo player for portfolio website

I need to make a website that displays videos and photos.
Here's an example:
http://www.mazmakhani.com/
Does anyone know of a .fla template that fits the bill?
Thanks

Hi
You'll find a couple
Here, that will give you a
base to start from
Hope it helps

Similar Messages

  • XML Driven Video Gallery with Playlist

    Hi,
    I have put together a XML Driven Video Player with auto thumbnail detection but there is a problem.The Video plays but, The thumbs will not show. I think my thumbnail function is not reaching the correct node in my XML.Can someone take a look at my Actionscript Please? The Action Script is below. The XML is at the bottom of this post. The top half of the code is the video playing code the bottom is for the thumbs.
    Actionscript 2.0
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.setNufferTime(30);
    ns.onStatus = function(info) {
    if (info.code == "NetStream.Buffer.Full") {
    bufferClip._visible = false;
    if (info.code == "NetStream.Buffer.Empty") {
    bufferClip._visible = true;
    if (info.code == "NetStream.Buffer.Stop") {
    ns.seek(0);
    theVideo.attachVideo(ns);
    rewindButton.onRelease = function() {
    ns.seek(0);
    playButton.onRelease = function() {
    ns.pause();
    var videoInterval = setInterval(videoStatus, 100);
    var amountLoaded:Number;
    var duration:Number;
    ns["onMetaData"] = function (obj) {
    duration = obj.duration;
    function videoStatus() {
    amountLoaded = ns.bytesLoaded/ns.bytesTotal;
    loader.loadbar._width = amountLoaded*187.4;
    loader.scrub._x = ns.time/duration*187.4;
    var scrubInterval;
    loader.scrub.onPress = function() {
    clearInterval(videoInterval);
    scrubInterval = setInterval(scrubit, 10);
    this.startDrag(false,0,this._y,187.4,this._y);
    loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () {
    clearInterval(scrubInterval);
    videoInterval = setInterval(videoStatus, 100);
    this.stopDrag();
    function scrubit() {
    ns.seek(Math.floor((loader.scrub._x/187)*duration));
    var theMenu:ContextMenu = new ContextMenu();
    theMenu.hideBuiltInItems();
    _root.menu = theMenu;
    var i1:ContextMenuItem = new ContextMenuItem(":::::Video Controls:::::", trace);
    theMenu.customItems[0] = i1;
    var i2:ContextMenuItem = new ContextMenuItem("Play / Pause Video", pauseIt, true);
    theMenu.customItems[1] = i2;
    var i3:ContextMenuItem = new ContextMenuItem("Replay Video", replayIt);
    theMenu.customItems[2] = i3;
    var i4:ContextMenuItem = new ContextMenuItem("All Rights Reserved 2009", trace, true);
    theMenu.customItems[3] = i4;
    var i5:ContextMenuItem = new ContextMenuItem("SamAndOnline.com Video Player", trace);
    theMenu.customItems[4] = i5;
    function pauseIt() {
    ns.pause();
    function replayIt() {
    ns.seek(0);
    //sound controls
    _root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
    vSound.attachAudio(ns);
    var so:Sound = new Sound(vSound);
    so.setVolume(100);
    volControl.volcon.slider1.onPress = function() {
    this.startDrag(true,volControl.volcon.groove1._x,volControl.volcon.groove1._y,volControl.v olcon.groove1._x,volControl.volcon.groove1._y+100);
    slideit = setInterval(volControl.volcon.slider_1Move, 100, this);
    volControl.volcon.slider1.onRelease = function() {
    this.stopDrag();
    clearInterval(slideit);
    mute.gotoAndStop("on");
    volControl.volcon.slider1.onReleaseOutside = function() {
    this.stopDrag();
    clearInterval(slideit);
    mute.gotoAndStop("on");
    mute.onRollOver = function() {
    if (so.getVolume() == 100) {
    this.gotoAndStop("onOver");
    } else {
    this.gotoAndStop("muteOver");
    mute.onRollOut = function() {
    if (so.getVolume() == 100) {
    this.gotoAndStop("on");
    } else {
    this.gotoAndStop("mute");
    mute.onRelease = function() {
    if (so.getVolume() == 100) {
    so.setVolume(0);
    this.gotoAndStop("muteOver");
    } else {
    so.setVolume(100);
    this.gotoAndStop("onOver");
    //listBx
    var vlist:XML = new XML();
    vlist.ignoreWhite = true;
    vlist.onLoad = function() {
    var videos:Array = this.firstChild.childNodes;
    for (i=0; i<videos.length; i++) {
    videoList.addItem({label:videos[i].attributes.desc,data:videos[i].attributes.url ,image:videos[i].attributes.thumb});
    //play 1st video
    ns.play(videoList.getItemAt(0).data);
    videoList.selectedIndex = 0;
    //would like to reference something in the XML File with the thumb attribute
    thumbnails_fn(i);
    var vidList:Object = new Object();
    vidList.change = function() {
    ns.play(videoList.getItemAt(videoList.selectedIndex).data);
    videoList.addEventListener("change",vidList);
    vlist.load("videos.xml");
    soundb.onRelease = function() {
    if (volControl.switch2=open2) {
    volControl.gotoAndPlay("open");
    } else {
    volControl.play();
    function thumbNailScroller() {
    // thumbnail code!
    this.createEmptyMovieClip("tscroller", 1000);
    scroll_speed = 10;
    tscroller.onEnterFrame = function() {
    if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
    if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
    thumbnail_mc._x -= scroll_speed;
    } else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
    thumbnail_mc._x += scroll_speed;
    } else {
    delete tscroller.onEnterFrame;
    function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
    target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
    target_mc.pictureValue = k;
    target_mc.onRelease = function() {
    p = this.pictureValue-1;
    nextImage();
    target_mc.onRollOver = function() {
    this._alpha = 50;
    thumbNailScroller();
    target_mc.onRollOut = function() {
    this._alpha = 100;
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(image[k], "thumbnail_mc.t"+k);
    trace(videoList.getItemAt(0).image+ "k= "+k+" "+videos.length+" pv "+target_mc.pictureValue+" thumbnails");
    XML Example
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <videos>
    <video url="vid1.flv" desc="Video 1" thumb="1.jpg"/>
    <video url="vid2.flv" desc="Video 2" thumb="2.jpg"/>
    </videos>

    I'm trying to load the thumbnails in with this code
    image_mcl.loadClip(image[k], "thumbnail_mc.t"+k);
    i tried
    videoList.getItemAt(k).image
    which works in the trace method but gives no response in the actual code it self
    So the line of code that should work is
    image_mcl.loadClip(videoList.getItemAt(k).image, "thumbnail_mc.t"+k);
    and not
    image_mcl.loadClip(image[k], "thumbnail_mc.t"+k);
    but I gets no response

  • In need of a flash/html5/quicktime audio/video media player for a website

    Hello everybody,
    I'm looking to get some kind of audio/video media player for a website. I would like it to be customizable, and also most likely read a play list from some kind of text file or xml file.
    Normally, I would look for some kind of flash media player, but recently the site might be read from Apple mobile devices also, which of course not flash which might be a problem, so I'm also looking into other options such as some kind of QuickTime media player web application or even html5 player.
    I do not personally know how to code in flash or HTML 5, so I would be willing to hire someone to help out.
    Is HTML 5 for long enough that it would play on most current browsers? I would imagine that HTML 5 might not work on older browsers–is this correct?
    I don't know of any QuickTime media players - any links to get me started?
    Does anyone know some solutions to this flash / apple issue?

    Looks like you are getting a very good lesson in why Flash is the best choice for a Web media player.... plentilful, easily customizable, and is a "right now" solution. Good luck on getting your viewers to download and install the codex need to play an Ogg video!
    To add the extra accessabilty for the iPhone etc, use swfobject to provide an alternative video file type... the .mov
    Here is an example of a Flash video that plays on the iPhone (well sort of..):
    http://www.cidigitalmedia.com/tutorials/qt/play_qt.html
    Using swfobject for Flash detection, if the Web browser has the Flash plugin, the Flash .flv video is displayed, if not, the QT, .mov version is displayed.
    View the source code for more exact details.
    If the Web browser does not have the Flash plugin, alternate content is displayed, which in this case happens to be a QT player, which displays a .mov video. In this case it's just a single video. Now maybe you have a QT player with playlist... but let me tell you.. they are a lot rarer than Flash media players with playlists, xml playlist, etc.... Strong case for Flash here..
    But your alt content could just as easily hold a QT media player (with playlist) if such an animal exists.
    Info on swfobject:
    http://code.google.com/p/swfobject/
    Best wishes,
    Adninjastrator

  • I have added photos to a portfolio website I'm building and a lot of them look VERY grainy when you click on them. They are nice clean large files and can print bat high res way over 16" x 20" so whats happened to them in iWeb?

    I have added photos to a portfolio website I'm building and a lot of them look VERY grainy when you click on them. They are nice clean large files and can print bat high res way over 16" x 20" so whats happened to them in iWeb?

    When you are dealing with websites, image file size is a trade off between quality and download speed. There's not a lot of point to having high quality images if they take too long to download in the browser.
    Nowadays we also have to consider the device that the end user is viewing the images on. An image that is optimized for viewing on a large screen is total overkill and unsuitable for those using mobile devices.
    Really we should be supplying different versions of media files for different devices using @media rules in the stylesheet but this is rather outside of the scope of iWeb. If you use the built in image optimizer and the iWeb Photo template with slideshow, the application will optimize the images according to the way in which you set this function in preferences and the slideshow size will be automatically reduced for those viewing it on smaller screens.
    If you want to give your viewers the opportunity to view large, high quality images, you can supply them as a download.

  • XML Driven Flash Photo Gallery Thumbnails

    Hi,
    I need to make a XML Driven Photo slide in Flash CS5.
    It needs to have a Box that contains 5 Thumbnails(by XML) act as buttons.
    The Box sits on top of the Main photo area and shrinks (or close out) when user click its close button. And it opens out by clicking on a open button.
    I'm sure it can be done by using timeline, Tweening or you name it..But what about the Thumbnails that run from the XML file?
    Can they disappear with the Box and retrieve when it opens? is it possible?
    If yes, what would be the best way to do that?
    Any comment would be greatly appreciated!
    Here is the ActionScript.
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    import fl.controls.Button;
    import flash.display.Shape;
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.text.TextField;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.display.Shader;
    var hasloaded:Boolean = false;
    var firstLoaded:Boolean = false;
    var barWidth:int;
    var barHeight:int;
    var images;
    var imageCount:int;
    var thumbnailArray:Array = new Array();
    var bigImageArray:Array = new Array();
    var descriptionArray:Array = new Array();
    var xmlLoader:URLLoader = new URLLoader();
    var imageXML:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("slideshow.xml"));
    function LoadXML(e:Event):void {
        imageXML = new XML(e.target.data);
        ParseImages(imageXML);
    Populates the arrays with the image values
    and the text for each picture.
    function ParseImages(imageInput:XML):void {
        var iconList:XMLList = imageInput.image.icon;
        var mainImageList:XMLList = imageInput.image.mainimage;
        var descriptionList:XMLList = imageInput.image.description;
        for (var i:int = 0; i < iconList.length(); i++) {
            var imageElement:XML = iconList[i];
            //trace(imageElement);
            thumbnailArray[i] = imageElement;
        for (var j:int = 0; j < mainImageList.length(); j++) {
            var mainimageElement:XML = mainImageList[j];
            //trace(mainimageElement);
            bigImageArray[j] = mainimageElement;
        for (var l:int = 0; l < descriptionList.length(); l++) {
            var descriptionElement:XML = descriptionList[l];
            //trace(descriptionElement);
            descriptionArray[l] = descriptionElement;
        loadImages();
    function loadImages():void{
        trace("inside of loadimages function.");
        trace(thumbnailArray.length);
        for(var i:int=0; i < thumbnailArray.length; i++){
            trace(thumbnailArray[i]);
            populateContainers(thumbnailArray[i], i);
            //populateContainers2();
            trace("Loaded " + thumbnailArray[i]);
    var loader:Loader;
    var xStart = -210;
    var ypos = -34;
    var currentPos = xStart;
    var incrementValue = 66;
    This takes in the name of the image file and
    displays it within the newly created movie clip
    function populateContainers(file:String, pos:int):void{   
        //create a movie clip to hold the image
        var mc:MovieClip = new MovieClip();
        mc.graphics.beginFill(0xFFFFFF);
        mc.graphics.drawRect(0, 0, 50, 51);
        mc.graphics.endFill();
        mc.buttonMode = true;
        mc.x = currentPos;
        mc.y = ypos;
        mc.name = "thumb_" + pos;
        mc.addEventListener(MouseEvent.CLICK, clickHandler); 
        loader = new Loader();
        //loader.mask = imagemask;
        var url:URLRequest = new URLRequest(file);
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadInitialImage);
        loader.load(url);
        //add the image to the movie clip
        mc.addChild(loader);
        this.imageBar.addChild(mc);
        //increment the currentPos
        currentPos += incrementValue;
    function clickHandler(e:MouseEvent):void{
        var str:String = e.currentTarget.name;
        var index:int = int(str.substr(6,1));
        if(hasloaded) {
            this.mainWindow.removeChild(loader);
        loader = new Loader();
        loader.load(new URLRequest(bigImageArray[index]));
        this.mainWindow.addChild(loader);
        TransitionManager.start(this.mainWindow,{type:Fade, direction:Transition.IN, duration:2, easing:Regular.easeOut});
        //setChildIndex(loader, 0);
        hasloaded = true;
        loadText(index);
    function loadText(index:int):void {
        Object(this).imageBar.txtdescription.text = descriptionArray[index];
    function loadInitialImage(event:Event):void {
        if(!firstLoaded) {
            loader = new Loader();
            loader.load(new URLRequest(bigImageArray[0]));
            this.mainWindow.addChild(loader);
            TransitionManager.start(this.mainWindow,{type:Fade, direction:Transition.IN, duration:2, easing:Regular.easeIn});
            //setChildIndex(loader, 0);
            hasloaded = true;
            loadText(0);
        firstLoaded = true;
    /*  This section defines the buttons that control the image bar */
    Object(this).imageBar.btnBarOpen.addEventListener(MouseEvent.MOUSE_UP, openImageBar);
    function openImageBar(event:MouseEvent):void {
        this.gotoAndPlay(1);

    thank you!

  • XML Driven Flash Photo Gallery Thumbnails Control

    Hi, I need to make a XML Driven Photo slide in Flash CS5.
    It needs to have a Box that contains 5 Thumbnails(by XML) act as buttons.
    The Box sits on top of the Main photo area and shrinks (or close out) when user click its close button. And it opens out by clicking on a open button.
    I'm sure it can be done by using timeline, Tweening or you name it..But what about the Thumbnails that run from the XML file?
    Can they disappear with the Box and retrieve when it opens? is it possible?
    If yes, what would be the best way to do that?
    Any comment would be greatly appreciated!
    Here is the ActionScript.
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    import fl.controls.Button;
    import flash.display.Shape;
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.text.TextField;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.display.Shader;
    var hasloaded:Boolean = false;
    var firstLoaded:Boolean = false;
    var barWidth:int;
    var barHeight:int;
    var images;
    var imageCount:int;
    var thumbnailArray:Array = new Array();
    var bigImageArray:Array = new Array();
    var descriptionArray:Array = new Array();
    var xmlLoader:URLLoader = new URLLoader();
    var imageXML:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("slideshow.xml"));
    function LoadXML(e:Event):void {
        imageXML = new XML(e.target.data);
        ParseImages(imageXML);
    Populates the arrays with the image values
    and the text for each picture.
    function ParseImages(imageInput:XML):void {
        var iconList:XMLList = imageInput.image.icon;
        var mainImageList:XMLList = imageInput.image.mainimage;
        var descriptionList:XMLList = imageInput.image.description;
        for (var i:int = 0; i < iconList.length(); i++) {
            var imageElement:XML = iconList[i];
            //trace(imageElement);
            thumbnailArray[i] = imageElement;
        for (var j:int = 0; j < mainImageList.length(); j++) {
            var mainimageElement:XML = mainImageList[j];
            //trace(mainimageElement);
            bigImageArray[j] = mainimageElement;
        for (var l:int = 0; l < descriptionList.length(); l++) {
            var descriptionElement:XML = descriptionList[l];
            //trace(descriptionElement);
            descriptionArray[l] = descriptionElement;
        loadImages();
    function loadImages():void{
        trace("inside of loadimages function.");
        trace(thumbnailArray.length);
        for(var i:int=0; i < thumbnailArray.length; i++){
            trace(thumbnailArray[i]);
            populateContainers(thumbnailArray[i], i);
            //populateContainers2();
            trace("Loaded " + thumbnailArray[i]);
    var loader:Loader;
    var xStart = -210;
    var ypos = -34;
    var currentPos = xStart;
    var incrementValue = 66;
    This takes in the name of the image file and
    displays it within the newly created movie clip
    function populateContainers(file:String, pos:int):void{ 
        //create a movie clip to hold the image
        var mc:MovieClip = new MovieClip();
        mc.graphics.beginFill(0xFFFFFF);
        mc.graphics.drawRect(0, 0, 50, 51);
        mc.graphics.endFill();
        mc.buttonMode = true;
        mc.x = currentPos;
        mc.y = ypos;
        mc.name = "thumb_" + pos;
        mc.addEventListener(MouseEvent.CLICK, clickHandler);
        loader = new Loader();
        //loader.mask = imagemask;
        var url:URLRequest = new URLRequest(file);
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadInitialImage);
        loader.load(url);
        //add the image to the movie clip
        mc.addChild(loader);
        this.imageBar.addChild(mc);
        //increment the currentPos
        currentPos += incrementValue;
    function clickHandler(e:MouseEvent):void{
        var str:String = e.currentTarget.name;
        var index:int = int(str.substr(6,1));
        if(hasloaded) {
            this.mainWindow.removeChild(loader);
        loader = new Loader();
        loader.load(new URLRequest(bigImageArray[index]));
        this.mainWindow.addChild(loader);
        TransitionManager.start(this.mainWindow,{type:Fade, direction:Transition.IN, duration:2, easing:Regular.easeOut});
        //setChildIndex(loader, 0);
        hasloaded = true;
        loadText(index);
    function loadText(index:int):void {
        Object(this).imageBar.txtdescription.text = descriptionArray[index];
    function loadInitialImage(event:Event):void {
        if(!firstLoaded) {
            loader = new Loader();
            loader.load(new URLRequest(bigImageArray[0]));
            this.mainWindow.addChild(loader);
            TransitionManager.start(this.mainWindow,{type:Fade, direction:Transition.IN, duration:2, easing:Regular.easeIn});
            //setChildIndex(loader, 0);
            hasloaded = true;
            loadText(0);
        firstLoaded = true;
    /*  This section defines the buttons that control the image bar */
    Object(this).imageBar.btnBarOpen.addEventListener(MouseEvent.MOUSE_UP, openImageBar);
    function openImageBar(event:MouseEvent):void {
        this.gotoAndPlay(1);

    thank you!

  • Alternative for HLS HTML streaming trough JW player for users without Flash?

    Hello!
    I am using HLS TS Streaming trough JW player for the largest group of users that have flash for streaming video's.
    Is there an alternative for users without flash?
    Best regards

    I will just summarize myself...
    Adobe media server supports rtmp and HTTP(HLS and HDS)..
    for rtmp streaming the swf running in a Flash player is the standard interface...that flash player may be an activeX control/plugin in your browser or may be a standalone player downloaded from adobe website...Chrome web browser however users a slightly different( PPAPI based) flash player(which is different from Adobe flash player) and is developed and maintained by google.
    For HLS and HDS, you can either use special players(i.e swfs)(Flash based) developed Adobe by Adobe e.g Strobe meida player(Open Source Media Framework Blog | Adobe’s free and open source media playback system) or you can use players like jwplayer(Video Player Download | JW Player Online Video Player)... Incidentally jwplayer has added simultaneous support for playing rtmp streams too(which is reallly good), but i do not have much insight into workings of jwplayer...

  • Looking for somewhere to sell Video Ipod cases for WOMEN

    HI ALL !
    DO YOU KNOW WHERE CAN I BUY IPOD CASE FOR WOMEN ..FOR ME .. BECAUSE ALL I SEE BLACK COLOR CASES FOR MAN .. THANK YOU

    I don't get the male/female distinction frankly. To me it's just a quetion of what your style is, what material you'd prefer and whether you are after a case or a skin and waht you're going to be doing with the iPod - working out, being outside in the rain and so on.
    I have just bought a Vaja (vajacases.com) - as a Christmas gift from my parents and I'm really happy to have done so. Don't have it yet, but I'm sure it wont disappoint and at 50 pounds UK for everything incl p & p I don't even think it is that xpensive. Check the site out and you'll see that you can choose from quite a large range of colours.
    They're not as cheap as some, but that's the way I went 'cos it fits my needs.
    A

  • How to synchronize two USB webcams (each at 30fps) for a combined 60fps video? Three for 90fps?

    Hello All,
    Multiple-Camera Lab Application: How-To?
    Exploring a loose-synchronization for cameras, low resolution, B&amp;W=gray video capture, that may require up to 200fps, laboratory application.
    Frames would be recorded serially, from 1_frame/10msec at 100fps to 1_frame/5msec at 200fps.
    Consecutive frame-to-frame intervals do not need to be fixed at 10msec, they may vary a lot +/-50%, are non-critical.
    Video recording may last up to 1_minute maximum real time (no sound recording needed at any time).
    Specs say a generic USB2.0 webcam can record up to 30fps.
    And USB2.0 is a half-duplex serial protocol.
    Using two or more webcams in parallel, focused on the same scene, may yield a composite video capture at multiples of 30fps.And much lower price than a single dedicated high speed camera.
    Ultimately all frames have to be assembled -in sequence- into one big video recording.
    Any comments, any ideas? Did anyone try this?
    Thank you,
    Dan

    Hi,
    Sorry I am not much help about this. Creative webcams aren't built to work that way.

  • How to generate XSL for an XML file to use it for XSLT transformation -SSIS?

    Hi All,
    Can anybody please help me to generate XSL for my attached XML file?
    I need to use the XSL file for XSLT transformation.
    Thanks & Regards,
    Sri

    Hi Vibhav,
    Thanks for the response.
    I am aware of the process but not sure how to generate XSL file. 
    Can you please refer me to any tool which can convert XML to XSL? or please can you transform my simple XML to XSL?
    Thanks & Regards,
    Sri

  • I am using puffin browser to watch clips on ipad-iphone etc. for that i bought adobe flash player for the browser but its owe full, it does not work will

    what should i do? i askedone of the. site support centre, they said  it should work with some funny other things . talking about the contents of there sites which could work fine on ordinary windows environoment disktops

    We don't have a relationship with Puffin Browser, but it is the only viable option for Flash on iOS and Android that I'm aware of at the moment.
    You'll need to work this out with the folks at Puffin.

  • WebLogic: Can I use CMP for HTTP/XML calls like I can for JDBC ConnPools

    I have an Entity EJB that I currently persist using WebLogic's CMP with an Oracle Conn Pool and JDBC. I have a new persistance (home-made) storage system that talks XML over HTTP. No real SOAP implementation except in the XML/HTTP communications.
    Questions:
    Can I still leverage CMP to persist entities - such that I could create a pool of XML/HTTP objects (that open a java.net connection - send a URL request in XML format) and have CMP handle persisting as it does now?
    I would think there is some universal way to create a pool of communication objects to talk to anything if you define the mechanisms..right? If so, how do I get CMP to see that? In other words, is CMP only applied to "Known" data sources? Or can I give it my own..create my own weblogic-cmp.xml file.

    So, you have a home-made persistence solution with your own API and you expect CMP (_Container_ Managed Persistence) to be able to hook into that? Unlikely, right?
    Maybe you could implement a JDBC driver on top of your persistence scheme, then you might have a shot.
    Vlad.
    P.S. Entity beans' performance is so bad everyone recommends against using them -- doing persistence over something as slow as HTTP would only make matters worse.

  • Player help - xml driven mp3

    Hi,
    I have been working on a different effect for a xml driven
    mp3 mini player; it consists of three buttons that plays, pauses
    and unpauses. Only one button is displayed on screen, to its user.
    Now the problem I've got is that when the song ends, the button
    shown is either pause or unpause; due to once the play button is
    initially pressed its visibility is set to false. Now, when the
    songs ends it stops until the user clicks the play button; however
    the play button at present is invisible; so I need a way to display
    the play button when the song ends, so the user can start it again,
    and pause and unpause as normal.
    I have attached the code.
    Quite a challenge, but the effect will be unique. Clbeech
    where are you?
    Kind Regards,
    Boxing Boom

    Hi,
    Nice try, but doesn't resolve the problem. You als forgot to
    add the playSong() function to the play button; So I added it as
    follows;
    //this is the 'play' button
    toggleSound1_btn.onRelease = function() {
    playSong();
    toggleSound2_btn._visible = true;
    this._visible = false;
    And the rest of the code does exactly what it done in the
    first place. But many thanks for trying this for me, I really do
    appreciate you help.
    What we got here, is a RUBICS CUBE! It is mindgame for me!
    Aaaghh! How can a little sound player script be so hard, this is
    not right, is it?
    This is how my layers is set up; Actions, Play, Pause,
    Unpause. This has nothing to do with the problem at hand?
    Kind Regards,
    Boxing Boom

  • Looking for J2ME audio or video player

    Hello all,
    I am looking for an audio or video Java player which can be used on Foundation of J2ME platform. It is better an open source Java player (but not a must requirement). I am wondering where can I find related sources?
    regards,
    George

    I think there's at least a couple of small application examples in the java tutorials; why don't you start looking at:
    http://java.sun.com/docs/books/tutorial/sound/
    Just a clue.

  • No Media Player for Videos in N8 ?

    Please someone answer me. Is there no video media player for N8?
    I observe that there is no media player for videos and if I have to play video, I will do so by playing the video file one by one. Is there not a way there can be video media palyer to play all the video collections in the phone.

    There is a video player. Menu>videos
    What exactly are you trying to do?
    The video player only plays one video at a time. That's just the way it is. It's just one of those i have learnt to live with. It's irritating, I understand but we'll just have to wait and see if the developers fix it with upcoming updates
    Show your appreciation. Hit that kudos button real hard

Maybe you are looking for