Is there any UIVideoPlayer tutorial?

Is there any UIVideoPlayer tutorial?
0.0 0

#22

I mean to debug the header. Set a break point in there or step into/through the code.


#23

You mean like this?

But I have just compiled lib of cocos2d, it will debug that? Now it just goto constructor end line… and nothing…


#24

No, set a breakpoint inside the UIVideoPlayer.h file.

Normally your IDE will color the executed codepath for you.

It will debug it, if you compiled the debug version of it.


#25

I have just compiled lib, so probably it will not debug. But when I ctrl+click to #include “ui/UIVideoPlayer.h” I goto UIVideoPlayer.h file. But how can I set breakpoint, if I can’t compile project, when I add:

#include “ui/UIVideoPlayer.h”

using namespace cocos2d::ui;
using namespace cocos2d::experimental::ui;


#26

Hmm. After cleaning delivered data folder and rebuild, now all works… very strange.


#27

That’s why you need to compile it as debug.

Because the pre-processor will parse it.

With modern IDEs you would just need to open the header file and the executed code path will be highlighted and you can hover over the pre-processor defines.

Xcode is far from perfect. I had many such issues over time. Maybe it was an issue with cached headers.

The most prominent IDE with such issues is Eclipse.


#28

Anyway, thank you for your help.


#30

One more question: when I video playing, I see this controls:

How can I hide it?


#31

Please help. Actually, I need that no any controls were on the screen, because it’s nightmare now, I can pause video, press “Done” and get some glitches here… This player is in beta state now? Maybe better to not use it?

I need control over this:


#32

I solved this by editing the following files:


#33

Hello @larsven

iOS and Android both worked for me.
Thank you.


#34

We created a video tutorial for this

http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos2d-x-ui-cpp&videoindex=6533#6533


#36

I am facing issues on android device, The video is not playing and I get a pop up which says “Video can not be played”. Can somebody help me? @pabitrapadhy @SonarSystems


#37

What is the source of the video?


#38

Video is in my res folder in mp4 format.


#39

How big is it?


#40

I am getting a problem that media player is not showing the controller on android device, how can i enable the media players seekbar on android device?