The "Control Playback With Blueprints" tutorial doesn't compile
Hi! I'm trying to go through with the above mentioned tutorial. I get an error when I try to compile the link between the OnMediaOpened event (I add it from the MediaPlayer variable into the blueprint, using the green big button in the details pane) with the Bind Event onMediaOpened. See screenshot:
The error is the following: On Media Opened (MediaPlayer) Signature Error: The select function/event is not bindable - is the function/event pure or latent? Otherwise, the player works fine. It plays on load and I can both see the video and hear audio playing.
Otherwise, is there a tutorial to do this in C== that would work?
Thank you all in advance for your help :)
Sorry for the thread necro if you have already solved this but, perhaps for the benefit of anyone else looking through this...
The problem here, I believe, is trying to assign as a delegate a preexisting Event (the MediaPlayer's On Media Opened) rather than creating a new Custom Event.
The error described occurs in C++ if the Event you are try trying to link to as a delegate isn't 'BlueprintCallable'. I assume that, within pure Blueprint, some preexisting events (like the ones you can bring up by clicking on the green buttons) also aren't considered 'Callable' in the same way.
You can see in the Tutorial that the event created has the 'Custom Event' tag, which means it's been created from the 'Add Event->Add Custom Event' menu. If you access this menu after dragging off of the red Event Delegate pin on 'Bind Event to OnMediaOpened', the new Custom Event will be created with the 'Opened Url' input variable.
Again, likely to late to be helpful for your problem @mrgreenh, but hopefully helpful for anyone else finding this thread!
answered May 06 '19 at 11:19 AM
Thank you Ascianous! I did find some way to move on, but it might have been about introducing some timer (can’t remember off the top of my head), so this is not too late, I can go back and make the blueprint better now. Thank you again!
answered May 06 '19 at 03:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here