I have an ios project in unreal engine(Using windows 10). Launching worked fine, I could deploy my game on my iPhone5 without any problem. I just had an issue with an in-game video: it didn’t play on my phone, so I guessed it must be because I have to put the video file in the content/movies folder of my project, so I did. Since then I cannot launch my game on my phone, I get the “Failed to connect to bundle com.xxx.xxx” message in the log.
This is rather strange, that copying a video file in the content folder, gives me an error message related to my bundle.
Hey,
sorry for the late reply, my pc just screwed up totally in the last few days, and had to fix it(there was an overheating, and had to clear the cmos).
But, now it’s fixed, and I just played around with the project, so I can figure out what was going on. Basically,
I created in an empty level a new UI Widget.
I’ve put an image in it that fills the screen, and have set the brush texture to the video texture, and created an Open Source blueprint, to open the right video texture for the associated media player(on construct).
Then I launched the project on my iPhone5, it was successful, but the video didn’t play, so I checked the Media Player, and it wrote “none” to the video screen. Ok, I double clicked the media source file in the lower window, the video loaded, played. I tested in a new player window with ‘play’, and it worked.
Then I launched again on IOS, and got the error “Couldn’t connect to bundle com.xxx.xxx”.
Machine specs:
Iphone5 with ios 10
Pc:
intel i5 3.2ghz
8gb ram
2gb video card
Apologies, but it is hard to understand from your comment if the issue is still occurring or you managed to fix it. It sounds like you are being thorough and providing the steps you took to reach the incorrect state.
If the issue is considered resolved, you can select the check mark next to my answer, and it will accept it as the solution.
If you have additional questions please let me know.
Sorry for not being clear about that. Actually it still doesn’t work.
As you can see from my previous comment, when there is no media source selected, in the media player, the game launches, but the video doesn’t play. When I double click the source video in the list of possible sources(that are already loaded, and connected to the media player, but not selected, as the actual source), so when I double click the desired source in the media player, then I get the error “failed to connect to bundle”, and the game doesn’t launch at all on my ios device.
Thanks for your patience. So I do somewhat understand now what you are saying, and the more I think about your setup the more I am led to believe it is how you are calling your Media Player to open the source within Construct of your Widget itself. I would try adding a delay before calling it to play, and moving it out of Construct.
In essence, even though your media file is loaded in your project, it might take a second for it to play when called to do so, and if you have a widget that is instantly being called to load when the level loads followed by your media source to play, I could forsee an issue with playback. So like I mentioned earlier, try adding a slight delay or moving it out of construct and controlling the playback a different way.
Since then I realized , that the “Failed to connect to bundle” error message comes in randomly after a few launches on the device. This can be solved by restarting my device. That’s Ok.
BUT. The video still DOES NOT play. I’ve put a delay right after the construct node, but it still does not play. On the PC, the video plays well, but NOT on the iPhone. So. it could be some video codec compatibility problem, or something like that. Do you have any idea?
Yes, check to make sure your video is compatible with your device. You can more than likely find multiple lists of this via google search.
As I mentioned, try moving it out of construct, and making sure your movie file is in the Content/Movies directory, and the file has been copied to that directory. Be sure any references are pointing to that directory as well, and not where it was originally imported from.
So at this point, would you be able to recreate your simple setup and get the issue to occur so you can share with me the project in order for me to reproduce the issue on my end?
I just read that if your video uses QuickTime’s AVC1 encoder. Please be aware that this may not work on all PCs if QuickTime isn’t installed. A more compatible encoder would be H.264.
Hi Andrew,
The issue hasn’t been resolved, I just had to take care of some other things, that took time.
So, I’d like to send you the whole project with a text document that cleanly explains, where you can find the problematic things quickly and easily.
It’s a small mobile game that’s about to be released.
I don’t want to post here a public dropbox link, as it is a fully developed project, but I trust the staff at Epic games, so if you would be kind and give an email where I can send the project, that would be great!
Thank you.
That would be fine. We take users project very seriously and will never share anything that is not permitted by the user providing said project. What you can do is send me a link to the project to download via a PM on the Forums. My name is the same as it is seen here on the AnswerHub.
Thanks for taking the time to gather the necessary things so we can further assist you.
Apologies for taking some time to return I have been. The ultimate answer here is that this is not really a bug and you are just encountering some of the limitations of the media framework for that specific engine release. We are going to be reworking the system again to improve further upon its compatibility and playback of various media files.
We have done some of this refactoring already for 4.15, but with the release of 4.16 we also plan to do some heavy refactoring so issues like the one you are experiencing will be potentially resolved.