How to get the video path of the Replay Kit? - ios

Our app is a live app, do a video screen function, i use the replaykit. I want to customize the video preview, but i can not get the video of the recorded path.

Related

Displaying 360 Video from an iOS App to an AirPlay Device

A client's app displays two versions of a video in the app, one regular, one 360 view. The regular video is handled by AVPlayer. The 360 video is rendered by the open source package Swifty360Player (which works very well, btw). The app would like to be able to display either video on a big screen using AirPlay.
For the normal video, this is no problem. The 360 Video, however, is produced by a SceneKit view, so it's technically more akin to a 3D game than a video. I know that we can display game scenes on an AirPlay device if/when the user manually mirrors his iPhone/iPad to the AirPlay screen.
But I wonder, is there any way to generate a live video stream from the SceneKit view, and then transmit that video stream to the AirPlay device in real time? My wish is that the user could then use an AVRoutePickerView to select an AirPlay device from within the app.
ReplayKit does this for streaming services like Twitch but this app isn't looking to broadcast, just to share video with a single screen in the same room.
Is there anyway to accomplish this?

AVAssetWriter: preview recorded .mp4 before calling `finishWriting`?

I am using AVAssetWriter to record a video (with audio) form iOS camera. Everything works great.
I now want to allow the user to preview the video before saving, meaning, before calling finishWriting on the AVAssetWriter instance.
My original thought was to copy the current file the writer is writing to during recoding to a preview url, and then use another AVAssetWriter to finalize that file and then play it.
However, I am not sure how to properly initialize a second AVAssetWriter for preview purposes, so I can call finishWriting on it at the preview url...
Anyone knows how I could implement preview functionality to allow a user to preview the currently recorded mp4 before calling finishWriting?
Anyone knows how I could implement preview functionality to allow a user to preview the currently recorded mp4 before calling finishWriting?
You must call finishWriting in order to have a viewable mp4 file.
So call finishWriting, let the user preview the resulting file and then decide whether to delete it or keep it.

Youtube video embedding thumbnail

I have a youtube video playlist of 15 videos.
On my website when someone clicks a link, I am displaying a specific video within the playlist (example: video 5 of 15). My issue is that since YouTube no longer allows autoplay if you have the audio on, the video will display properly on the page, but it always shows the thumbnail of the first video in the playlist (not the thumbnail of video 5 in this example) which confuses the viewer because they think they are looking at the wrong video and therefore don't press the play button.
Does anyone know what I can do to make the correct thumbnail to show?
Note: I don't want to embed only video 5 (in this example) because I want video 6 to start playing automatically once video 5 completes.

Remove the AVPlayerViewController from the wkwebview after it plays an inline video

So I have wkwebview which displays an html text that includes video urls as well. On tapping the video thumbnail, the wkwebview launches the AVPlayer to play the video just fine. But after viewing the video, I need to remove the player so that other information on the wkWebview is visible.But the player makes the wkwebview go blank. I am attaching the screenshots
1. normal article with text and video thumbnail(calendar icon)
2. Video being played normally
3. After video being played, the rest of the wkwebview going blank.
I want to get back to state 1 from 3.

PhoneGap/Cordova html5 audio (jPlayer) album art on Lock Screen

I have a HTML5 Application for audio playing. It uses jPlayer for playing the audio on html5. When I bundle it within phonegap, iOS is itself fetches the audio stream and shows its navigation icons on the lock screen. Now I want to push a image to that lock screen notification. I have followed this link
How to set informations of current song to iPhone lock screen with JS
https://github.com/ChoiZ/NowPlaying/tree/phonegap2
Is there any plugin available for this.
I dont want to create a new media object with audio src but just want to pass image to the current lockscreen song.

Resources