Getting black screen between chunks of clip

Hi all,
We are developing an application which plays the series of clips one after the other. We are releasing and re-starting player object in playerUpdate block.
We are getting black screen in between the chunk of clips while switching from one clip to another, is there any way to avoid this black screen??
Following is the code for reference
public void playerUpdate(Player player, String event, Object arg2) {
try{
main.repaint();
//End of clip event
if(event == END_OF_MEDIA){
//release player
if (player != null) {
if(player.getState() == Player.STARTED) {
player.stop();
if(player.getState() == Player.PREFETCHED) {
player.deallocate();
if(player.getState() == Player.REALIZED || player.getState() == Player.UNREALIZED) {
player.close();
player = null;
//delete played clip
main.deleteFile("clip_"+ (main.sequencePlay - 1) +".3gp");
//if clip is constructed then play it, else turn off PLAY status
if(main.sequencePlay < main.sequenceDownload )
playVideo();
else
main.IS_PLAYING = false;
catch(Exception e){
main.showAlert("Error in PlayerUpdate",e.getMessage());
Thanks

To avoid black screen, I'd prepare and package some pre-defined ['default' clip|http://www.dailymotion.com/films4/video/x5yxqe_climate-change-according-to-koalas_fun] within my application.
Then, I'd play that 'default' clip while switching from one clip to another:
//if clip is constructed then play it, else play 'default' clip to avoid black screen
else {playDefaultVideo();} // play 'default' clip instead of setting main.IS_PLAYING = false;
//...

Similar Messages

  • Black screen between every clip that does not appear on timeline, only on MOV file

    Hello
    I originially had this issue  https://discussions.apple.com/message/17086997#17086997
    I have now fixed the letterboxing issue but now have this problem (I did not have this issue before) where I get a very short black screen between each clip I put on the timeline. The black screen does not show up on the timeline, it only appears once I create the file. I'm not sure if this is affected but the fact I have an external hard drive. All my footage is stored on the hard drive and i save my Final Cut Pro file on the hard drive then upload it to YouTube. I made 2 quick short MOV files to test this theory (one made from footage on my EHD and the other from footage from my desk top) neither files had the black screen in the MOV files.
    http://www.youtube.com/watch?v=z9yBH8oAnx8
    http://www.youtube.com/watch?v=gI27LlWTdXE
    These links are to my latest video I uploaded which shows the blacks clips, it's not terrible to have them but it's very annoying.
    Thank you in advance for your help and Merry Christmas

    Hello Nick, thanks for the answer.
    I have fully lengthened my timeline and the black gaps are not there to delete (they only appear once the file has been exported).
    The issue I have (I think) is that im not sure what export settings I am meant to choose to export the footage.
    My camera records in widescreen so when I place my footage onto the time line and final cut pro automatically selects the correct settings for me, this is what is chooses
    This is then the export settings that are automatically in the box when I go to export
    As my footage is 1920 x 1080 I would expect to be given an option with that in but these are the only options available
    I am not sure if this should create the black spaces between each shot.

  • CS4: Flashing black screens between clips after exporting

    I'm having some trouble with a particular project when exporting video, and I can't seem to track down the cause. The primary problem is flashing black screens between clips, with the additional problem of occasionally having a clip that I fade to be completely black (ie, the first clip just fades to black instead of fading to the second clip).
    I say "occasionally" because the problem seems to migrate depending on what I do to try to fix it. I've noticed that if I shift the clips .1 seconds one way or another where there is a black screen, it will sometimes fix the problem, but when I fix one of them the exact same problem will pop up in another place where it didn't exist before. I can also export a few seconds of video where the problem occurs independently of the rest of the project and the issue won't occur, but will then reoccur in the same place if I export the project as a whole. All of the video is from the same source and is in the same format (.MOV from a Canon 7D). I've edited plenty of other stuff from the same source on the same computer, and the only other time I've seen this problem it's been fixed by just shifting the clips a little bit in the timeline as mentioned above. If anyone can suggest ANYTHING I can try to troubleshoot this problem I'd really appreciate it, because right now this is driving me up the wall.

    I've been exporting to h.264 exclusively so far. Below is a screenshot of where one of the offending screens appears between the two clips on the timeline (the yellow in the bar up top is there because I had stepped that clip back .1 seconds like I mentioned earlier and not re-renered the sequence). I've also verified that this particular spot shows no black screen on the Program Monitor - it's a completely smooth jump from one cut to another. Please let me know if you see anything that might be causing this!

  • I was trying to extent monitor, I get black screen on laptop and external monitor :/

    so I have this hdmi cable that plugs into the DVI on my external monitor.
    I did get the screen to show up just on the external monitor and that's it.  Now, when I boot up my lap top I get black screen on both monitors.  Uh oh.
    I've unpugged the  monitor, batter, all that stuff.
    I think it's possible I clicked on don't display external monitor or something, but not it's not displaying anywhere.
    I have an idea pad of some sorts w/ windows 8.  I don't think it's 8.1
    thanks
    -Hayes

    so I got this resolved.  the guy at the computer store hit f10 and then enter.  he did this while the screen was black
    shouldnt' it just detect that there's not an external monitor?  but even when there was a monitor connected, both screens were black.
    /thread

  • News Videos will not play just get black Screen

    I have IE 11 and FP12. When I click on a news video get black screen with message need FP 9.0.115. Why does the video not work?

    Check
    http://forums.adobe.com/thread/885448
    http://forums.adobe.com/thread/867968

  • Ipod 4.3.1 : after playing a video, i couldn't get the replay button, instead of that i get black screen fully

    ipod 4.3.1 : after playing a video, i couldn't get the replay button, instead of that i get black screen fully

    Have you tried resetting your iPod: Nothing will be lost:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • Cannot reinstall windows 10 Technical preview after getting black screen at start. will not let format drive or install

    cannot reinstall windows 10 Technical preview after getting black screen at start. will not let format drive or install

    you may need to use a DVD from an earlier version of Windows or slave the disk to wipe it with disk manager
    Place your rig specifics into your signature like I have, makes it 100x easier!
    Hardcore Games Legendary is the Only Way to Play!
    Vegan Advocate How can you be an environmentalist and still eat meat?

  • Again getting black screen after Exiting Safe Mode in Windows 8 as suggested by hp

    I'm again getting black screen after entering safe mode after upgrade to Windows and exiting from safe mode but after exiting my laptop display was of 8.b but after some time it again went back to same black screen problem .I disabled Intel and amd hd 86graphics driver in safe mode.please help .

    Hi there ,
    Thank you for visiting the HP Support Forums and Welcome! I have looked into the issue you are having with your display Turning Black after entering Safe Mode.  I found a document for you called Troubleshooting Black Screen Displays with No Error Messages During Startup or Boot. It would be very helpful for me to know what has been done already so that I can narrow down what troubleshooting would be best for you. You mentioned in your post "again". Is it an intermittent issue? Please follow these provided troubleshooting steps, re-post with the results of the steps in the document, and any other troubleshooting steps you had tried and the results. Have a great day!

  • I get black screen on my new macbook air but I can see the mouse pointer. usually need to restart the computer so everything works as it should

    I get black screen on my new macbook air but I can see the mouse pointer. usually need to restart the computer so everything works as it should

    Repair Disk
    Steps 2 through 8
    http://support.apple.com/kb/PH5836
    If that does not help, reinstall OS X

  • Sending videos from iphone 4s to pc. Why do I get black screen but have sound

    Sending videos from iphone 4s to pc.  Why do I get black screen but have sound?

    Ok I checked and unchecked the playback via camera yesterday and I got black screen both times.
    I could delete the imovie prefs when I go over there today.
    I'll try another FW cable but it worked perfectly for importing but what the heck I've got one I'll try it.
    Yes camera was set to play and not record.
    Plenty of free space -- 131 GB.
    I'm pretty sure it's in NTSC DV format, but it's someone else's computer so it could have been changed by someone screwin' around not knowing what they're doing making changes.
    PowerMac FW800 (G4), iBook 1.42 G4 SuperDrive   Mac OS X (10.4.10)  

  • Post update to iOS 8, i get black screen when I reject or miss a call...how to get rid of this...?

    post update to iOS 8, i get black screen when I reject or miss a call...how to get rid of this...?

    Do a sync and backup first.

  • Cannot access adobe. Get black screen.

    cannot access adobe. get black screen only.

    Are you using Adobe Reader? If so, what version? What OS are you using? Do you get the black screen when you open the application from the start menu or from the Applications folder? Or does it happen with you double-click on a pdf file? Or while trying to use the Reader plug-in and viewing the pdf from within a web browser? With more information we can give you more help.

  • IPhone 3GS Crashes (gets Black Screen with White Apple Logo) Mid Phonecall

    For the past week, when I make a phone call and use the speaker, after the call has lasted between 8 and 12 minutes; without warning, everything goes quiet and I get a black screen which displays the white Apple logo (the same as is displayed when you reboot your phone).
    After a while, the phone comes back on, I’m not required to enter my SIM Pin and everything seems to work fine(ish) from then onwards.
    I have done a reset, restore and resync in iTunes, but this still happens.
    It does not seem to matter if the battery is 100% charged or not! I have tried a few battery recalibrations too!
    I’ve also noticed a slight sluggishness since the upgrade to iOS4 (for example, when you receive a text message, click to view, there is a noticeable delay where the screen is blank (you can see the lines where messages should be) and then they appear/message opens).
    Any ideas?
    Cheers in advance.

    Hey Mac Beep Beep,
    As did many out there on iOS4 release day, I plugged my iPhone into the PC, iTunes fired up, the software upgrade was found and installed.
    Three iPhones updated in my household, all the same model (3GS 32Gb) and yet none of the others have had the same problems as mine.
    On top of having the reboot during phonecall issue, my calendar (historic and future) was wiped, birthdays were added to the calendar from the information held in contacts however some (not all) were showing as a day earlier then they should be (even though they are correct in the contacts entry).
    Just to clarify, when I tried to reinstall a verified version of the legacy backup (3x), I used iTunes to reset iPhone, re-active iPhone and restore said legacy back up. This failed in a spectacular way so I had to go back to an iOS4 back up.
    Note: I had the problem of phone rebooting mid phonecall before I attempted a rollback to 3x.
    Any further advice/ideas?
    Cheers

  • Mac Mini and Samsung 43" DLP HDTV  gets Black Screen Only

    Just bought a new Mac Mini with great anticipation for some large screen viewing.
    After numerous attempts the Mini has yet to produce anything but a black image with the occasional red or white horizontal line on my 43" Samsung DLP TV. Not even a brief grey start up screen. Just permanently black.
    Here's the kicker: I do get a great computer screen image on this 43" DLP TV in Mac OS 8.6 off my ten year old Macintosh PowerPC. (The trouble is it's a noisy older computer and has no bluetooth for wireless mouse & keyboard: and no Front Row with remote control)
    I have the VGA cable connected to the "computer in" port on the back of the Samsung DLP TV .
    This is with the exact same cable and connection that refuses to work with the Mini.
    Earlier attempts at using the DVI port were unsuccessful so for now I am staying with what works on the older Mac.
    Some other things I've tried:
    -with my Mini hooked up to a 17" CRT Samsung monitor I have tried all available resolution settings at 60 Hz, reconnecting to my large screen Samsung each time, producing nothing but the black screen.
    I've tried turning the TV on before the Mini and vice versa
    I always check to make sure the PC connection is selected on the TV
    As well, I have re-installed the OS onto the Mini to eliminate any possibility of a sofware conflict from data transferred from my Emac
    After consulting an Apple technical page (article 303406) regarding Black Screen issues and Mac Mini on large screen HDTVs, I went into single user mode and changed some text as specified. That did't help either
    So far I have never seen a grey startup screen at all, only a totally black screen.
    Someone in a recent post here or on MacMini.com touched on impedence issues with signals into VGA or DVI ports. The Mac Mini operates on low voltage. Could there be some connection to how strong a signal it produces compared to my old PowerPC with its ATI graphics card?? And just why would that make a difference
    I haven't seem my particular issue addressed in this forum or on MacMini.com
    Thanks for any help
    Mac Mini 1.83 Intel Core Duo 512 Mb Ram   Mac OS X (10.4.7)   Emac; 604e PPC with G3 Upgrade & ATI Video Card

    Just finished testing the Mini remotely with the use of the Redstone software recommended by BSteely in a previous post. Fun Stuff.
    I saw the Mini "desktop" on my Emac screen and could control it remotely, even though the mini was connected to the large screen Samsung.
    But the "fix" did not progress from there. When I called Apple for further help they were not able to help me tweak my Mini. Apparently there was nothing to tweak.
    A second level Apple technician finally told me (after a few calls to both Apple support and Samsung) that this Mac Mini is likely not capable of producing a screen image on my large screen Samsung.
    He said the Mini supports "Coherent Displays up to 154 Megahertz and Non Coherent displays up to 135 Megahertz". On his recommendation I checked with Samsung (second tier) and they are not sure exactly what that means. Same here.
    Samsung did reply that the "pixel clock (of this HDTV) is 74.2 Megahertz". Again, too technical for me.
    The latest second tier Apple guy just told me said that my Samsung 43" DLP is probably not compatible with the output capability of my Mac Mini.
    Bottom line
    It's all about the output capabilities of the Mini's "Intel Extreme Graphics GMA
    The Mini's video output is not upgradeable like the other mac which works with this HDTV.

  • Getting black screen after trying installing windows 7 using bootcamp

    I downloaded ISO for windows 7 ultimate 64 bit and after using boot camp and partitioning my hardware the computer re stared as expected but then i get the black screen saying "Press any key" and i think its becuase windows 7 can not boot up what can i do to fix it.
    I also tried downloading different ISO versions but it didn't work.
    I Have a mid 2012 mc book pro 13 inch

    The hatter wrote:
    A Mac Pro (not a notebook) should be 95% fine w/o. A notebook like MacBook Pro is not "Mac Pro" which are 65 lbs. So don't confuse us iwth Mac Pro and MacBook Pro.
    On Mac Pro you have to pull all the other drives but the one you will install on - that means no external drives etc,
    Sorry I don't get your post? And was it a reply to my or the OP?
    Should be 95% fine w/o??? What does that mean?

Maybe you are looking for