Play a byte[] of media data

Hello! Do any one know how can we create a DataSource from a byte[] so that we can play it by using a Player?
I know we should create a custom DataSource and may use the InputSourceStream, but I can't make it successfully. Could you give me some help?

There is a large topic on this subject in this forum. Please use the search tool
Hope it helps,
Stephane

Similar Messages

  • How can I save my media/data to alternate HD in Mac Pro?

    Hi folks,
    I have recently become the proud owner of a new Mac Pro. I'm really enjoying the Mac experience since buying a Macbook before Christmas to test the water.
    I have a quick question that I hope someone may be able to help me with. I have a Mac Pro with two hard drives. My intention is to use one HD for system/applications and the other for media/data (with an external HD for backup).
    I can't figure out how to tell OSX that I want to save all of my photos/videos/iTunes library on the "other" HD (i.e. not my system HD). I'm sure this is a "dumb" question but could someone please point me in the right direction?
    Cheers,
    Simon

    Hi, Simon.
    You can instruct iTunes and iPhoto to save their respective libraries to a different disk, e.g. your second hard drive. You can also move existing libraries for these apps to a drive other than your startup disk.
    See the links concerning moving these libraries cited in the "More ways to save space if you have a spare partition or second hard drive" section of my "Freeing Space on your Mac OS X startup disk" FAQ.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • MP3 plays fine in Win Media Player, but won't import in iTunes

    I have this MP3 file in a folder on my hard drive. It plays fine in Win Media Player.
    If I "Add the Folder to Library" all other MP3 files in the folder come though fine but this one is left behind.
    If I use "Add File to Library" there is just a screen "flicker" but the file is not added.
    What could cause this? and how do I get the file into iTunes?
    TIA
    Gert
    Windows XP SP2

    Are you certain that the files in question are in fact MP3 files and not some other format?
    iTunes can play plain old MP3 files, but it cannot play proprietary schemes with digital rights management built in, and it cannot play WMA files.

  • I bought an album on iTunes, and one of the songs plays for 7 seconds, then it stops playing. I even tried to play it in Windows Media Player and it didn't work there either. How do I make it work or get my money back?

    Please help.

    Music purchased and downloaded from iTunes will not play in the Windows Media Player.
    Try re downloading the album > 
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • A SWF Tag of type 75 contains 10 bytes of unread data at the end of the tag at byte offset 1762

    When building with Flash builder 4.7 I get two warnings I can't seem to track down.
    Those are
    "A SWF Tag of type 75 contains 10 bytes of unread data at the end of the tag at byte offset 1762" The other
    "A SWF Tag of type 75 contains 5464 bytes of unread data at the end of the tag at byte offset 797163"
    No file is pointed out or anything else to help.
    Any ideas what to look for, why this is a warning, possible implications & what to do?

    This is one output after running a variation of the script, but I get this   <!-- unknown tag=63 length=16 --> on all of the libraries
    Here is a link to the swc for further inspection https://dl.dropbox.com/u/154782/GoCoUtil.swc
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Parsing swf file:/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.345990/AIRSDK/bin/GoCoUtil.swc.swf -->
    <swf xmlns="http://macromedia/2003/swfx" version="14" framerate="24.0" size="10000x7500" compressed="true" >
      <!-- framecount=1 length=12927 -->
      <FileAttributes useDirectBlit="false" useGPU="false" hasMetadata="true" actionScript3="true" suppressCrossDomainCaching="false" swfRelativeUrls="false" useNetwork="true"/>
      <Metadata>
            <![CDATA[<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'><dc:format>application/x-shockwave-flash</dc:format><dc:title>Adobe Flex 4 Application</dc:title><dc:description>http://www.adobe.com/products/flex</dc:description><dc:publisher>unknown</dc:publisher><dc:creator>unknown</dc:creator><dc:l anguage>EN</dc:language><dc:date>Sep 20, 2012</dc:date></rdf:Description></rdf:RDF>
    ]]>
      </Metadata>
      <EnableDebugger2 password="NO-PASSWORD" reserved="0x1975"/>
      <!-- unknown tag=63 length=16 -->
      <ScriptLimits scriptRecursionLimit="1000" scriptTimeLimit="60"/>
      <SetBackgroundColor color="#FFFFFF"/>
      <ProductInfo product="FLEX" edition="NONE" version="4.6" build="23201" compileDate="9/20/12 12:41 PM"/>
      <DoABC name="com/gogogic/common/util/interfaces/IParsableList"/>
      <DoABC name="_5655ee2c6f5749799717c751ad05c55879a42026a02d38e5e206aab452dbcc6f_flash_display_Spr ite"/>
      <DoABC name="com/gogogic/common/util/ShallowCloner"/>
      <DoABC name="com/gogogic/common/util/GoCoDataUtil"/>
      <DoABC name="com/gogogic/common/util/PropertyParseError"/>
      <DoABC name="com/gogogic/common/util/interfaces/IDataChange"/>
      <DoABC name="com/gogogic/common/util/vo/DataChangeVO"/>
      <DoABC name="com/gogogic/common/util/GoCoUtilVersion"/>
      <DoABC name="com/gogogic/common/util/event/DataChangeEvent"/>
      <DoABC name="com/gogogic/common/util/PropertyParser"/>
      <SymbolClass>
        <Symbol idref="0" className="_5655ee2c6f5749799717c751ad05c55879a42026a02d38e5e206aab452dbcc6f_flash_displa y_Sprite" />
      </SymbolClass>
      <ShowFrame/>
    </swf>

  • How do you get the Event folder date to match the media dates in FCPX

    Modifying the clip date/time with the Modify command works fine ... but the Event itself still has the date the event was created, not the date of the media that it contains.
    If tried using Touch on the Event folder but FCPX ignores it.
    Any ideas on how to get the Event folder date to match the media dates (or set to any other date desired) so that Events sorted by date show the actual dates of the media that they contain?
    Thanks
    Jonathan

    Here is the texture I've been manipulating  all afternoon to try and achieve the looks i want.
    and when I put this texture over the top of other images and select Multiply, and adjusted the opacity, this is what i get....
    Now this kinda works?? but it still looks not as good on an asian person.
    Thanks by the way to everyone for all the tips, I really really appriciate it   and more suggestions for improvments are welcome!

  • Invalid media data found in slideshow

    I am trying to send my slide show to iDVD via iPhoto share and I keep getting:
    INVALID MEDIA DATA FOUND IN SLIDESHOW
    All the photos in the slideshow were taken by me. I have made and shared many slideshows
    with no problems.
    All the songs are from my iTunes library etc...
    Can anybody help me please!
    Thanks

    I am from france , and on iphoto09, i think i have the same problem , as i want to export a slideshow of 350 pictures, i have the answer of "données de support présentes dans la séquence incorrectes"
    but it's worked for 20 slides ?
    jean marc

  • Whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?

    Hi
    I have a windows 7 and whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?
    I hope that was clear.
    Thnx

    Hello kmanthie,
    I just sent you a private message. If you are not sure how to check your forum messages, this post has instructions.
    I worked on behalf of HP.

  • How do i play itunes in windows media

    How can I play itunes in windows media?  I can burn in windows media, but in itunes it says it can't find the device.  Please advise.

    You don't "play iTunes" in Windows Media. Both of these apps are media players: one native to Mac OSX-- iTunes and the other native to MS-- XP; Vista; Win7. The popularity of iPods initially, then iPhones and now iPads caused Apple to make iTunes+QuickTime available for Windows users who wanted to own and use those mobile devices but retain their Windows machines. The issue that you are asking is whether or not you can play your audio files in WinMedia instead of in iTunes. Yes, you can. You will need to launch Windows Media player and import into the library the audio files which are "living" in iTunes. Actually they are in the "My Music" folder of your home on the C: drive.

  • How to get media data.

    I want to get media data(such as quicktime movie) via VC++,how can I do?
    help me.

    Using what API set? Acrobat Plugins? PDFLibrary? OLE/cOM?
    Leonard

  • TS1717 i recently downloaded two tracks from itunes: they will not play in my windows media center even though i have added them to that location. any idea what other trouble shooting i can attempt on this issue??

    i recently downloaded two tracks from itunes and they will not play in my windows media center. i have never had this problem but the two tracks play on my PC just not in the windows media center and usually all my itunes music plays in there no problem??? any idea what to do? thanks

    I'm searching for an answer to almost the same exact problem, using almost the same exact hardware and software. Has an answer been found?
    The files that I'm trying to burn come from eMusic, and they are formatted mp3. Recently, (after the iTunes update to 9.2.3?,) they would not drag and drop from iTunes into Toast. From several different discussions I've tried working around this by dragging to the desktop first then dragging and dropping to Toast, going to Toast from a programmer's homemade help window, " iToons," and today, after talking with Apple support, going directly to Toast from my eMusic folder. Alas, all recordings do not perform like they use to. Sometimes they play and sometimes not. There is one I managed, that is listenable, but sometimes I have to put it in my car stereo over and over again as it gets ejected with an error code, sometimes, finally it takes it... Some of the recordings on other disks I've burned are not clean - they have white-noise sounds creeping in... I use to have none of these problems. One time as I was listening to a CD that managed to play, and it just stopped playing... Is there an answer out there to get back to how it use to be? Thanks for you help.

  • HT201210 I've updated my iPad to iOS6. Now saying connect to iTunes, which is saying my iPad in recovery & to restore to factory settings & all media & data will be erased. I DO NOT WANT THIS TO HAPPEN. What can I do?

    I've update my iPad to iSO6. Now saying connect to iTunes, which is saying my iPad in recovery & to restore to factory stting & all media & data will be ereased. I DOT NOT WANT THIS TO HAPPEN. What can I do?

    You have no choice now. Unless you want a brick for an iPad. After you restore to factory settings you can restore from your backup ..... And you do backup don't you? I would never update the iOS software without backing up first. After you restore from the backup, sync with iTunes again and you should be OK. Assuming that you do sync with iTunes .....
    Read this for info on how to restore from the backup.
    http://support.apple.com/kb/ht1766

  • How many bytes does a DATE use?

    Having trouble finding this in the 10g documentation. How many bytes does a date data type use?
    thanks.

    Take a look to the online documentation linked below :
    Oracle® Database SQL Reference
    10g Release 2 (10.2)
    Part Number B14200-02
    Oracle Built-in Datatypes
    expecially code datatype 12.
    Valid date range from January 1, 4712 BC to December 31, 9999 AD. The default format is determined explicitly by the NLS_DATE_FORMAT parameter or implicitly by the NLS_TERRITORY parameter. The size is fixed at 7 bytes. This datatype contains the datetime fields YEAR, MONTH, DAY, HOUR, MINUTE, and SECOND. It does not have fractional seconds or a time zone.
    Nicolas.

  • How to convert an Integer to byte[] without lose data?

    How to convert an Integer to byte[] without lose data?

    I use the following to convert any java Object to a byte array
    public static byte[] getBytes(Object obj) throws java.io.IOException
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            ObjectOutputStream oos = new ObjectOutputStream(bos);
            oos.writeObject(obj);
            oos.flush();
            oos.close();
            bos.close();
            byte [] data = bos.toByteArray();
            return data;
    }

  • Using G42-360TX is very confuse..when I play the movie with media player the notebook will shutdown

    using G42-360TX is very confuse..when I play the movie with media player the notebook will shutdown

    Whoops, I responded on the wrong thread.  I don't see a way to delete.

Maybe you are looking for