Earpiece of video to stop?

I have a simple code that plays a video. I want to be able to execute other code when the video is stopped to play. How would I go to do this? Is there a listener and if yes how do I impliment it? (I was never any good listeners!)

Thank you

Implement PlayerListener. Something like this, assuming that you want to run your code when the video stops because it comes at the end of the media. You could also just take a stop event.

public void playerUpdate(Player player, String event, Object eventData){

        if (PlayerListener.END_OF_MEDIA.equalsIgnoreCase(event)){
            //do your thing here
        }
}

Tags: BlackBerry Developers

Similar Questions

  • iOS 10 video playback stops working until you restart

    I have an iPad Mini retina, and since the upgrade to iOS 10.0.01, a short period of use causes videos to stop working.

    Videos in Safari, Chrome, YouTube etc. appear in the cache (saturated with progress on the top bar), but no response to play. The first image of a video appears, but only in the form of static image. I am able to change the static image displayed by rubbing them at any point in the video, but playback will not occur.

    The only thing that allows video playback is again restart the device (apps force closing, locking and unlocking etc. doesn't help).

    Hello, Sunkai!

    Thank you for using communities Support from Apple. I understand from your post that you're having trouble playing videos on your iPad mini; the video will start but will be stuck as a single image, as if the buffering and never take back (at least until you restart). I mainly use my iPad for watching videos, so I know it's important that they play in fact; I'm happy to help you!

    I have some troubleshooting I can offer to you. Before you begin, create a backup of your iPad using iCloud or iTunes, following the instructions here: How to back up your iPad, iPhone or iPod touch

    Once you have your backup, try the following steps, in order. A video test after each step and will stop when the problem is resolved.

    1. Make sure your iOS software is up-to-date. In the last week, iOS 10.0.2 came out. Use the following article to get help update: update the iOS on iPhone, iPad, or iPod touch software
    2. If this happens on a Wi - Fi connection, try restarting the network you are using from the router or the modem (if possible). If it is a private (for example, your home network) WiFi network, try to remove all the devices on the network, then by simply adding your iPad in return.
    3. Try a different network.
    4. Reset the network settings on your iPad under settings > general > reset > reset network settings. This will affect all personal data (like your photos, contacts, calendar of events, etc.) but it will remove saved passwords, and Wi - Fi networks one previously used settings APN or VPN and all paired Bluetooth device.
    5. Restore your iPad settings, following the steps described here: use iTunes on your Mac or PC to restore the iPhone, iPad, or iPod touch to factory settings

      Once the restore is complete, configure the iPad as a new device (i.e. without using the backup that you created earlier, at least temporarily). You can sign in iCloud, iTunes and App Store, iMessage and FaceTime with your Apple ID test then a video.

      If the problem is resolved, you can restore your backup by the information here: restore your iPhone, iPad or iPod touch from a backup

    Have a great day!

  • Video has stopped playing and has not saved after alert imessage

    During video recording on my iPad, I received an alert from iMessage.  The video has stopped playing and did not save what has been already registered.

    Is this a normal behavior or y at - it a setting I can change to block all alerts being recorded?

    Thanks in advance.

    Hi sabfa,

    If you do not want to be interrupted when you save the video on your iPad, try to activate do not disturb.

    Use of do not disturb on your iPhone, iPad or iPod touch

    Turn on or off the do not disturb

    When do not disturb is activated, a Crescent Moon , or half-moon, an icon will appear in the status bar. There are two ways to turn on or off the do not disturb:

    • Tap Settings > do not disturb. Choose the manual option to activate the do not disturb sign now or set a schedule.
    • Swipe up from the bottom of the screen to open the Control Center. Tap on the Crescent Moon.

    Change your settings

    You can also choose if you want to be disturbed:

    • Allow calls to: allow calls from anyone, person, your Favorites or stored on your device or your iCloud account specific contact groups.
    • The calls repeated: If someone calls you twice within three minutes, the call will not be silent.
    • Silence: select silencing calls and notifications always or only when the device is locked.

    Take care

  • Videos keep stopping and take a long time to restart and then stop after a single word still sometimes

    Videos keep stopping and take a long time to restart and then stop after a single word still sometimes

    Hello C Johnston,

    Did experience you these issues when streaming video from any other website?
    It is possible that the servers of YouTube we perform slowly at this time here. This is the problem?
    You might try to optimize Internet Explorer to see if it helps at all:
  • Video display stops - first CC 2015

    Hello

    I have several problems with first CC 2015

    My system:

    HP Z400

    Intel Xeon W3550 @ 3.07 GHz Dual quad

    24 GB Ram

    NVIDEA Quadro 4000 (pilot: 9.18.13.3165)

    When I break a clip in the sequence of the video display stops working. I work with first, but without any video output. After awhile, the program hangs or begin to operate normally.

    There seems to be a problem with the video display. The image in the program monitor divided the normal display of filling and freeze. More importantly when I slice a clip while im playing the timeline, it works without problem.

    also:

    Sometimes, when I put an effect to a Clip while reading, this is an accident.

    Also, when I play the video sequence a timeline freeze. (just play the Audio) I have to stop and start again.

    There are a lot of bugs in this version. I don't understand how Adobe can release this product.

    I can't change CC2014 because the project is created in CC2015. So I hope there will be a solution. The next projects, that I realize with AVID. Such a shame!

    Re: First Pro 2015 freezing / hanging on trimming clips

    Think that was what was happening to me...

    It was because of the option "Preview Composite during 'Trim'. You can try to disable this in the menu panel 'key' chronology, which should make the Cup more sensitive and reduce the long period.

  • Video/Cover stops when tapped.

    I have video coverage to my publication has been created in After Effects and exported to a MP4 H.264 file.

    I have these options it has checked producer folio:

    Screen Shot 2013-02-05 at 22.20.56.png

    As you can see I checked "Do not allow break", but the video always stops when it is typed. Any suggestions?

    Thank you.

    When you created the folio did you set the Version of the viewer 23 or more? The feature will be not activated if the version of the Viewer is less than 23.

  • Video playback stopped working in Firefox until I DISABLED the plugin of primetime content decryption module

    From one day to the next video (youtube, Vimeo, etc) stopped not working in Firefox. I checked my plugins/addons and discovered the plugin Adobe "primetime content decryption module" which I had not noticed previously had been installed. I've disabled the plugin and found that the video playback was still functional.

    I realize the Primetime plugin is intended to facilitate playback of certain content (DRM), which would not otherwise play with Silverlight/Flash plugins, but unless that I turn it off it's actually prevents me from normal video content playback.

    As this is a Firefox/Adobe plugin suggested I prefer it to work as expected rather than disable/remove it.

    colmacc said

    From one day to the next video (youtube, Vimeo, etc) stopped not working in Firefox. I checked my plugins/addons and discovered the plugin Adobe "primetime content decryption module" which I had not noticed previously had been installed. I've disabled the plugin and found that the video playback was still functional.

    I realize the Primetime plugin is intended to facilitate playback of certain content (DRM), which would not otherwise play with Silverlight/Flash plugins, but unless that I turn it off it's actually prevents me from normal video content playback.

    As this is a Firefox/Adobe plugin suggested I prefer it to work as expected rather than disable/remove it.

    A quick update to my problem noted above (maybe I should try this first)

    I ACTIVATED the plugin once more see if it would cause video playback yet, but everything seems to be ok now (IE, Primetime plugin is activated and all videos play normally)

    Will report if the problem arises again

  • iPhone 6 - video record stopped with 5 GB of storage left

    Our iPhone 6 stop video recording with a message claiming that there is insufficient to continue storage, but the graphic bar at the bottom of the iTunes window shows that there are more than 5 GB of free space.

    Why?  How to avoid?  We must break long claws in pieces by stopping and restarting before a deadline?

    What is your storage space available for example on the phone under settings > storage and use iCloud?

  • streaming videos, freeze, stop playback

    IAM trying to learn the guitar at the moment and it's frustrating because videos on the Web site to keep gel, stop playing.

    I have windows xp, 8. exp please help.

    Yes, the 240 p correspond to low resolution layout.

    You can test your download speed that actually gets your computer. Here in the United States, personally I use:

    Speedtest.NET - the Global speed Test
     http://www.Speedtest.NET/

    Speakeasy speed test
     http://www.speakeasy.NET/Speedtest/

    The results of these tests can give you an idea if your download speed is sufficient for a good resolution and that perhaps your problem is elsewhere.

    Kind regards

  • Xperia z3 4 k video conversion stopped

    Hello
    I recorded a minute long 3 4 video k of my little boy took his first steps.

    However, when you I stopped recording, it appeared that the phone had frozen. I didn't know that technical magic happening in the background and then create the video.

    So, in my impatience, I long pressed the screen and force quit the application.
    Video 4 k was created to my SD card
    So, I now can't find this precious recording on my phone and don't know what to look for to find.

    Please can you help or let me know if this video can be retrieved or even be found and converted?

    @Huelin

    Open the file order > SD card > DCIM > Xperia > check that folder and also 100ANDRO

  • Windows import video repeatedly stops after a few seconds when you use DV cam to convert and import analog videos

    With the help of a Canon Elura 40 mini DV camera to import my old Video 8 tapes to the .avi format. I followed the instructions from http://windows.microsoft.com/en-US/windows-vista/Import-analog-video-to-your-computer-by-using-a-DV-camera . However, when I click Start import import will work only for a few seconds and then stops. If I keep restarting after that it stops every time (5 to 10 times), I finally get a message under the controls of cam DV that says "commands does not. Then it will keep the import without problem. I discovered this solution accidentally, but not knowing when it will eventually continue to record does get the departure point. If I import directly using a digital camera 8 this is not the case, but the Video 8 does not play well on the Digital 8.

    Thank you.

    Hello

    Method 1: You can follow the steps described in the article below that addresses this question

    Error message when you try to import video clips from a device on a Windows Vista-based computer: "the import device is not responding.

    http://support.Microsoft.com/kb/922977

    Method 2: you can follow the steps mentioned in the link below


    Troubleshoot importing video problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-importing-video-problems

  • my internet video downloader stop working

    I bought an mp3 player and download videos for 3 months and 4 days a go that it has stopped working. I've not unhooked the mp3 player and reinstalled him it I get the same message. There was a problem and stop us program and will let you know if there is a solution.

    Hello Srhonda,

    Thank you for your message.  Because it worked as expected a few days ago, we will try a system restore.  Click HERE for instructions.  Please let us know if it did or did not help to solve the problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Export video in stop motion crashes to first pro

    Hello

    I usually use Premiere Pro to edit film, but were invited to create a film in stop motion using a series of JPEG files. I created the film and now wishes to export but whenever I do the Premiere Pro crashes (Premiere Pro has stopped working and must be closed etc etc.)

    I tried to clean the database cache, but that had no effect.

    Thanks in advance.

    How you export your video? You directly through first or the Adobe Media Encoder queue? What format and parameters you export with? In addition, you have your JPEGs imported as a sequence of images or they are individually visible in your timeline?

  • VIDEO WITHOUT STOPPING ON THE LAST IMAGE

    Help!  I ticked the box in Folio Builder v26 - "stop on the last image" - but when I saw in Adobe Content Viewer, after playing the video, it is up to the poster frame - which is the first image of my video.  This won't work for what I'm doing at all.

    Can anyone help?

    Thank you!

    Kathie

    When you are previewing are previewing on your desktop or on an iPad?  Stop at the last frame is available through iOS so it does not work on your desk.  But if you have your iPad plugged in to your computer and open it from the ACV on your iPad then you should be able to preview on the device and it should work.  But as I said, this will work only on iOS.

  • Need to flv video to stop once loaded

    Hi, I created a document that has 3 buttons. When everyone is pressed action happens... loads a movie, jumps to the next section, plays the video. The problem I have is when I click on the button image, my video playback and stays. The film should play only when the movie button is selected, and then deleted when you press another.

    It may be possible to indicate to the video controller to stop once loaded, but I do not know the command. The way the movie is imported, the controllers are integrated in the wrapper, but I don't know how to stop playback of the movie.

    Any ideas? As much detail as poss please! My film is called movie.flv, but the instance is called vid.

    < CODE >

    package {}
    import flash.display. *;
    import flash.events. *;

    import local classes the MyClasses folder MyClasses.*;//Import

    /*
    This application displays 3 different ways to show the video and animation. The video must be included in the scene by importing
    By clicking on the buttons at the bottom brings to the top of each type of object. All have their own actionscipt classes to control.
    If you have imported a video placed on the stage and gave him the name of the vid, then you can uncomment the video code
    */

    SerializableAttribute public class VideoMain extends Sprite {}

    Create objects, we can use with actionscript. These are related to the symbols of the library.
    Each has its own actionscript file to control internal...
    private var banner: AnimationBanner = new AnimationBanner();
    private var frames: AnimationFrames = new AnimationFrames();

    public void VideoMain() {//This code is executed at the start of our application. It has the same name as the flash file...
    //
    addChild (banner);
    addChild (frames);
    The value that they are invisible...
    Banner.Visible = false;
    frames. Visible = false;

    Set up actions for the buttons at the bottom of the screen...
    banner_btn.addEventListener (MouseEvent.CLICK, showBanner);
    frames_btn.addEventListener (MouseEvent.CLICK, showFrames);

    Cannot refer to vid if you imported a component video and called it "vid".
    VID. Visible = false;
    vid.addEventListener (MouseEvent.CLICK, showVid);
    }

    The (event: MouseEvent) means that the function will only work if it is called by a mouse event (in this case, the user clicks on the mouse)
    private void showBanner(event:MouseEvent):void {}
    Banner.Visible = true;
    frames. Visible = false;
    VID. Visible = false;
    movie_flv. Stop();
    }

    private void showFrames(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = true;
    VID. Visible = true ;);
    movie_flv. Stop();
    }

    private void showVid(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = false;
    VID. Visible = true;
    movie_flv. Stop();
    }

    }

    }

    < code >

    use:

    package  {
    import flash.display.*;
    import flash.events.*;

    import MyClasses.*;//Import local classes from MyClasses folder

    /*
    This app shows 3 different ways of showing video and animation. The video must be brought into the stage by importing it
    Clicking the buttons at the bottom brings up each type of object. The all have their own actionscipt classes to control them.
    If you have imported a video, placed it on the stage and given it the name vid, then you can uncomment the video code
    */

    public class VideoMain extends Sprite{
     
      //Create objects we can use with actionscript. These are linked to symbols in the library.
      //Each has its own actionscript file to control it internally...
      private var banner:AnimationBanner = new AnimationBanner();
      private var frames:AnimationFrames = new AnimationFrames();

    public function VideoMain() {//This code is run when our application starts. It has the same name as the flash file...
       //
       addChild(banner);
       addChild(frames);
       //Set them to be invisible...
       banner.visible = false;
       frames.visible = false;
      


    Set up actions for the buttons at the bottom of the screen...
    banner_btn.addEventListener (MouseEvent.CLICK, showBanner);
    frames_btn.addEventListener (MouseEvent.CLICK, showFrames);
      
    Cannot refer to vid if you imported a component video and called it "vid".
    VID. Visible = false;
    vid.addEventListener (MouseEvent.CLICK, showVid);

    movie_flv.addEventListener (Event.REMOVED_FROM_STAGE, removedF);  assuming that movie_flv is a flvplayback component existing at this stage.

    }
     
    The (event: MouseEvent) means that the function will only work if it is called by a mouse event (in this case, the user clicks on the mouse)
    private void showBanner(event:MouseEvent):void {}
    Banner.Visible = true;
    frames. Visible = false;
    VID. Visible = false;
    movie_flv. Stop();
    }
    function removedF(e:Event):void {}

    movie_flv. Stop();

    }
    private void showFrames(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = true;
    VID. Visible = true ;);
    movie_flv. Stop();
    }
     
    private void showVid(event:MouseEvent):void {}
    Banner.Visible = false;
    frames. Visible = false;
    VID. Visible = true;
    movie_flv. Stop();
    }

    }

    }

Maybe you are looking for

  • Missing Motorola privacy settings?

    I was looking for some information on my phone and was referenced in a region called the privacy of Motorola in the settings. I could not find, and I saw somewhere that its supposed to be between the language input and backup & reset the options in t

  • HP laserjet 5: driver printer hp laserjet 5 for windows 10

    I have too many post about the search for the pilot of LJ 5 to 10 64-bit windows. but I have not yet found any solution. Help, please.

  • Scan in color using an Officejet Pro 8500 has?

    Hello I (try) to use a HP Officejet Pro 8500 a scan in color to a macbook (OS 10.6.8). Currently, I am only able to scan in grayscale using the cable or the touchpad with the program. I checked the settings and I don't see an option to change this. A

  • 2 pilots failed - PCI\VEN_1022 &amp; DEV_1423 &amp; CC_0806 and * HPQ6007

    Hey guys,. HP ProBook 455 G2 portable PC, under newly purchased 8.1 pro win - cannot find these drivers. PCI\VEN_1022 & DEV_1423 & SUBSYS_14231022 & REV_00PCI\VEN_1022 & DEV_1423 & SUBSYS_14231022PCI\VEN_1022 & DEV_1423 & CC_080600PCI\VEN_1022 & DEV_

  • Display Internet explorer opening is small.

    When I open internet explorer the size of the window is the right size, but the displayed information are small. If I go to the page, then expand it show that it is 100% display. I like the display to 150%. Is it there to save the setting of 150% and