We need to manually check the video media types to see if the wp_video_shortcode() can generate a player for us. If not, we need to create a player ourselves.
This is because iOS devices using Buoy as in webapp-capable mode will not be able to return back to the incident chat screen after viewing a video directly. (They need a video players UI embedded in the browser.) This requires the user to exit Buoy, then re-launch it, in order to return to their incident chat room.
We need to manually check the
video
media types to see if thewp_video_shortcode()
can generate a player for us. If not, we need to create a player ourselves.This is because iOS devices using Buoy as in webapp-capable mode will not be able to return back to the incident chat screen after viewing a video directly. (They need a video players UI embedded in the browser.) This requires the user to exit Buoy, then re-launch it, in order to return to their incident chat room.