Describe the bug
By every openning the player I have printed error in console like this:
2021-06-30 09:24:44.141532+0200 Media Creations[39379:12785401] [ProcessSuspension] 0x10c4dd0b0 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 39379, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}
Mine YoutubePlayerController looks like this below:
final YoutubePlayerController _controller = YoutubePlayerController(
initialVideoId: videoId,
flags: YoutubePlayerFlags(
enableCaption: false,
hideThumbnail: true,
forceHD: true,
autoPlay: false,
startAt: startAt,
),
);
To Reproduce
Open YoutubePlayerFlutter on IOS
Expected behavior
Opens player without any errors
Screenshots
If applicable, add screenshots to help explain your problem.
Technical Details:
Additional context
Here's my code of YoutubePlayer:
return OrientationBuilder(
builder: (_, __) => YoutubePlayer(
key: UniqueKey(),
showVideoProgressIndicator: true,
onReady: _controller.play,
controller: _controller,
controlsTimeOut: const Duration(seconds: 2),
actionsPadding: const EdgeInsets.only(bottom: 10),
progressIndicatorColor: _theme.primaryColor,
onEnded: (_) => _controller.pause(),
bottomActions: [
Padding(
padding: const EdgeInsets.only(
left: VideoFullScreenButton.paddingSize +
VideoFullScreenButton.size * 2,
right: VideoFullScreenButton.paddingSize,
),
child: CurrentPosition(),
),
ProgressBar(
colors: ProgressBarColors(
playedColor: _theme.primaryColor,
handleColor: _theme.primaryColor,
),
isExpanded: true,
),
GestureDetector(
onTap: () => launch(
Strings.youtubeUrlFromId(
videoId,
seconds: _controller.value.position.inSeconds,
),
),
child: const Padding(
padding: EdgeInsets.only(
left: VideoFullScreenButton.paddingSize,
right: VideoFullScreenButton.paddingSize,
),
child: FaIcon(
FontAwesomeIcons.externalLinkAlt,
color: Colors.white,
size: VideoFullScreenButton.size,
),
),
),
VideoFullScreenButton(
preloadedFullScreen: isFullScreen,
key: UniqueKey(),
onTap: (isFullScreen) => _onVideoFullScreenTap(
isFullScreen,
context,
_controller,
),
),
],
),
);
Is something missing in my project? In case of asks I'll respond immediately.
I have the same problem
Does this warning refer to Info.plist?
@PcolBP did you find any solution?
Unfortunately not for YoutubePlayerFlutter. For that project I switched to YoutubePlayerIframe since it offers better performance in compare to YoutubePlayerFlutter and no error is printing since then.
Most helpful comment
I have the same problem