I am using bitmovin player to play DRM content. The player is perfect. My framework is Vue 3 + Tauri. I build desktop app.
Everything works fine except on Mac Os, the button fullscreen not work on Tauri App although this button is still rendered in UI as attached.
When click button, the error is: InvalidStateError: The object is in an invalid state.
My Mac OS is: Monterey 12.6.7.
On Windows, this problem not happen.
I don’t have any difference about my bitmovin config between Mac OS and Window.
The only thing defference is DRM config because in Window I run playready, on Mac OS I run Fairplay. But I don’t think this could make issue about fullscreen button.
var config = {
key: 'my-key',
playback: {
muted: true,
autoplay: true,
},
};
var source = {
title: 'Default Demo Source Config',
description:
'Select another example in "Step 4 - Load a Source" to test it here',
dash: url,
drm: {my drm config}
};
var player = new bitmovin.player.Player(
document.getElementById('player'),
config ,
);
await player.load(source)
...do something after played success
@lucky.goyal I also tried to use npm package instead of add script tag, but the fullscreen button I still not work on Mac OS Tauri App. I installed version 8.125.1 as your advised.
import { Player } from 'bitmovin-player';
var player = new Player(
document.getElementById('player'),
config,
);
Thanks for trying out the suggestions. Can you please test the behaviour on Safari browser on Mac using Bitmovin test player https://bitmovin.com/demos/stream-test?
Hi @lucky.goyal
I also test the link in Tauri App. The button fullscreen also NOT work in Tauri App. It only work in browser. The error is same as before: InvalidStateError: The object is in an invalid state.
Hi @vanminhquangtri , glad that you found the solution and thanks for sharing the the solution here, it will help other community members who wish to develop app using Tauri framework