ADs implementations using OSMF player based application

Hi,
Greetings !!
I am currently creating an OSMF player based application for which I need to implement ADs in player. I need your help to implement the same using Flash Builder 4.6.
It would be great if you could provide documentation and swc file for ADs implementations using OSMF player based application.
Any help will be appreciated !!
Regards
Pr33T

Here is a link to player:
http://front.xstream.dk/sa/resources/swf/?id=5600
Here is a manifest file:
http://fms4.xstream.dk/sa/f4m/2011-07/1309755901073853000-H264_1400kbit_128kbit_1024x576_m p4-STD.f4m
Files used for generating all f4f and f4x files:
http://front.xstream.dk/sa/resources/content/mp4/2011-07/1309755901073853000-H264_400kbit_ 64kbit_512x288_mp4-STD.mp4
http://front.xstream.dk/sa/resources/content/mp4/2011-07/1309755901073853000-H264_800kbit_ 96kbit_768x432_mp4-STD.mp4
http://front.xstream.dk/sa/resources/content/mp4/2011-07/1309755901073853000-H264_1400kbit _128kbit_1024x576_mp4-STD.mp4
Command used for f4fpackager:
f4fpackager --input-file=1309755901073853000-H264_400kbit_64kbit_512x288_mp4-STD.mp4 --bitrate=400
f4fpackager --input-file=next_file --bitrate=800  --manifest-file=manifest_produced_in_previous_operation
and so on...

Similar Messages

  • What technologies to use in web based application...??

    Hi,
    I have to develop a web-based application that will be used to display configured tests to user as well will allow user to add new tests and modify/delete already configured tests. What technologies shall i use to develop this application. And what will be fast to learn.
    What is your opinion on applet-servlet approach here.
    Please suggest.
    Thanks,
    Deepak

    What you've got sounds good.
    If you're not going to build EJBs then you probably don't need JBoss.
    Tomcat is the servlet engine for JBoss so you're getting the same thing but lighter by just using it.
    The important thing is to make sure you have a nice separation of concerns. If you separate all of the database access by creating data access objects (DAO) objects that return plain old Java objects (POJO) then you can, if you choose, easily swap in Hibernate or another ORM Tool.

  • Opening pdfs using a CD based application

    Hi:
    I am heartily sick of Adobe Acrobat and would like my users
    to open pdfs with the Foxit application. Currently I scan the users
    system for acrobat and, if it isn't there, prompt them to install
    the reader. However, I'd like to give this approach the heave-ho
    and instead just get pdfs to open with Foxit -- however, I don't
    want them to install the program -- I just want the program to run
    from the cd. Has anyone made this work?
    Thanks for any advice you can provide

    Last I checked, Authorware will default to the Windows
    associations for
    launching a parent application. So if the user has Acrobat
    installed, no
    matter what you enter for the first JOR argument, Acrobat
    will be
    launched for PDF files. BUT if the computer doesn't have an
    association,
    then it shouldn't have a problem launching the specified
    parent application.
    Just mentioning that in case you required Foxit to be used
    for some reason.
    Side note, I love the Foxit Reader. So nice to have a basic
    .exe with no
    dependencies, required installing, and such silliness.
    I've replaced Acrobat on all my machines with Foxit and PDF
    Creator for
    reading and printing PDFs (respectively, of course). And PDFs
    open so
    much quicker too than the Acrobat bloat.
    Erik
    EdKaset wrote:
    > Problem solved. I hadn't realized that Foxit Reader was
    a standalone .exe --
    > thought it required installation like Adobe Reader.
    Thank God I never have to
    > use Adobe Reader again. What a hideous bloated thing it
    is.
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Table View in View-based Application

    Hi.
    I want to use an UITableView in a View-based Application.
    All examples I found are for Navigation-based Applications.
    I Found only one example for View-based Applications, but it create all components himself without the Interface-Builder.
    I search an example with Interface-Builder.
    My main problem is, when i create a view with Interface-Builder, the controller class does not inherit from UITableViewController.

    GrinderFX wrote:
    I want to use an UITableView in a View-based Application.
    Hi, and welcome to the Dev Forum!
    Firstly, I would point out that you don't need to use UITableViewController to control a table view. The table view controller is just more convenient. So for example, you could simply drag a table view from the library in IB and drop it onto your view. Then you could hook up the table view's dataSource and delegate outlets to the File's Owner. Then you would add the data source and delegate protocols to the @interface of your UIViewController subclass and add the required data source and delegate methods to the @implementation.
    I mention the above because building your table view that way is very instructive. If you want to learn more about table views in general I would recommend Chapter 8 of +Beginning iPhone Development: Exploring the iPhone SDK by Mark and LaMarche+, which includes 3 table view projects that don't involve a navigation controller.
    My main problem is, when i create a view with Interface-Builder, the controller class does not inherit from UITableViewController.
    Returning to your specific question, IB allows you to change the class of an object. Here are the steps to use the View-Based Application template as you described (In the following I'm using Grinder as the name of the project; e.g. the app delegate class is named GrinderAppDelegate, and the view controller subclass is named GrinderViewController):
    1) _Change parent of view controller subclass in your code_
    In GrinderViewController.h, you only need to change the superclass from UIViewController to UITableViewController:
    @interface GrinderViewController : UITableViewController {
    However it will be easier later on if you make new files from the UITableViewController file template:
    a) Ctrl-click on GVC.h and GVC.m in the Groups & Files tree; select Delete->Also Move to Trash;
    b) Ctrl-click on Classes; select Add->New File->iPhone OS->Cocoa Touch Classes;
    c) Select UITableViewController subclass from the right center panel and click Next;
    d) File Name: GrinderViewController.m; check Also create GrinderViewController.h;
    e) Make sure the name for these new files is exactly the same as the ones you deleted; if you make a mistake here, delete the new files and start over, because that name must be the same in several other files;
    f) Click Finish; the replacement files should now appear under Classes.
    2) _Change the view controller class in IB_
    a) Double click on MainWindow.xib under Resources in the Groups & Files tree;
    b) Make sure the MainWindow.xib window is open by selecting Window->Document from the IB menu;
    c) Locate the View Mode switch, upper-left, in the xib window, and select the Center position;
    d) The xib window should now be displaying two columns with small icons on the left;
    e) Select the Grinder View Controller icon;
    f) Select Edit-Delete to delete that icon;
    g) Select Tools->Library from the menu, and expand Controllers in the Library Panel;
    h) Drag a Table View Controller to the xib window and drop it right under the app delegate icon;
    i) Select Tools->Identity Inspector from the menu to open the Grinder View Controller Identity Panel (the new Table View Controller should still be selected in the xib window);
    j) Under Class Identity, select Grinder View Controller from the list; tab out of the Class field to be sure the selection is recorded;
    k) Ctrl-Click on Grinder App Delegate and connect the view controller outlet (ctrl-drag) to Grinder View Controller;
    l) Expand GVC in the xib window and delete the Table View icon (since we want it in the other xib file);
    m) Reselect the GVC icon and open the Grinder View Controller Attributes panel;
    n) Under View Controller, select GrinderViewController from the NIB Name list;
    o) In the Table View Controller IB Editor window, select GrinderViewController.nib to open the other xib file;
    p) Make sure the GrinderViewController.xib window is open in small icon mode as in steps b-d above;
    q) The class of the File's Owner should be GrinderViewController;
    r) Delete the View icon;
    s) Drag a Table View from the Library to where the View icon was;
    t) Ctrl-click on File's Owner and connect (ctrl-drag) it's view outlet to the Table View;
    u) Ctrl-click on Table View: connect both the dataSource and delegate outlets to File's Owner;
    v) File->Save both xib files.
    3) _Make some rows in the table view and test_
    a) Open GrinderViewController.m in Xcode;
    b) Add the commented lines (be sure to use the correct line for your target OS);
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 20; // <-- change to more than zero
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
    // Configure the cell
    // add this line for OS 2.x
    cell.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    // add this line for OS 3.0
    // cell.textLabel.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    return cell;
    c) Build and Go.
    I should add that the procedure might be a little easier if you start with the Window-Based Application Template. But the above is good practice in editing xib files.
    Hope that's helpful!
    - Ray

  • I am new to this. How do I get OSMF player to handle RTMP streams? It's not in the docs.

    Hello all,
    I want to stream RTMP or RTMPE using the OSMF player on my website and although the using_fmp_smp_post1.0.pdf file SAYS this player can be configured for RTMP, NOWHERE in this file does it say HOW to do so. Keep in mind, not all of us are software engineers. Some of us save every penny to buy software like FMIS (which I did) and I want to use OSMF player to deliver the goods.
    So...
    Tell us HOW to deliver the goods vis RTMP!!!
    Please.
    Cheers,
    wordman

    WriterDonna,
    Thank you for listening! As a tech writer myself, I am always finding places in documentation that miss some crucial point. I respect the fact that OSMF is in pre-release stage and I am grateful for all the work required to get such a project off the ground.
    All I ask, and what I believe should always be included in documentation is this: If you mention a feature, address it and explain it. That simple. For example, the page regarding the player's installation in one's htdocs folder on their web server is concise, but it's also too little. It tells us how to check that the installation works by playing the sample video, but it offers NOTHING about how to troubleshoot the installation if the sample does not play.
    Please keep in mind that not everyone is a software engineer and there are people out there who are struggling along to not only learn a new technology, but are also having to implement it, almost simultaneously, as well. I appreciate that ideally, we'd all read tutorials, take classes and get up to speed FIRST. But as a one-man developer shop, I often have to learn and implement simultaneously. I have no choice. (I did so with PHP and MySQL).
    If your documentation can be technically concise while speaking in a tone that is understandable to people of modest skill levels (this is where the REOPS docs fail miserably) then, in my opinion, you will have succeeded. In turn, the users will be empowered and become your greatest champions.
    Again, thank you for listening!
    Sincerely,
    wordman

  • OSMF Player Error: URL missing from Media tag - HTTP Live

    When I try to play an HTTP Live Stream using OSMF Player, I get "URL missing from Media tag" error.
    I installed Flash MS4.0 with Apache2.2.
    My live manifest file (f4m) is below.
    http://localhost/live/events/livepkgr/events/_definst_/liveevent.f4m
    <manifest>
    <id> livepkgr/events/_definst_/liveevent </id>
    <mimeType> </mimeType>
    <streamType> live </streamType>
    <duration> 0 </duration>
    <media streamId="livestream1" bitrate="100">
    <metadata> </metadata>
    </media>
    <media streamId="livestream2" bitrate="200">
    <metadata> </metadata>
    </media>
    <media streamId="livestream3" bitrate="350">
    <metadata> </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i1/livestream%i1.bootstrap" id="bootstrap2386"></bootstrapInfo>
    <media streamId="livestream%i1" url="../../../../streams/livepkgr/streams/_definst_/livestream%i1/livestream%i1" bootstrapInfoId="bootstrap2386">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i2/livestream%i2.bootstrap" id="bootstrap6801"></bootstrapInfo>
    <media streamId="livestream%i2" url="../../../../streams/livepkgr/streams/_definst_/livestream%i2/livestream%i2" bootstrapInfoId="bootstrap6801">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i3/livestream%i3.bootstrap" id="bootstrap1"> </bootstrapInfo>
    <media streamId="livestream%i3" url="../../../../streams/livepkgr/streams/_definst_/livestream%i3/livestream%i3" bootstrapInfoId="bootstrap1">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    </manifest>
    It seems to me that it is a configuration issue, but I have no clue.
    I compared above manifest with a sample manifest that I found on Adobe's site, the attributes are same but the structure is not. Maybe that is causing OSMF to fail.
    Thanks for any suggestion!

    I am using other encoder than FMLE. I am publishing 3 streams.
    rtmp://x.y.z.w/livepkgr
    H264 BL3.0 60kbps, 160kbps and 310kbps & AAC-LC Stereo 32kHz 40kbps & Fragment duration 4 sec
    >>> matches C:\Program Files\Adobe\Flash Media Server 4\applications\livepkgr\events\_definst_\liveevent Event.xml and Manifest.xml files.
    <FragmentDuration>4000</FragmentDuration>
    <media streamId="livestream1" bitrate="100" />
    <media streamId="livestream2" bitrate="200" />
    <media streamId="livestream3" bitrate="350" />
    (e.g. 60kbps video + 40kbps audio for the 1st stream)
    I have Common output parameters > Stream Name configuration on my Live Transcoder and I write the following:
    livestream%i?adbe-live-event=liveevent&adbe-http-streaming-ver=1.0
    Then Admin Console > View Apps > Live Log includes the following:
    Stream name is: livestream%i1 and live event is: liveevent
    Stream name is: livestream%i2 and live event is: liveevent
    Stream name is: livestream%i3 and live event is: liveevent
    As you say, it seems %i above causes the problem, but how to fix it?
    My f4m includes the bitrates:
    <id> livepkgr/events/_definst_/liveevent </id>
    <mimeType> </mimeType>
    <streamType> live </streamType>
    <duration> 0 </duration>
    <media streamId="livestream1" bitrate="100">
    <metadata> </metadata>
    </media>
    <media streamId="livestream2" bitrate="200">
    <metadata> </metadata>
    </media>
    <media streamId="livestream3" bitrate="350">
    <metadata> </metadata>
    </media>
    Thanks!

  • [iPhone] Navigation-Based Application template / UITableViewController

    I'm new to development for both Mac OS X, the iPhone and Objective-C, but do have decent experience with C/C++. I'm trying to put together a series of simple iPhone applications to help expand my knowledge and wanted to ask whether or not I've got the right idea regarding my next test application.
    I've used the Navigation-Based Application template to create an application that loads a Table View and populates it with a few items. I'm considering this Table View as the root menu for my application. Selecting an item from the Root Menu will take the user to a sub-menu (that is specific to the Root Menu selection). Selection of an item from the sub-menu will take the user to a view that'll let them perform a particular action.
    I'm wondering the best way to go about structuring this kind of application? Should I create a controller class and accompanying xib for each of my sub-menus? If this is the case, would I have to use the didSelectRowAtIndexPath method to detect which menu item has been selected in order to determine which sub-menu view to push?
    I'm happy to get my hands dirty and experiment (which is why I'm taking these baby steps), but I'm hoping someone with a little experience can come along and shed some light on how a relative professional would go about doing something like this?

    Sounds like a good approach. You can use initWithNibName to load a view from a nib / xib. You can also re-use the same xib for different instances of the submenu view by parametrizing initWithNibName and do any customization to the controls in viewDidLoad.

  • Stream not found in OSMF player

    Hi..
    This is ramesh,
    I installed adobe zerri server in my local server and using f4f packager i created manifest files with different bitrates and moved that files to /opt/adobe/fms/webroot/vod .
    using osmf player iam giving request as http//:www."local server ip"/vod/filename.f4m ,its playing contents fully and no problem with this........
    i created one delivery service in CDSM page , content origin as this zerri server ip  ,assigned service engine with some domain name and i prepositioned the files  in delivery service content origin. using osmf player iam giving request as http://www.domainname/vod/filename.f4m but contents are playing up to some fragments and throwing error as "STREAM NOT FOUND" in OSMF player...
    can anyboby suggest me that why the contents are not playing while giving request with domain name?
    problem with zerri code in service engine ?
    thanks,
    Ramesh

    Hi, thanks for the quick response.
    i have changed the HttpStreamingContentPath location in apache httpd.conf  form
    <Location /vod>
        HttpStreamingEnabled true
        HttpStreamingContentPath "/srv/www/vhosts/domain.xy/httpdocs/vod"
    </Location>
    to
    <Location /vod>
        HttpStreamingEnabled true
        HttpStreamingContentPath "/srv/www/vhosts/domain.xy/httpdocs"
    </Location>
    and all files are in the vod folder. But after opening   /vod/test.f4m in the OSMF player the player.swf tryed to open:
    "GET /:///vod/:///vod/testSeg1-Frag1 HTTP/1.1" 404 1324 http://www.domain.de/player.swf"
    Is this URL-Part "/:///vod/:///vod/testSeg1-Frag1" generated from the module or from the player.swf with the f4m-File?

  • ArrayController in non-document based Applications

    I just tried to use the ArrayController in an app. The app was not document based. I did everything as you are supposed to do, I made up a class called AppControll, set it Files Owner of the XIB file, connected the contend Array and so on. There were no warnings or errors, the compiler said No Issues, the Build was suchsessfull. But before the window has opened, the Application crashed. On the console was this log:
    2011-05-17 16:28:45.652 MyApp[9637:903] An uncaught exception was raised
    2011-05-17 16:28:45.656 MyApp[9637:903] [<NSApplication 0x10011b240> valueForUndefinedKey:]: this class is not key value coding-compliant for the key boxArray.
    2011-05-17 16:28:45.792 MyApp[9637:903] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSApplication 0x10011b240> valueForUndefinedKey:]: this class is not key value coding-compliant for the key boxArray.'
    *** Call stack at first throw:
              0   CoreFoundation                      0x00007fff8059a7b4 __exceptionPreprocess + 180
              1   libobjc.A.dylib                     0x00007fff864c30f3 objc_exception_throw + 45
              2   CoreFoundation                      0x00007fff805f2969 -[NSException raise] + 9
              3   Foundation                          0x00007fff867abb8e -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 245
              4   Foundation                          0x00007fff866db488 -[NSObject(NSKeyValueCoding) valueForKey:] + 420
              5   AppKit                              0x00007fff8810a384 -[NSApplication(NSScripting) valueForKey:] + 492
              6   Foundation                          0x00007fff866dedcc -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 226
              7   AppKit                              0x00007fff87e9fb6f -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
              8   AppKit                              0x00007fff88065f80 -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 368
              9   AppKit                              0x00007fff87e92a33 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 557
              10  AppKit                              0x00007fff87e6f546 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1172
              11  AppKit                              0x00007fff87e6d88d loadNib + 226
              12  AppKit                              0x00007fff87e6cd9a +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
              13  AppKit                              0x00007fff87e6cbd2 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326
              14  AppKit                              0x00007fff87e6a153 NSApplicationMain + 279
              15  MyApp                            0x0000000100001302 main + 34
              16  MyApp                            0x00000001000012d4 start + 52
    terminate called after throwing an instance of 'NSException'
    The debugger tells me "Programm recieved signal SIGBART"
    If I cut the bnding to the contend array, the Applications stats as usual, but it dosent work, because there is no contend array.
    Then I tried something else. I made up a new project, this time a document-based one, and did exactly the same as I did before. It worked well and fine the way it should work. There was no problem and the ArrayController worked fine. I don`t think a made mistake writing the name of the array, because I allways copied and pasted the name to the IB. So I would like to know if it is possible to use an ArrayController in a Non-document based Application? What do i have to do differently? The reference about the ArrayController does not mention this. It would be great if you could help me soon, thank you.

    No, but actually this was not my Problem But It helped me figure out what the problem is in detail. If you use a document based application, NSDocument can call the subclass NSPersistentDocument. This automatically reads out the model (if you use Core Data. I do`t like Core Data because it`s sometimes a bit strange and it`s hard to hunt down bugs there, but I think basically the problem is the same) and create a managedObjectContext, wich is needed to run the NSArray Controller. The big question is now, how to call something simular to NSPersistentDocument wich is not a subclass ob NSDocument but of NSObject.

  • Dealing with a turn based application with using a global static variable

    Hi there. I read some articles about JavaFX concurrency,so as a newbie i have to practice on it. Now i'm trying to implement a turn based application that can be played among 3-6 players. Moreover, i use a scene imported from a .fxml file and i have to update it correctly depends on some calculations of each thread (in other word players ). My main issue is, i don't wanna use a while loop which checks the state of game like;
    while( GameState != State.GAME_OVER ){
         currentPlayer = GameBoard.getNextPlayer();
         // do some actions,calculations etc.
    So, i want to use worker threads instead of this while loop. I guess using Service class for iterating and assigning the next player will be suitable instead of using the while loop and Tasks for doing each player's calculation,or waiting for some responses from Human players on UI based,however, i'm struggling with two problems.
    There should a global static variable ( like GameState which is an Enumarator ) determines the state of the game,so it should be updated and should be checked by each turn. Is there any way to do this ?
    How can i get rid off this while loop ?
    I will appreciate for every answer. Thanks anyway.

    It shouldn't make too much difference. The basic idea is that you have a model class representing your game state (the Game class in jsmith's example). When a player makes a move, you update the state of the game. Since this will result in changes to the UI, this update should be performed on the FX Application Thread.
    If the player making the move is a human player, the move will likely be made by a user action (button press or mouse click, etc); this will be handled on the FX Application thread anyway.
    When the state of the game changes so it is the turn of an "artificial" player to make a move, have the object representing the artificial player calculate its next move, and then update the game state. Since this is a response to the game state changing (it's now the turn of the artificial player), this will also be on the FX Application Thread.
    The only (slight) complexity comes if the calculation of the move for the artificial player takes a long time. You don't want to perform this long running calculation on the FX Application Thread. The cleanest way to manage this is to launch a Task which calculates the desired move, and then updates the game state when the move is ready. So, something like this:
    GameState game = ... ;
    // UI is bound to the game state.
    ExecutorService executorService = ... ;
    final Player currentPlayer = game.getCurrentPlayer() ;
    final Task<Move> calculateMoveTask = new Task<Move>() {
         @Override
         public Move call() {
              Move move = // compute next move...
              return move ;
    calculateMoveTask.setOnSucceeded(new EventHandler<WorkerStateEvent>() {
         @Override
         public void handle(WorkerStateEvent event) {
              gameState.makeMove(currentPlayer, calculateMoveTask.getValue());
    executorService.submit(calculateMoveTask);
    If you're doing more threading than that, you're probably doing it wrong... . There should also be no need for anything to be held as a "global" static variable (the idea above is the only structural modification you need to the example posted by jsmith).

  • What is Digital Signature, How to use it in web based applications?

    I am new to digital signatures. Any body can help me how to create a digital signature and how to use it in web based applications. Do we need certificates to use digital signatures?

    <link_farm_and_everything_else_removed_by_moderator>
    Edited by: Julius Bussche on Sep 3, 2008 8:59 AM

  • Developing Web based applications using developer 6.0

    How best i can use developer 6.0 as a web based application. I
    have oracle web application server 4.0. Is it possible to
    develop forms in 6.0 and use through the web application server.
    null

    T.Pavan Kumar (guest) wrote:
    : How best i can use developer 6.0 as a web based application. I
    : have oracle web application server 4.0. Is it possible to
    : develop forms in 6.0 and use through the web application
    server.
    Yes, it's possible and it runs.
    You will need:
    - Application Server 4.0.7 or above (with 4.0.7 without patch,
    do not install it on Win NT with SP4, it doesn't run
    - Developer Server (may be it is not on your distribution CD for
    Developer, but you can download or order it from OTN)
    - JInitiator (the Oracle Java PlugIn, also available from otn)
    for your end user's browser
    Tip:
    look very carefully at the documentation AND readmes. Also, if
    you do this job for the first time, be prepared for some days of
    work before your first form runs as a java applet...
    peter
    null

  • Notebook shuts down when using flash-based applications on FB

    A few minutes after I log in several facebook flash-based applications (Cafe World, Treasure Isle, Frontier Ville) my pc shuts down. This has not always been the case, only in the couple past weeks. At first I thought my notebook was overheating...but how can a flash-based game overheat a pc in less than 5 minutes? I was a bit perplexed since ZyngaPoker (another flash-based app) causes no problems even if I play for an hour straight but then again I turned my notebook one morning after leaving it idle for 12 hours and went directly to one of the aforementioned apps. 3 mins and.. BAM. I have a good pc, always use Chrome and good software (such as CCleaner, Deffragler, SpeedFan etc). I am not so familiar with flash so I don't know what I might have do in order to resolve this issue. I hope some of the gurus here might get to read this thread and give me any tips.

    bump

  • Geography based industry scenario which can be implemented using user exit

    Hi All,
    I am searching for a geography based industry scenario which can be implemented using user exit strategy.
    Please let me know me if anyone knows about any such scenario.
    Thanks & Regards,
    Pranjali.

    Hi Amith,
                   IDOC configured throgh CHANGE pointers.So no need to worry about IDOCS and all.My work was trigger idocs by user exits.Wen  ever i change venodr no.. idocs shoud be triger.
                 Now my question was Insted of going transaction( from there we can  go to debuging mode) i want to check this Exit by RBDMIDOC programe(ofter excute this programe and give Message type as CREMAS,from there i want to go debugging mode).
    Just now i checked,i put breakpoint in Include programe(INCLUDE ZXF05U01) and excute from XK01,it goes to debuging mode,so its fine.But i want triger from RBDMIDOC programe.Ofter excute RBDMIDOC programe,we can enter CREMAS.From there i want to go debuging mode.
    Pls help me,
    Thanks

  • [svn:osmf:] 14357: Moved constants for namespace ( also added a version number to the namespace) and the metadata key to the MASTPluginInfo class so these constants can be used from player code .

    Revision: 14357
    Revision: 14357
    Author:   [email protected]
    Date:     2010-02-23 09:41:57 -0800 (Tue, 23 Feb 2010)
    Log Message:
    Moved constants for namespace (also added a version number to the namespace) and the metadata key to the MASTPluginInfo class so these constants can be used from player code.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/MASTPluginInfo.as
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/media/MASTProxyElement.as

    Revision: 14357
    Revision: 14357
    Author:   [email protected]
    Date:     2010-02-23 09:41:57 -0800 (Tue, 23 Feb 2010)
    Log Message:
    Moved constants for namespace (also added a version number to the namespace) and the metadata key to the MASTPluginInfo class so these constants can be used from player code.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/MASTPluginInfo.as
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/media/MASTProxyElement.as

Maybe you are looking for