Custom DataSource plays in JMStudio, but not in my application

hello everyone. I need someone to help me out who has played around a lot with DataSources.
I have been playing around with custom DataSources for a small while and I have not been able to figure out something and its starting to get frustrating.
First let me tell you what process I exactly follow when I want to create a Custom DataSource (using the "Generating Live Audio/Video Data" datasource code sample as an example - from JMF solutions http://java.sun.com/products/java-media/jmf/2.1.1/solutions/LiveData.html):
1. Suppose the source files (DataSource.java and LiveStream.java) are lying at C:\customds\.
I compile the files like this:
javac -d . DataSource.java LiveStream.java
As a result this directory is formed C:\customds\jmfsample\media\protocol\live which contains all the compiled (interpreted) files.
2. Then I register 'jmfsample' in the Protocol Prefix list and commit the changes using the JMFRegistry GUI.
3. Now if I run JMStudio and enter the URL live: it gives me an error that it can't create a player. I feel this is happening because some classpaths haven't been set correctly. Eventually I figured out that I have to place the \jmfsample\media\protocol\live\ directory inside the <JMF install dir>\lib\. Doing this fixes the problem and now I can go to JMStudio and run the protocol using the 'Open URL'. Giving it 'live://' plays the 'blue screen' like a gem.
4. But here is the catch now. When I create an application which tries to create a player using live:// as a source, it doesn't run and keeps giving me a noPlayerException, or a noDataSourceException (as the case would apply; code given below).
The funny part is that i checked the JMStudio source code for the method that is used to 'Open URL'. I haven't found any siginificant change in the way it opens urls.
I also went a step further and tried to compile and run the JMStudio code myself to trace the code when it is in the process of opening a url. The weird thing is that when I try to do that, giving live:// as a URL gives me the same error that is given by my application. In other words JMStudio when compiled by me gives me same the error of "can't create a player..." when I open the url live://. Has Sun used a JMStudio compiled using a different source file?
Please please anyone tell me what is wrong here.
I have basically tried out these two kinds of things in my code, and both give me a noPlayerException error:
Player guiPlayer = Manager.createRealizedPlayer(new MediaLocator("live://"));and
DataSource ds = Manager.createDataSource("live://");
Player guiPlayer = Manager.createRealizedPlayer(ds);Thanking in anticipation.
regards

Would it be possible for you to expand on your solution a little bit? I'm trying a similar approach, and having a similar problem to yours. From Googling, it appears as if this is a very common problem, and a lot of people give up before they solve it.
I'm trying to use jmf.jag (and optionally add fobs4jmf.jar), not compile it from source. But I am trying to compile my own protocol from source and run it in a debugger. I have all the class files going out to the same output directory, and IntelliJ generally adds them all to the CLASSPATH automatically. But I keep getting NoPlayerException. (If I break down the players construction step-by-step, it seems to fail on "Processor ps = Manager.createProcessor(ds);".)
I'm trying to play a Quicktime movie from memory, and I've confirmed that I'm returning "video.quicktime", that my stream is Seekable and isRandomAccess returns true, my prefix is in the protocol list, and that the package name is correct. I've tried with PLUGIN_PLAYER being true or false, media type being video.quicktime or unknown, and every other permutation I can think of.
Any help would be greatly appreciated.

Similar Messages

  • ITunes purchased song plays in iTunes but not on iPod

    I have purchased several songs from the music store. One of the songs will play in iTunes but not on my iPod. I've removed the song several times from the iPod and resynced with iTunes, but the song still cuts out in the middle of the song. What should I do?

    If it's just a problem with that song, I would contact the customer service who may authorize another download.
    http://www.apple.com/support/itunes/store/download/#form

  • How can I move movies from my computer to my iPad? They will play in quicktime but not iTunes

    How can I move movies from my computer to my iPad? They will play with quicktime but not iTunes so I can't sync them

    Th AVPlayerHD works well for playing other video types.  You can transfer the videos via USB in the app tab in iTunes on your computer.  When you open that tab when you have you iPad connected to the computer scroll down and you will see apps listed on the left and a blank on the right.  Click on the app and then click on the add button under the blank window on the right.  Then navigate to the video you want to play and it will transfer it to the iPad.  I have about 14 movies on mine using AVPlayerHD.  works very well.  Also have VLC player (before it was yanked from the app store).  Works about the same.
    You can also get the app Air Video and stream the video to from your computer to the iPad, and even have Theo ad connected to the tv to watch on there.  I do that all the time with my iPhone.  Saves time with not having to sync movies all the time.

  • I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable it to save mp3 files on my computer?

    I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable Firefox to save mp3 files on my computer?

    Go to Options>Applications tab > search MPEG Layer 3 audio(audio/mpeg) > use "Save File" option on drop down menu.

  • Music video plays in itunes but not on ipod

    hi
    like my subject line states, i transferred a whole bunch of music videos off of dvd into mp4 format using videora.
    they play in itunes but not on my ipod.
    i transferred about 400 or so at the same time to ipod do you think that's why most of them won't play ?
    should i do it one by one ?
    thanks.

    it's more than just the mp4 format. They need to be encoded correctly with the right dimensions and other attributes as well. I don't bother with this sort of thing right now. If there is anyone who has these specs, just post them here. Otherwise, you can always google them or search these boards for the proper format/size/encoding.

  • After using video capture device to copy VHS to DVD, burnt DVD will play on computer but not

    After using video capture device to copy VHS to DVD, burnt DVD will play on computer but not on DVD player. Tech support for the VCD said my HP DVD burning software has to burn "DVD Video and not DVD data" and to check with HP. How can i check myself.

    Grahamster, welcome to the forum.
    I recommend trying CDBurnerXP for burning video CD's.  I have been using it for years without a glitch.  I use it mainly for burning ISO's, but have used it for all types.  Please let us know if it works or not.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Hi i am putting photos in my project it will play the videos but not the photos never had a problem before

    hi i am putting photos in my project it will play the videos but not the photos i have not had a problem with this before

    If you haven't tried re syncing the apps using iTunes..
    Connect the iPad to your computer. Select it under Devices left side of the iTunes window. Select Apps from the menu, make sure the boxes next to those apps are selected then click the Sync button bottom right side of the iTunes window.

  • I've tried everything I can think of to get my Iphone 4S to play albums like an Ipod does.  All it ever does is play the songs but not the albums in alphabetical order.  I used to think I was reasonably intelligent until I butted heads with this phone.

    I've tried everything I can think of to get my Iphone 4S to play albums like an Ipod does.  All it ever does is play the songs but not the albums in alphabetical order.  I used to think I was reasonably intelligent until I butted heads with this phone.

    Yes i've tried all of that. I've turned it all the way on and off and erased all of my music and put it back on and nothing works. And with the breaking up CDs and putting into compilation categories i have already fixed all of that stuff. It's fine it just doesn't show up in the list of artists. I can find the album in the songs category and the albums category it's just it doesn't show tha name of the artist. All of the other albums that i downloaded before i updated my itunes to th most recent update are fine. It's just the two that i downloaded afterwards. Thanks for trying though.

  • Created project in PE4, burned to DVD - plays on Computer but not on DVD Player.

    Created project in PE4, burned to DVD - plays on Computer but not on DVD Player.
    Vista Ultimate
    Let me know what other info you need.
    Thanks for your help.

    Yes, the lowest possible Burn speed will be a step in the direction of compatibility.
    As for the Quality setting, Robert Johnson has done tests on various versions of PE and has recommend a setting of about 7.8 (IIRC). Unlike Encore, where one has many more choices, PE limits one to a Quality setting of 8. This is about equivilent to the recommend 7MB/s in Encore. Robert found that just below the 8 max. actually yielded slightly better results, than did the full 8, on his tests.
    The three things that help to insure the greatest compatibility with set-top players are, and in pretty much this order:
    1.) Quality media - Verbatim, Taiyo Yuden or Falcon (US only)
    2.) Burn speed (slower is better. It might take a few minutes more, but if it works, you don't have returns or have to do it again.)
    3.) Bit-rate around 7MB/sec
    Remember - no set-top player HAS to play any Burned DVD. Most do, but some just do not - only replicated, pressed discs. Also, some player are still sensitive to the -R and +R media types. This is less a problem with newer units, however it still could be an issue with many older ones.
    Personally, I test a "master" on four different players, plus my computer, before I Burn a batch, or ship out any. One unit is a very high-end Marantz, another is a mid-level Marantz, one is an RCA "el cheapo" and the other is an older Pioneer. I figure if the disc plays everywhere, there is a good chance that it will play for the client - though there are still no guarantees.
    Good luck,
    Hunt

  • Why does CD burned as "audio" only play in computers but not car?

    I've done all the troubleshooting steps but to no avail. My CDs burned from iTunes play in computers but not in cars. Help!

    Some car stereos can't handle anything other than commercially pressed CDs. I find that burned CDs have a limited playable lifespan for my car and have been told by my dealership that the stereo is not rated to play CD-R discs (but that hasn't stopped me). There's something about the fact that home burned CDs are dye-based whereas commercially burned CDs have more of a metal layer abalated write done that makes them more reliable to read.
    You might have to look into replacing your stereo with one that can handle CD-Rs. Crutchfield is a good place to research them and the included install kits are great.

  • I can see other accounts on home share and play the songs, but not drag them to my account.  Home share is on "on" on both accounts and both computers are authorized.  What can I do to copy the song from account to account?

    I can see other accounts on home share and play the songs, but not drag them to my account.  Home share is on "on" on both accounts and both computers are authorized.  What can I do to copy the song from account to account?

    okasy if you want to move the music from the other comptuer into your comptuer you can > but if they were purchased with a different APPLE id then you need to authorize the comptuer to play them .
    http://support.apple.com/kb/HT4527
    click homesharing > shows how to move the song onto your comptuer

  • Hey guyys .if some 1 from firefox team can help it wud be great......I was using firefox 3.6.3 on Mac OS 10.5.8 and Today I installed firefox 3.0(besides application folder) but not in same application folder like firefox 3.6.3 ...so now i had 2 firefox v

    hey guyys .if some 1 from firefox team can help it wud be great......I was using firefox 3.6.3 on Mac OS 10.5.8 and Today I installed firefox 3.0(besides application folder) but not in same application folder like firefox 3.6.3 ...so now i had 2 firefox version 3.6.3 and 3.0....I had 3.6.3 already open ..i closed it to... open 3.0 ....when i opened 3.0 it asked me to import settings i said no....it opened well.....then i close 3.0 and tried to open 3.6.3 version ...now it was a problem everything got lost sessions, bookmarks, add ons, etc....it went back to default ....when i had 2 profiles in 3.6.3.....can any pls help me on dis 1...is there a way to restore my sessions, bookmarks and add ons ??? I have uninstalled 3.0 version now....??? pls pls pls ....help
    == This happened ==
    Just once or twice
    == today

    It turns out that the problem had to do with network accounts, even though it was not clear at first.  Redirecting the program to the local machine's cache with a network home redirector script fixed the issue.  Thanks anyway.

  • I want to erase all my files on my old MacBook Pro but not lose the applications.

    I just bought a new MacBook Pro Retina.  I was to erase all my files off my old MacBook Pro and give it to my cousin.  However, I don't want to lose the programs, like Microsoft Office, because I don't have the disks to reinstall them.  Anyone know how to erase everything but not lose the applications? Or do I just go manually through each file and delete?

    What i would do is wipe the computer by going into recovery mode, then erasing the HD and formating it to Mac osx extended(journaled) then reinstall the operating system. After this is complete, just download a trial of office and enter your product key so you won't need the disk. But if you don't have the product key either then you would have to manually delete everything.

  • Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via control centre : swipe up from the bottom edge of the screen and it's the right-most of the 5 icons in the middle of it (if the icon is white then it's 'on', tap it to turn it grey and 'off'). The function that isn't on the side switch is set via control centre instead : http://support.apple.com/kb/HT4085

  • Plays & lights work but NOT recognized by Windows/iTunes & won't charge

    It's a shuffle 512mb from a few months back and worked perfectly until last week. It continued to play as usual, but is no longer recognized when i plug it into ANY computer (i've tried about a half dozen)! I've followed every suggestion and recommendation from both the Apple Support and the discussion groups relating to my problem though it seems no one has experienced my specific ordeal. I am quite limited as it is not recognized by Windows. I tried searching for it as a "media device" but nothing. All the fucntions and lights work while playing, but there is absolutely no response when connected to a PC. When this charge goes, i'll be without my tunes!
    Any help...
    Thanks
    Shuffle 512mb   Windows XP Pro  

    AppleNEve wrote:
    I double checked to make sure that the cable is not faulty and it's working perfectly.
    how did you test that ?
    anyhoo, you might want to give this a shot:
    +Hi, All,+
    +It works now, It suddenly stopped detecting due to unknown reasons, but try these steps.+
    +Restart the device without connecting to your pc and+
    +Connect to pc and restart again, I did this 2 times and it was recognized and its working fine.+
    +Best of luck.+
    here's the original thread: http://en.kioskea.net/forum/affich-17997-ipod-not-detected
    if still no joy, it could be that your Touch is a goner. if it is still under warranty, you should plan a trip to the nearest Apple store.
    JGG

Maybe you are looking for