-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'MPMoviePlayerViewController is no longer available. Use AVPlayerViewController in AVKit.' #207
Comments
same problem here |
@mouness2020 @phuoclinh any ideas for a fix? |
Since I had to use this Framework I migrated it to use a custom view with AVPlayerLayer as the backing layer. Until there is an official revision, you can give it a look here |
Thats great thank you very much @ferhatabd |
Hey @ferhatabd I'm using your version, maybe it's just me but creating the MobilePlayerViewController doesn't allow me anymore to use contentURL as a parameter, is there any fixes to that? |
Hi @SerxhioGugo, |
can you share how you use it again? Thanks |
Hi @KwesiCobbina |
Thanks
…On Sat, 15 Aug 2020 at 6:57 AM, Ferhat Abdullahoglu < ***@***.***> wrote:
can you share how you use it again? Thanks
Hi @KwesiCobbina <https://github.com/KwesiCobbina>
The sample ViewController is here
<https://github.com/ferhatabd/MobilePlayer/blob/bd3c197db56ad85c3c57706e9a551b3f3396f299/Sources/MobilePlayer/Example/ExampleVC.swift>
I updated the link, I hope it helps.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#207 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANBUELQZQZK52GYKEKSTJWDSAYWXFANCNFSM4I5LSPNA>
.
|
It helped a lot. But the controls don’t show any more. It that intentional?
On Sat, 15 Aug 2020 at 6:59 AM, Kewsi Cobbina <[email protected]>
wrote:
… Thanks
On Sat, 15 Aug 2020 at 6:57 AM, Ferhat Abdullahoglu <
***@***.***> wrote:
>
>
>
>
> can you share how you use it again? Thanks
>
>
>
>
> Hi @KwesiCobbina <https://github.com/KwesiCobbina>
>
>
> The sample ViewController is here
> <https://github.com/ferhatabd/MobilePlayer/blob/bd3c197db56ad85c3c57706e9a551b3f3396f299/Sources/MobilePlayer/Example/ExampleVC.swift>
>
>
> I updated the link, I hope it helps.
>
>
>
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#207 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ANBUELQZQZK52GYKEKSTJWDSAYWXFANCNFSM4I5LSPNA>
> .
>
>
>
|
I'm using Xcode 11 and build to device iPhone X (iOS 13).
The log is:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'MPMoviePlayerViewController is no longer available. Use AVPlayerViewController in AVKit.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23b98a1c +[NSException raise:format:] + 188
3 MediaPlayer 0x00007fff276f18d5 -[MPMoviePlayerViewController initWithContentURL:] + 94
The text was updated successfully, but these errors were encountered: