Trouble with Creating a Dynamic Playlist for Progressive Flash Video

Hey There,
I have been working on building a flash video player and are
trying to incorporate the Dynamic Playlist for Progressive Flash
Video. Everyting is working expect the thumbs are not appearing.
Instead, on each row of the list it says " type function". The list
is populated with data b/c i can navigate it and select a video to
watch, just the thumbs are missin.
Any ideas how I can get my jpg thumbs to appear?
thanks

I worked on the same project and it is working alright and
still interested in adding more features like play pause etc ....
but for now I'm more interested in adding the buffering bar and
progress bar.
Any help is welcome.

Similar Messages

  • Creating a Dynamic Playlist for Progressive Flash Video

    Hi
    I just finished reading the Creating a Dynamic Playlist for
    Progressive Flash Video (
    http://www.adobe.com/devnet/flash/articles/prog_download.html)
    tutorial, and it gives a pretty good overview, however I would like
    to be able to add the ability to stop and start the video as well,
    and the tutorial doesn't really explain how the embedded video
    works. Does anyone know how this can be accomplished, or at least
    know where I can find information on how to do this.
    Thanks

    I worked on the same project and it is working alright and
    still interested in adding more features like play pause etc ....
    but for now I'm more interested in adding the buffering bar and
    progress bar.
    Any help is welcome.

  • Problem with tutorial:Creating a dynamic playlist for streaming flash video

    hi, anyone tried the tutorial: creating a dynamic playlist
    for streaming flash video?
    i follow the instruction exactly as stated in the tutorial
    and test the fla file, it worked perfectly well when i open the swf
    using the macromedia flash 8. Everything look fine. Nothing is
    changed except the url is changed to "rtmp://localhost/videosource"
    in the xml file.
    after i publish the file using the setting: access network
    only, i try to open the swf and html file from the folder, the
    thumbnail did not appear and there is no way i can click on any
    videos. What i see is only the list, and there is no response from
    the flash media server 2. All the files is in the same folder.
    Anyone please help with this problem???? thanks

    ....i debug the movie step by step
    and realised that the xml file is being read by the code...
    Your original problem stated it worked but not when playing
    outside the
    Flash authoring environment by simply loading the swf from
    the hard drive.
    The Flash authoring environment is a trusted environment and
    so you really
    need to test in the actual deployment mode which loading an
    swf from the
    hard drive is not a valid deployment unless an installed
    Flash player is
    available outside the web browser which you would have as you
    have the
    authoring tool and your users will not.
    Use a browser with
    http://yourdomain.com/yourmovie.html
    to do final
    debugging.
    In this regard you may need to debug the movie while running
    in real time
    mode in a web browser with
    http:// A technique to trace I suggested is to
    create a temporary TextField perhaps named out_txt and send
    trace message to
    it such as out_txt.text += "My Trace Expression".
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "free23" <[email protected]> wrote in
    message
    news:[email protected]...
    sorry but i don't understand what you mean....i debug the
    movie step by step
    and realised that the xml file is being read by the code...
    this is a sample of my log files:
    #Fields: date time x-pid x-status x-ctx x-comment
    2006-05-15 20:08:58 3072 (i)2651170 Unloaded application
    instance
    videosource/_definst_ -
    2006-05-15 20:48:19 3848 (s)2641173 FCApplication loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Communication Framework
    loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 SimpleConnect loaded
    successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 VideoConference loaded
    successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Video Playback loaded
    successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Communication Components
    loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:19 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:49:42 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: false -
    hope this help...

  • Creating a Dynamic Playlist for Streaming Flash Video

    Hello,
    I have been trying the tutorial given by Lisa Larson in order
    to create a dynamic playlist for streaming Flash video files. I
    have realized some of the FLV files that I have downloaded from
    internet don’t show in the thumbPlayList and cannot be
    played. But once I convert them back to WMV and the use the Flash 8
    Video Decoder to convert them to FLV file everything works fine.
    Any idea or suggestion why there is such a problem?
    Thank you for your advice.
    Babak
    ps.
    This
    is the link to the tutorial I mentioned ...

    Hello,
    I have been trying the tutorial given by Lisa Larson in order
    to create a dynamic playlist for streaming Flash video files. I
    have realized some of the FLV files that I have downloaded from
    internet don’t show in the thumbPlayList and cannot be
    played. But once I convert them back to WMV and the use the Flash 8
    Video Decoder to convert them to FLV file everything works fine.
    Any idea or suggestion why there is such a problem?
    Thank you for your advice.
    Babak
    ps.
    This
    is the link to the tutorial I mentioned ...

  • Creating a Dynamic Playlist for use with Amazon Cloudfront

    I am working on a soultion for my website to deploy Falsh encoded videos from the Amazon Cloudfront using Flash Streaming Video Server 3.5 and the JW Falsh Player (www.longtailvideo.com).
    I am NOT a code person but here is what I am trying to accomplish. I hope I am in the correct forum! If not, I apologize.
    I have several videos a week that I edit and can save in different kbps versions for Dynamic Bitrate streaming through the JW Player. My problem is creating the XML or SMIL playlist to initiate the bitrate switching. I would like to find an authoring tool or someway to generate the required file in a fairly easy manner as I am more videographer/editor that code warrior.
    I would also like to have a playlist of other available videos associated with any given video that could be delivered with the Dynamic Bitrate Switching feature. Example: a lawyer that specializes in several different fields of law and would like to have 5 videos, one for each area of specialization, delivered to clients with high bandwidth and clients on mobile devices and everyone in between!
    Thanks in advance for your time and consideration.
    Lindsey

    I'm looking for the answer to this question too.  If you don't have the answer, or if you don't care to link to the answer, or to recommend a knowledgable expert, please remain silent.

  • Creating a Replay Button for a Flash Video

    I want to replay a flash video by clicking on a "replay" button. I know how to creat the buttons. I can't figure out how to create the action script. Thanks in advance for any help.
    I know how to create the Action Script to replay flash, but when I have a flash video that I want to replay that's when I run into trouble.

    Hi,
    This snippet should hint a solution to you (NetStream class):
    netStream.seek = 0;
    netStream.resume();
    Anyway, you would need to know when the movie has finished playing.
    On a Flash Media server, there should be an event just for that.
    If you are not running on such a kind of server, make yourself a cuepoint to listen to, at the very last frame of the movie, so your app knows when its time to offer the replay functionality. You can insert cuepoints in a movie when you are in the Flash Video Encoder options.
    Design Cyboïde
    Création de sites web Montréal

  • Dynamic Playlist for streaming video

    This is my first attempt at building a dynamic playlist for
    streaming flash video and I'm following the tutorial at
    "macromedia.com/devnet/flash/articles/video_player.html". I've
    changed the paths to my FMS and loaded the video files to the
    applications directory of the FMS (flash_applications/videosource).
    The thumbnails load and the player skin loads but the videos do not
    load when I click on the thumbnails.
    I've read the earlier post about this same issue. I followed
    the advice from that post and reloaded the 'main.asc' file from my
    Flash 8 program files but the video still does not play.
    Here is a link to the site so you can see the problem:
    http://media.us.elsevierhealth.com/videosource/VideoSource1.swf
    My FMS is 'media.us.elsevierhealth.com'
    I believe my code is correct and I believe the paths I've
    created are correct. If someone could review my code and check the
    path info I would appreciate it. Here is the code from
    'VideoSource1.as'
    import mx.video.*;
    //Set up the list box, call function VideoThumb to create the
    actual thumbnails
    list.rowHeight = 70;
    list.cellRenderer = "VideoThumb";
    list.selectable = true;
    //create new empty listener object
    listListener = {};
    nc = new NetConnection(); //create a connection
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    //connect to FCS (nav.attributes.url)
    ns = new NetStream(nc); //create a stream
    ns.connect(); //connect the stream
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    var stream_ns:NetStream = new NetStream(nc);
    stream_ns.play("video2.flv");
    // Create function to trace all the status info.
    function traceStatus(info) {
    Message.text+="Level: " + info.level + " Code: " +
    info.code+"\n";
    } // Assign this function to onStatus handlers when you
    create objects.
    //Function to handle what happens when an item in the list is
    selected
    listListener.change = function( evtobj ) {
    var nav = list.dataProvider[list.selectedIndex];
    var reset = true;
    for ( var i = 0; i < nav.childNodes.length; i++ ) {
    var stream = nav.childNodes
    if ( stream.nodeName == "stream" ) {
    attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:320,
    height:240, x:90, y:100});
    //center the FLVPlayback component when FLV is ready to play
    var listenerObject
    bject = new Object();
    listenerObject.resize = function(eventObject
    bject):Void {
    //center video in playback area
    newx = (460 - my_FLVPlybk.preferredWidth)/2;
    newy = (470 - my_FLVPlybk.preferredHeight)/2;
    my_FLVPlybk._x = newx;
    my_FLVPlybk._y = newy;
    my_FLVPlybk.addEventListener("resize", listenerObject);
    listenerObject.ready = function(eventObject
    bject):Void {
    my_FLVPlybk.setSize(250, 350);
    my_FLVPlybk.skin = "ClearExternalAll.swf";
    my_FLVPlybk.clear();
    my_FLVPlybk.contentPath =
    "rtmp://media.us.elsevierhealth.com/videosource/stream/_definst_/"
    + stream.attributes.name+".flv";
    my_FLVPlybk.autoSize = true;
    trace(my_FLVPlybk.contentPath);
    reset = false;
    //Add an event listener on the list, when it triggers, run
    the listListener function to repopulate the list
    list.addEventListener("change", listListener);
    //Function that loads the XML file, parses it, and builds the
    list of available video clips
    var xmllist = new XML(); //setup a variable to hold the XML
    xmllist.ignoreWhite = true;
    xmllist.load( "playlist-demo-1.xml" ); //load the XML file
    //The following gets called when the XML has been loaded
    xmllist.onLoad = function( status ) {
    if ( !status )
    trace( status );
    var entries = this.childNodes[0];
    var playlists = {};
    var nav = [];
    for ( var i = 0; i < entries.childNodes.length; i++ ) {
    var entry = entries.childNodes;
    if ( entry.nodeName == "listitem" )
    //builds array of video clip names
    playlists[entry.attributes.name] = entry;
    else if ( entry.nodeName == "menu" ) {
    //builds array of available videos
    for ( var j = 0; j < entry.childNodes.length; j++ )
    nav[j] = playlists[entry.childNodes[j].attributes.name];
    } //end else if
    } //end if
    //sends the array of videos to the listbox UI
    list.dataProvider = nav;
    } //end xmllist.onload
    Any advice or troubleshooting will be appreciated. Thanks in
    advance.

    I just used the server on Windows (as opposed to linux) and
    it worked great. So the issue, at least for me and my issue (could
    see the thumbnails, couldn't play the video) was windows vs. Linux.
    I guess the linux version doesn't work with this exact script. Now
    to put together something of my own to test to see if the linux
    version works right.

  • Dynamic Playlist for Streaming Video Errors

    I'm using Lisa Larson's tutorial on the adobe website to
    create a dynamic playlist from an XML file to work with out FMS
    server. After playing around with it for an hour I finally got it
    to connect to the FMS and generate the thumbs but it won't stream
    any of the videos. When I click on the list item the video player
    comes up but doesn't load a video. Any ideas? The live log in the
    FMS console is giving me this error: "
    Error:
    command msg sent before client connection has been
    accepted."
    This is the link for the tutorial
    http://www.adobe.com/devnet/flash/articles/video_player.html

    i don't even get to see the thumbnails! i've left one of the
    original addresses in the xml, and that one always loads, both
    thumbnails and stream. however, every other one i've changed a
    number of ways, i never get any thumbnails nor streams. while
    testing the movie with flash 8, i get the output that the first
    connection (the original one) is a success, but all others are
    failed. in the xml, do you have to put the port in too? cause i've
    tried that, but it makes no difference whatsoever...

  • Can one create a smart playlist for multiple podcasts and to...

    Can one create a smart playlist for multiple podcasts and to play one after the other on your iPod? I want to combine podcasts of the same topic in a smart playlist. When I tried to do this I chose smart playlist, album starts with, and then did it again for each podcast I wanted. That didn't work. If it can be done how do you do it?
    I have a fifth generation iPod which is always updated to the latest as well as the itunes.

    Say for example I want to put different car related podcasts in one smart playlist. Car related podcasts such as Wall Street Journal Car Cast and NPR Car Talk. Can it be done and if so how?

  • Trouble with mobile site. Displays for a second then screen goes black.

    Trouble with mobile site. Displays for a second then screen goes black. Using safari, 4s on Verizon. Example: m.mlb.com/lad/

    I hadn't checked the site since January or so, when it worked. It might be related to the Opening Weekend skin they have on the site, but for me, it shows the top part of the page for 3 seconds while it's loading (scrolling down is impossible) and then all of a sudden it turns black, showing nothing. It's that way for every MLB mobile site.
    At first:
    Two seconds later:
    I noticed this on 4/7/12. Does anyone NOT have this problem?
    Matt

  • Help with dynamic playlist for mpd

    Hi guys,
    I use mpd with sonata for playing my music, and after trying exaile there is one thing id really like for mpd, and that is the dynamic playlist function.
    When you're playing a song in exaile with dynamic playlist enabled, it queries audioscrobbler and automatically adds similar artists/songs to your playlist (if you have them on your pc).
    I dont want to use exaile as it just feels too big and slow and bloated (not KISS ), i know a little bit of python so i thought i'll try and make my own little script/program as Sonata has audioscrobbler support, but i dont think there is anyway to query similar artists.
    I think im going to try and make this as a daemon type program that will run in the background adding songs to the playlist.
    Ive found the code from the exaile source (audioscrobbler.py) which queries lastfm e.g.
    >>> lips = AudioScrobblerQuery(artist='The Flaming Lips')
    >>> for artist in lips.similar():
    ... print artist.name, artist.mbid
    This will print a list of similar artists to the flaming lips.
    I've not done much with python so i thought this would be a good way to try and improve.
    Does anyone have any suggestions as to what the best way to go about searching and comparing the results to my mpd database, would the best way just to be to search the mpd.db?
    And if anyone else has any ideas/comments id like to hear them.
    Edit:
    I just found this too, so i may only need to change some things to integrate it with mpd rather than amarok
    http://www.kde-apps.org/content/show.php?content=31920
    Thanks
    Last edited by Kane (2008-06-05 13:24:33)

    well i just modified the patch into a little script, it does what i need
    its here if anyone wants it
    import audioscrobbler
    import mpd
    import random
    import time
    lastsong = {}
    def timer_control():
    get_similar()
    time.sleep(10)
    timer_control()
    def get_similar():
    audioscrobbler
    client = mpd.MPDClient()
    client.connect("localhost", 6600)
    mpdstatus = client.status()
    prevsonginfo = client.currentsong()
    global lastsong
    if mpdstatus['state'] == "stop": return
    if prevsonginfo == lastsong: return
    lastsong = prevsonginfo
    similarartists = ""
    song = prevsonginfo
    #if not song: break #No song, do nothing
    prevartist = song['artist']
    # Is the info already cached?
    similar_cache = {}
    if similar_cache.has_key(prevartist):
    similarartists = similar_cache[prevartist]
    else:
    #Not cached so fetch from Audioscrobbler
    try:
    similarartists = [artist.name for artist in audioscrobbler.AudioScrobblerQuery(artist=prevartist).similar()]
    # Cache search results and save some time next search
    similar_cache[prevartist] = similarartists
    except audioscrobbler.AudioScrobblerError:
    similar_cache[prevartist] = None # Empty cache
    return # Do nothing!
    if not similarartists: return # Empty list
    # Split list in half and sort upper half
    # this means good matches will have priority
    # but makes sure artist A does not always result in artist B
    half_idx = len(similarartists)/2
    upperhalf = similarartists[:half_idx]
    lowerhalf = similarartists[half_idx:]
    random.shuffle(upperhalf)
    artistlist = upperhalf
    artistlist.extend(lowerhalf)
    # Try each artist in order
    for artist in artistlist:
    try:
    print "Trying:",artist
    songs = client.search("artist", artist)
    if not songs: continue
    selected_song = random.sample(songs, 1)[0]
    client.add(selected_song['file'])
    print "Added", selected_song['title'],"by",selected_song['artist']
    # Delete old song from playlist?
    break
    except mpd.MPDError, e:
    print "MPDError", e.message
    continue
    except ValueError, e:
    print "ValueError:",e.message
    continue
    timer_control()
    Last edited by Kane (2008-06-06 16:22:49)

  • Creating a Dynamic Node for a Dynamic Graphic - Tutorial

    Hi everyone,
    I'm sharing my first tutorial, hope it'll be helpful for you.
    In the Layout tab, it's possible to create an UI element "Business Graphic". It's a very simple tool that only requires a context node with a category attribute (that means, the values that will appear in the 'x' axis) and one or more series (each one with a color, generally a numerical value). It's possible to add a label for each series for better understanding of the Graphic.
    Although it's a very powerful tool, there are some problems when we must create a graphic with N series and different labels. If the graphic use an ALV or internal table to fetch data, during runtime we can have more or less series. The definition of a static node and generic series is not enough in this case. That's why I'd like to present you this little tutorial to create a dynamic node that fetchs a dynamic graph:
    In the WDDOINIT or Event Handler method that starts the application (once the data is available) we should create the dynamic node in the following way:
      DATA: lr_node_info    TYPE REF TO if_wd_context_node_info,             
                 lt_attributes      TYPE cl_abap_structdescr=>component_table,
                 attribute           LIKE LINE OF lt_attributes,
                 struct_type       TYPE REF TO cl_abap_structdescr,
                 lo_dyn_node    TYPE REF TO if_wd_context_node.
    * Let's suppouse we can LOOP at the data table, so we can fetch the
    * category data type (for example company name, month, year, ...)
    * and each series with a numeric type
      attribute-name = 'CATEGORY'.
      attribute-type ?= cl_abap_datadescr=>describe_by_name( 'STRING' ).
      INSERT attribute INTO TABLE lt_attributes.
      attribute-name = 'SERIE1'.
      attribute-type ?= cl_abap_datadescr=>describe_by_name( 'I' ).
      INSERT attribute INTO TABLE lt_attributes.
      attribute-name = 'SERIE2'.
      attribute-type ?= cl_abap_datadescr=>describe_by_name( 'I' ).
      INSERT attribute INTO TABLE lt_attributes.
    * Once we have all the attributs for the node, we create a formal structure
      struct_type = cl_abap_structdescr=>create( lt_attributes ).
    * Now we can get the context information to add a new node
      lr_node_info = wd_context->get_node_info( ).
    * Create the node
      lr_node_info = lr_node_info->add_new_child_node(
                        name = 'GRPH_DYN'
                        IS_MANDATORY = ABAP_false
                        IS_MULTIPLE = ABAP_true
                        STATIC_ELEMENT_RTTI = struct_type
                        IS_STATIC = ABAP_false ).
    * Now we should populates the node, I'll create a hardcoded table,
    * simulating the internal table that you should already have
      TYPES: BEGIN OF tw_alv,
                        category  TYPE string,
                       SERIE1    TYPE i,
                       SERIE2    TYPE i,
                    END OF tw_alv.
      TYPES: tt_alv TYPE STANDARD TABLE OF tw_alv.
      DATA: lw_alv  TYPE tw_alv,
                  lt_alv   TYPE tt_alv.
      lw_alv-category = 'Alfa'.
      lw_alv-serie1   = 3.
      lw_alv-serie2   = 8.
      APPEND lw_alv TO lt_alv.
      lw_alv-category = 'Beta'.
      lw_alv-serie1   = 4.
      lw_alv-serie2   = 4.
      APPEND lw_alv TO lt_alv.
      lw_alv-category = 'Gamma'.
      lw_alv-serie1   = 1.
      lw_alv-serie2   = 3.
      APPEND lw_alv TO lt_alv.
    * Now let's call the recently created node and bind the lt_alv table.
    * Get node from context
      lo_dyn_node = wd_context->get_child_node( name = 'GRPH_DYN' ).
    * Bind table with ALV Container
      CALL METHOD lo_dyn_node->bind_table
        EXPORTING
          new_items = lt_alv.
    * It's always good to check if the table was succesfully binded.
    * I refresh the lt_alv table and get the values from the node for controlling
      REFRESH lt_alv.
      lo_dyn_node->get_static_attributes_table( IMPORTING table = lt_alv ).
    There are other ways of adding a node structure in the method add_new_child_node, but it works for me only with STATIC_ELEMENT_RTTI. The node is now created and has the data required for the graphic. Now, we should go to WDDOONMODIFYVIEW, or save the target view as a parameter, to create the graphic, bind the category and series and show it on the screen.
      DATA: lr_graph       TYPE REF TO cl_wd_business_graphics,
                  lr_cat           TYPE REF TO cl_wd_category,
                  lr_series1    TYPE REF TO cl_wd_simple_series,
                  lr_series2    TYPE REF TO cl_wd_simple_series,
                  lr_container TYPE REF TO cl_wd_uielement_container,
                  lr_flow         TYPE REF TO cl_wd_flow_data.
    * Get the root element from the Layout or the specific
    * container you have created for the graphic
      lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    * Creates a line busniess graph
      lr_graph = cl_wd_business_graphics=>new_business_graphics(
            BIND_SERIES_SOURCE = 'GRPH_DYN'
            CHART_TYPE = cl_wd_business_graphics=>e_chart_type-lines
            HEIGHT = 340
            WIDTH = 750
            ID = 'GRAPH'  ).
    * Create the flow data for the new UI Element business graphic
      lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph ).
    * Set graph in the root container from the Layout tab
      lr_container->add_child( lr_graph ).
    * Bind the category from the dynamic node to the dynamic graphic
      lr_cat = cl_wd_category=>new_category(
                      view = view
                      bind_description = 'GRPH_DYN.CATEGORY'
                      tooltip = 'Company Name' ).
      lr_graph->set_category( lr_cat ).
    * Bind the two series from the dynamic node to the dynamic graphic
      lr_series1 = cl_wd_simple_series=>new_simple_series(
                      bind_value = 'GRPH_DYN.SERIE1'
                      label = 'Sales'
                      view = view
                      tooltip = 'Average Sales' ).
      lr_graph->add_series( lr_series1 ).
      lr_series2 = cl_wd_simple_series=>new_simple_series(
                      bind_value = 'GRPH_DYN.SERIE2'
                      label = 'Purchases'
                      view = view
                      tooltip = 'Average Purchases' ).
      lr_graph->add_series( lr_series2 ).
    Finally we have created our business graphic. Test the application and you'll see something like the attached image.
    Hope you'll find it useful.
    Daniel Monteros.

    Hi,
    http://htmldb.oracle.com/pls/otn/f?p=26372
    then ApEx>Trees and pick a level.
    Use Help for more information.
    I you think that tree could help I will put more explanation into help page.
    Konstantin

  • Creating folders in playlists for burning to CD

    Hi
    Is it possible to create folders within a playlist for burning cd's with about 8 albums on in mp3 format so that it is easier to direct access a particular album on the disc rather than start at track 1 & keep skiping until you reach say the 5th album which will be about track 60 & so on & so on, I have no problems burning the files to disc but like ive explained it just shows as about 160 tracks but no individual folders for each album
    many thanks
    Kev the rev @ York

    Thank you, Mr. Johnson.  I appreciate your candor and your quick response.
    R,
    John

  • Having trouble with creating objects from instances created with ClassLoade

    Hi.
    I'm having a bit of trouble with casting an instance of an object from a custom ClassLoader. Don't worry - the code isn't for anything sinister - it's for one of those life simulation thingies, but I want to make it modular so people can write their own 'viruses' which compete for survival. You know the score.
    Anyway. I've got the beginnings of my main class, which seems to load the class data for all 'virus' classes in a folder called 'strains'. There is a abstract class called AbstractVirus which declares the method calls for how the viruses should behave and to get textual descriptions, etc. AbstractVirus is to be subclassed to create working virus classes and these are what my main class is trying to load instances of.
    Unfortuantely, I can't cast the instances into AbstractVirus objects. The error I've been getting is 'ClassCastException' which I presume is something to do with the fact that my ClassLoader and the Bootstrap ClassLoader aren't seeing eye-to-eye with the class types. Can anyone help? This line of programming is really new to me.
    My code for the main class is below:
    /* LifeSim.java */
    public class LifeSim {
      public LifeSim() {
        /* Get a list of all classes in the 'strains' directory and store non-
         * abstract classes in an array. */
        Class virusClasses[] = null;
        try {
          /* Get a reference to the file folder 'strains' and make sure I can read
           * from it. */
          java.io.File modulesFolder = new java.io.File("strains");
          if (!modulesFolder.isDirectory() || !modulesFolder.canRead()) {
         System.out.println("Failed to find accessible 'strains' folder");
         System.exit(-1);
          /* Get a list of all the class files in the folder. */
          String virusFiles[] = modulesFolder.list(new ClassFileFilter());
          if (virusFiles.length == 0) {
         System.out.println("No virus strains in 'strains' folder");
         System.exit(-1);
          /* Create an array of class objects to store my Virus classes. Ignore the
           * abstract class as I cannot instantiate objects directly from it.*/
          virusClasses = new Class[virusFiles.length];
          VirusClassLoader classLoader = new VirusClassLoader();
          int j = 0;
          for (int i = 0; i < virusFiles.length; i++) {
         String virusName = "strains/" + virusFiles;
         Class tempClass = classLoader.loadClass(virusName);
         if (tempClass.getName().compareToIgnoreCase("strains.AbstractVirus") != 0) {
         virusClasses[j++] = tempClass;
    } catch (ClassNotFoundException ncfe) {
    System.out.println("Failed to access virus class files.");
    ncfe.printStackTrace();
    System.exit(-1);
    /* TEST CODE: Create an instance of the first virus and print its class
    * name and print details taken from methods defined in the AbstractVirus
    * class. */
    if (virusClasses.length > 0) {
    try {
         // Print the class name
         System.out.println(virusClasses[0].getName());
         Object o = virusClasses[0].newInstance();
         strains.AbstractVirus av = (strains.AbstractVirus) o;
         // Print the virus name and it's description
         System.out.println(av.getQualifiedName());
         System.out.println(av.getDescription());
    } catch (InstantiationException ie) { ie.printStackTrace(); }
         catch (IllegalAccessException iae) { iae.printStackTrace(); }
    public static void main(String args[]) {
    new LifeSim();
    class ClassFileFilter implements java.io.FilenameFilter {
    public boolean accept(java.io.File fileFolder, String fileName) {
    if (_fileName.indexOf(".class") > 0) return true;
    return false;
    class VirusClassLoader extends ClassLoader {
    private String legalClassName = null;
    public VirusClassLoader() {
    super(VirusClassLoader.class.getClassLoader());
    public byte[] findClassData(String filename) {
    try {
    java.io.File sourcefile = new java.io.File(filename);
    legalClassName = "strains." + sourcefile.getName().substring(0,sourcefile.getName().indexOf("."));
    java.io.FileInputStream fis = new java.io.FileInputStream(sourcefile);
    byte classbytes[] = new byte[fis.available()];
    fis.read(classbytes);
    fis.close();
    return classbytes;
    } catch (java.io.IOException ioex) {
    return null;
    public Class findClass(String classname) throws ClassNotFoundException {
    byte classbytes[] = findClassData(classname);
    if (classbytes == null) throw new ClassNotFoundException();
    else {
    return defineClass(legalClassName, classbytes, 0, classbytes.length);
    Thank you in advance
    Morgan

    Two things:
    I think your custom ClassLoader isn't delegating. In general a ClassLoader should begin by asking it's parent ClassLoader to get a class, and only if the parent loader fails get it itself. AFAIKS you could do what you're trying to do more easilly with URLClassLoader.
    Second, beware that a java source file can, and often does, generate more than one class file. Ignore any class files whose names contain a $ character. It's possible you are loading an internal class which doesn't extend your abstract class.

  • Creating a dynamic page for each record.

    So I understand how to grab a single row from a database for use on a dynamic page.  Now creating 1,000 pages for each row would be rather tedious even with copy and paste.  So can anyone provide me some information on how to do this without creating each page manually?

    >See what im saying?
    No.
    >What you are suggesting wouldn't actually produce a page for that product which can be linked to from other areas of the site.
    Yes it would. You create a link to a dynamic page and pass it the id of the item you want to display. So instead of using a link to a static page like this:
    <a href="mywidget_01.html">My Widget 101</a>
    You would link to a dynamic page like this:
    <a href="widgets.php?id=101">My Widget 101</a>
    The widgets.php would read the query string and pull the correct data for widget 101 from the database. You could even use url rewriting so the url of the dynamic page for widget 101 would be http://example.com/widget101
    >What I need is an easier way to produce 40,000 static pages.
    That's crazy. It defeats the whole purpose of dynamic sites. Before you start on this, make sure you fully understand your options.

Maybe you are looking for

  • HT2736 Can I send an app as a gift outside United States?

    I have a friend living in Canada and I would like to send him an app as a gift. Is it possible to do so? I am living in United States.

  • Problem in displaying text in smartform

    Hi, In my smartform, In a text element I have written a text like below. Reference Number ,,,, &v_ref& ,,,, Date Received ,,,,&v_date& Now v_ref can be max of 23 characters. When it is of 23 characters, it is showing fine in output. But when it is <2

  • File Content Conversion - Recordset Structure required??

    Hi, I have a File Sender Communication Channel (CC) to convert very simple csv format to XI data type (XML). The contect of csv file will look something like this and will always have one line per file. 111,222,333,444,555 And I have defined the Data

  • Sending photos through facebook messenger

    I just switched from android to z10. Fine good but have a problem with Facebook app. I can't sent photo through Facebook message. Is there any way? Please help me.

  • Calling a concurrent program from CO in OAF

    Hi, I am trying to submit a conc. program from CO in OAF and in the controller code i am using the submitRequest method to submit the conc. progam but its giving error as method submitRequest() not found in class oracle.apps.fnd.cp.request.Concurrent