video of MMR and/or finished
Hey guys,.
I'm trying to understand how to know when a video is finished playing? I followed the tutorial for video playback in an opengles app, but it is not anything but the speed set and play. Through the header of multimedia renderer I couldn't see anything to help me with this either.
It is neccisary being able to have my game begins after a screen video spash. I prefer not just hard code video length and press timer to control the progression. It would be very stupid.
Also, is there a way to set the status in a video? It is less important, but I would like to have a beautiful red to C++ wrapper with common features (stop, pause, play, skip, etc.).
Thanks in advance!
Jared
Hi Jared!
mm-rendering engine publishes information that allows you to access this information. You can use the API of bps to be notified of them, or of the PpsAccessor/PpsObject API (C++ or Cascades). I recommend this approach... Sulman and I did a presentation on this topic at the BB10Jam in early may, the code is not yet, but will be very soon. In the meantime, here's a very condensed version of what to do - not all this is documented, so I apologize if that's all it is 100% logical yet (I'm working hard to get it documented as soon as possible!):
// Subscribe to PPS notifications in 'delta' mode (i.e. only listen for changes) PpsObject ppsObject(QString("/pps/services/multimedia/renderer/context/%1/.all?wait,delta").arg(CONTEXT_NAME))); // Open the Object for reading if (!ppsObject->open(bb::PpsObject::Subscribe)) { int errorCode = ppsObject->error(); qDebug() << "Error: " << errorCode; return; } // Create an accessor to be notified asynchronously (via 'dataRecieved') of new data PpsAccessor ppsAccessor(ppsObject.data())); QObject::connect(ppsAccessor.data(), SIGNAL(received(QVariantMap)), this, SLOT(dataReceived(QVariantMap))); ... // MMRenderer tells us of new data: void dataReceived(QVariantMap data) { // Print out what MMRenderer sends us, this let's us see what sort of things we can act on... qDebug() << "Data:" << data; if (data.contains("@metadata")) { // New track has been loaded, here's how we can access duration, title, artist, etc. } if (data.contains("@state")) { // MMRenderer is changing state to stopped, or playing, etc. } if (stateMap.contains("speed")) { // MMRenderer's speed has changed, if speed = 0 we are paused, if speed < 0 we are playing in reverse! speed < 1 is slo-mo, 1 = normal speed, > 1 is fast-forward. } if (stateMap.contains("error")) { if (error == "0") { // This means we are at the end of playback... weird I know. } else { // ...otherwise a legitimate error occurred. MMRenderer is already stopped automatically } } if (data.contains("@status")) { if (statusMap.contains("position")) { // This current playback position is sent approx. once per second, this is how you update a seek bar for example. } } }
It's a little rough, but I hope you get the idea. Print the map to see what kind of information that you can analyze.
Once again, the majority of this (good, probably all of this!) is not currently documented, but I'm working diligently to get this fixed as soon as possible! Please be patient... in the meantime feel free to ask new questions as they come, and I will try my best to help with anything multimedia related! I'm pretty busy these days so I can't guarantee a quick response, but others may be able to help as well.
BVP
Tags: BlackBerry Developers
Similar Questions
-
Video makes "offline,"; Video black project and general questions.
Hi, I had a problem at the beginning of this project so far, and I urgently need help.
My project consists of files (converted to the format of MTS) WMV, and WAV audio format. It takes about 6 minutes. Since I started this project, I had problems with the black turning video in the preview. I wouldn't be able to watch my project; Only, I'd be able to hear audio and see a black screen. I got around this first closing and restarting. However, this solution is only temporary, and I have to restart often.
I then started to have a significant problem of video content. I would like to get notifications of error saying something like "the framesize is too big." Once again, reboot fixed the problem first.
Now that I finished my project, I ran into more problems. Whenever I try to make out in the SOUL, I get the error message "video compilation error. Unknown error. "I tried to put the video in a new sequence without result. I then tried to return only part of the sequence. The video came out like this:
When I had used the first on my desktop computer, I remember that I had once run into a major problem - I couldn't use the MTS files. That they would turn my Green video. I corrected this problem by converting the video into a different format. On my new laptop, I didn't experience this problem again. So, I tried to convert them to MPEG2 with SOUL format. However, when converting, video skipped and didn't work, so I had to use a different converter. I used it to convert the WMV files.
Any advice will be appreciated!
NOTE: I do not have the CD with me so I can't uninstall/reinstall.
------------------
Information System
------------------
Time of this report: 10/08/2012, 17:19:47
Computer name: BRITTANY-MSI
Operating system: Windows 7 Home Premium 64 - bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.120503) - 2030
Language: English (regional setting: English)
System manufacturer: Micro-Star International Co., Ltd.
System model: GT60 GT60/0NC 0NC
BIOS: GT60 0NC E16F3IMS Ver: 3.0 C MSI-laptop MSI
Processor: Intel Core i7-3610QM CPU @ 2.30 GHz (8 CPUs), ~2.3GHz
Memory: RAM 12288MB
Available OS memory: 12184MB RAM
Page file: 7165MB used, 17202 MB of available space
Windows Dir: C:\windows
DirectX version: DirectX 11
DX setup parameters: not found
DPI setting: Using System DPI
System DPI setting: 120 DPI (125%)
DWM DPI Scaling: unknown
DxDiag Version: 6.01.7601.17514 32 bit Unicode
Let me know if you need more information. I know that it is not good to work with a single hard drive, but I don't have one.
Thanks for the tips!
I tried Neoscene and he made my video double speed but with audio normal. Which lead me to this discussion where I was then directed to the video codecs Lagarith and UT .
I tried the two codecs and ended up using the UT video codec to convert my videos to view.
Even if I end up using Neoscene, your answer has led me to the correct answer. Thank you!
-
When you watch a video on Facebook, etc., the video part freezes and the sound continues to play until I have to go over it. I use Wuindows 7. The video will restart when I pass this pointer/mouse.
The same video (s) works correctly when you use Chrome?This issue may be caused by malicious software.
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
- https://support.Mozilla.org/KB/troubleshoot-Firefox-issues-caused-malware
Make a check of malware with several malware scanning of programs on the Windows computer.
Please scan with all programs, because each program detects a different malicious program.
All of these programs have free versions.Make sure that you update each program to get the latest version of their databases before scanning.
- Malwarebytes' Anti-Malware:
http://www.Malwarebytes.org/MBAM.php - AdwCleaner:
http://www.bleepingcomputer.com/download/adwcleaner/
http://www.Softpedia.com/get/antivirus/removal-tools/AdwCleaner.shtml - SuperAntispyware:
http://www.SUPERAntiSpyware.com/ - Microsoft security scanner:
http://www.Microsoft.com/security/scanner/en-us/default.aspx - Windows Defender:
http://Windows.Microsoft.com/en-us/Windows/using-Defender - Spybot Search & Destroy:
http://www.safer-networking.org/en/index.html - Kasperky free Security Scan:
http://www.Kaspersky.com/security-scan
Alternatively, you can write a check for an infection rootkit TDSSKiller.
- Utility anti-rootkit TDSSKiller:
http://support.Kaspersky.com/5350?El=88446
See also:
-
I've seen a few solutions in your site but cannot follow what is said. For the less savvy technique, please list step by step instructions - what to click, how to get there, what to look for etc..
It took some time for me to get a resolution. I feel that each situation is unique. I tried several of the solutions proposed in this forum and in other available online, including Flashplayer forums.
It would have been absurd that I can see videos from virtually anywhere, but I could not by Fox News and CBS. Something was in conflict, but I didn't know what.
It turns out that I had a problem with Doubleclick.net. In Internet Options - Security - Trusted Sites - Sites is where you should go. If you find that it is a site - delete. In my case, it wasn't there, but I added the following to my trusted sites - https://*. DoubleClick.net and low and behold, all right. I watched a few videos of Foxnews and I finally managed to see CSI from CBS online.
How this has happened I'm not sure, but sometimes there is, I had this crazy idea to withdraw advertising via AOL. A number of e-mail accounts is by AOL, and I suspect that something has been corrupted as a result.
I hope this can solve the problem for some of you who have this problem, but looking at internet options via your Control Panel control seems to be less aggravating area to start!
-
After the upgrade to the latest version 13.0.1
I can't open videos from youtube and other sites
I tried all the solutions, but none works
I would also consider the following. Recent crashes of some multimedia content (this includes the Youtube videos, some flash games and other applications), in collaboration with Firefox 13 are probably caused by a recent update of Flash 11.3 and/or Real Player browser plugin to malfunction.
To resolve this problem, follow the steps in these articles in the Knowledge Base:
Flash Plugin - maintain and troubleshoot
Adobe Flash plugin has crashed - avoid that it happen
11.3 Flash does not load video in Firefox
We'll find other information on more technical issues under these links:
http://forums.Adobe.com/thread/1018071?TSTART=0
http://blogs.Adobe.com/asset/2012/06/inside-Flash-Player-protected-mode-for-Firefox.html
Please tell us if it helped!
-
In 2007, I bought an iMac G5 and my safari videos are slow and jerky. What can I do?
They are cutting and slowly because the version of Safari running on 10.4 Tiger is very outdated.
And it's not just v10.4 is the question, but most of the video content requires Flash. The minimum requirement for Flash is...
- Intel Core™ Duo 1.83 GHz or faster processor
- Mac OS X v10.6 or later version
- Latest versions of Safari, Mozilla Firefox, Google Chrome and Opera
- 512 MB of RAM; 128 MB graphics memory
-
I understood the problem, but don't know how to fix it. It is said to run dxdiag because direct 3D, so i run dxdiag and it finishes loading, I test direct 3D and it works fine, so I re-run halo, but then it still doesn't work. so I went online for patches, but when I downloaded a patch for windows 7, but I have windows xp. so I go back to the internet and search for patches for windows xp, but there is no result. so I thought change to windowed mode halo would work but it dident work when I ran halo 3rd becose my color depth is low, I have 24-bit color quality, but I don't know how to change, so I look for a way to change this for months and no results.so to microsoft answers site please help me because I have nothing else in my mind to the difficulty of halo
I have:(1.halo of the trial(custom edition 2.halo (full)Halo is ever going to work on my computerbecause he never didI play with my cousins that I visit about 3 times a yearHello
I suggest you go through the link.
Minimum system requirements for Halo: Combat Evolved
http://support.Microsoft.com/kb/829479Please check if the computer meets the minimum system requirements to play HALO gameYou can also refer to: -
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: -
Laptop stops playing the video in facebook and have to restart to get it working again?
Laptop stops playing the video in facebook and have to restart to get it working again?
Hello
Try a new installation of the plugin flash/ActiveX as follows.
First, download the Flash uninstall utility on the link below and save it in your downloads folder.
Once the download is complete, close all the browser windows, open your downloads folder and run the program uninstaller. After this has completed, restart the laptop.
When windows has reloaded, download and install the latest version of Adobe Flash. Note: You can deselect the option to include McAfee Security Scan Plus before downloading.
When the installation is complete, restart the laptop.
***************************************************************************
If the above is not correct the problem, try the following.
First of all, download and run the uninstall program of Shockwave on the link below.
http://fpdownload.Macromedia.com/Get/Shockwave/Uninstall/Win/sw_uninstaller.exe
After this has completed, restart the laptop.
When windows has completely recharged, download and install the latest version of Shockwave on the following link.
http://get.Adobe.com/Shockwave/
Once again, after the installation, restart the laptop.
Kind regards
DP - K
-
I can't see the videos on youtube and other sites.
Something has gone wrong with my Dell laptop, I can't see the videos on youtube and other sites. I updated latest version FlashPalyer, it does not solve the problem. Facebook also not opening. I'm trying to see the online football match, where I used to see, I am not able to see it too.
Hello
1. you are trying to access YouTube from within Internet Explorer?
I suggest you to follow these steps and check if that helps.
The video problems when you use Internet Explorer
http://support.Microsoft.com/kb/2532294
Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.
Hope this information is useful.
-
Windows has a program to make a picture of so video a while and where is it?
Windows has a program to make a picture of so video a while and where is it?
To pause the video and take a screenshot. Here are some free tools to make the shot easier screen.Gadwin PrintScreen
http://www.Tucows.com/preview/419481PicPick
http://PicPick.en.softonic.com/The use of PicPick
http://voices.Yahoo.com/how-capture-screens-PicPick-6169488.htmlPicPick tutorials
http://www.letslearnit.org/en/component/content/article/99-w-new-media-web20/694-PicPick-getting-started -
Vista automatic update said updated 1 of 9 (KB2653956) installation stops at about 10% and custom finishes just continues to run.
I've been stuck here for 2 weeks
Hi Joepompous,
I suggest you to follow the steps in the link and check if it helps.
I hope this helps.
-
Every time I go to MSN Video he shows videos that I watch, but the part where you watch the video is black and it says it is loading and it is there.
I just installed windows 7
Hello
· What web browser do you use?
· The issue is only with MSN videos?
Follow these methods and check if that helps.
Method 1:
I suggest you install the latest version of Microsoft Silverlight and check if it helps.
http://www.Microsoft.com/getSilverlight/get-started/install/default.aspx
Method 2:
I suggest you follow the troubleshooting steps form the article and check if it helps.
The video problems with Internet Explorer
-
Original title: Windows Media Player
I converted a clip video .mov .avi and inserted in Windows Movie Maker, but it's only playing as sound and no video, why?There may be some compatibility issues with .avi files...
try to convert the .mov file to .wmv format before
import into Movie Maker.There are many programs that can do conversions...
The following freeware is an example...:(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Format Factory
http://www.videohelp.com/tools/Format_Factory
(the 'direct link' is faster)
(the file you want to download is: > FFSetup260.zip<>
(FWIW... installation..., you can uncheck
('all' boxes on the last screen)First, you will need to decompress the file or just open the
Drag FFSetup260.exe out of the folder
and drop it on your desktop. To install left click.Next, after the download and installation of Format
Factory... you can open the program and
left click on the toolbar, the "Option" button and
"Select an output folder to" / apply / OK.
(this is where you find your files after they)
are converted)Drag and drop your clips on the main screen .mov...
Select "all to WMV" / OK...
Click on... Beginning... in the toolbar...
That should do it...
Good luck...
-
I watch videos of film from a site. video will freeze and thaw. the site says, you're on the right connection speed.
Hi Joeproneversink,
A. what internet browser do you use?
B. does come with a Web site or all?
Try the following steps.
Step 1
Remove the cookies and temporary files.
http://support.Microsoft.com/kb/278835
Step 2
Clean boot helps eliminate software conflicts. Let us check if software is causing the problem by following the clean boot procedure. To perform the clean boot procedure, follow the instructions in the link below.
Step 1: Perform a clean boot
Step 2: Enable half the services
Step 3: Determine whether the problem returns
Step 4: Enable half of the startup items
Step 5: Determine whether the problem returns
Step 6: Resolve the problem
Step 7: Reset the computer to start as usualHow to troubleshoot a problem by performing a clean boot in Windows Vista
http://support.Microsoft.com/kb/929135After checking the problem, turn the computer back to theNormal mode. Uninstall or update the program that is causing the problem.
I hope this helps.
Bindu R - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
How can I stop stop in closing the laptop
I just bought a laptop 053EA ENVY 17-J. I would use it in accordance with a projector. However when I close the lid of the computer goes into hibernation / standby. I would like to use it with the lid closed during presentations with the help of a ke
-
Hello with my HP250G3 I can not restart or shut down in linux OS, but in Windows works properly. Linux is not recognized BIOS, another user risolved this problem with the BIOS upgrade. You can write me a correct link? There is nothing on the support
-
I just bought a given product in nine official when I tried to use it but he quickly showed a problem with the WiFi connection. Is the WiFi card that bad that it can not detect a router since more than 4 meters? On my other laptop, I had to replace b
-
It worked very well, and this week still the cd doesn't work do not, it acts like it is read, but then just stops
-
Need to download the link for the standalone installer KB982670.
Please provide a link to download the file .msu to KB982670 .NET Framework 4 Client profile for Windows 7 x 64. This would save me a lot of hours of work and the trouble! Thank you.