In my react-native app I used UIWebView to show html5 audio player to user. I could successfully use MPNowPlayingInfoCenter to show playing info. But when switched to WKWebView (for performance reasons) it stopped show that info. Seems like WKWebView overrides MPNowPlayingInfoCenter. Even though I can open safari and play audio from websites and see not url but text title and can touch play/pause.
How to solve this? Please advise!
I've tried Overriding MPNowPlayingInfoCenter while using WKWebView
I need to change title, track name, image and also enable/disable buttons and track "touch" on them.
what is this ? html5 audio player is a web version which not work in react native i guess
Related
I'm making an application that plays videos in webview.
I want to play other music apps while keeping the video playing in the webview.
Is there any way to ignore or disable Audiofocus?
sorry, I'm using a translation tool by DeepL.
I am developing application like gaana.com
Which player can be used for play mp3 songs from server url ? I want
to implement Play, Pause, Next, Previous buttons And will also play
song list in background mode one by one.
I have already implemented AVPlayer but i getting issue in playing
next audio in background mode. And i had tried all answers regarding
this issue but none of all is working for me.
So i am finding alternative of AVPlayer.
I have an iOS app that plays YouTube video by embedding it in a UIWebView. This allows it to be displayed in the native system player. I do this using this library: https://github.com/youtube/youtube-ios-player-helper
This video has a subtitle track that I would like to keep as an option, but I would like it to be disabled by default. The iOS player seems to enable these subtitles no matter what I do. I have experimented with the different embed options such as cc_load_policy, with no luck.
How can I disable subtitles by default on these videos?
I have to play Vimeo videos in my iOS application using a video player. I need to log events like play, pause, seek etc. Its not possible to play using MPMoviePlayerController or AVPlayer as Vimeo videos have flash content. I am able to play using UIWebView. But, it is showing default Vimeo player controls. I need to have my own controls to play, pause etc as I need to log those events.
I have tried for lot of solutions. Nothing worked. If anyone knows how to play Vimeo videos using custom player. Please Let me know.
I am able to find out solution for this problem. I have used YTVimeoExtractor present here.
Its README.md file says following :
YTVimeoExtractor helps you get mp4 urls which can be use in iOS's native player. You can even choose between mobile, standard and high definition quality.
YTVimeoExtractor doesn't use UIWebView which makes it fast and clean.
I have used MKMoivePlayerViewController and its notifications - MPMoviePlayerPlaybackStateDidChangeNotification and ˚ notifications to get stop, pause events.
The only official way to use a player besides the Vimeo player to play Vimeo videos is to use third-party player urls provided to PRO members: https://vimeo.com/s/adg
I'm developing an iPhone App and I need to implement a player to play a list of media (video/audio) items.
Following is a screenshot of player I have captured from an another iPhone app, I found many apps playing video/audio using a player has similar UI like this.
Can this player (including UI) can be implement by official API? Or just implement manually?
How can I implement a same player like this?
To Play audio follow this blog
And to play video, either you can use CustomMovieplayer or go with UIWebView with embedded html.
Movie Player sample code from here
To play video as embedded html in UIWebView, check this..
https://stackoverflow.com/a/7551375/790794
As per the file type, you can modify the source type.