You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description:
Hello every one.
I have a problem with embedding dailymotion player (SDK) in web view, with issues reproduce in cli and expo build android.
In ios daily motion player work good.
Please help me with this problem, what I do wrong with this player
Note that using static HTML requires the WebView property originWhiteList to ['*']. For some content, such as video embeds (e.g. Twitter or Facebook posts with video), the baseUrl needs to be set for the video playback to work
html (string) - A static HTML page to display in the WebView.
baseUrl (string) - The base URL to be used for any relative links in the HTML. This is also used for the origin header with CORS requests made from the WebView. See Android WebView Docs
Bug description:
Hello every one.
I have a problem with embedding dailymotion player (SDK) in web view, with issues reproduce in cli and expo build android.
In ios daily motion player work good.
Please help me with this problem, what I do wrong with this player
My Code :
View style={{paddingTop:20, width:"100%", height:500, borderWidth:1, borderColor:'red'}}>
<WebView
source={{ html:
<!DOCTYPE html> <html> <head> <link rel="preload" href="{https://geo.dailymotion.com/libs/player.js" as="script"> <meta name="viewport" content="initial-scale=1"> <style>#player {pointer-events: none}</style> </head> <body> <script src="https://geo.dailymotion.com/libs/player.js"></script> <div id="my-dailymotion-player">My Player placeholder</div> <script> dailymotion .createPlayer("my-dailymotion-player", { video: "x84sh87", }) .then((player) => console.log(player)) .catch((e) => console.error(e)); </script> </body> </html>
}}autoManageStatusBarEnabled={true}
allowsInlineMediaPlayback
mediaPlaybackRequiresUserAction={false}
bounces={false}
scrollEnabled={false}
domStorageEnabled={true}
scalesPageToFit={false}
startInLoadingState={true}
showsHorizontalScrollIndicator={false}
showsVerticalScrollIndicator={false}
allowsFullscreenVideo={true}
javaScriptEnabled={true}
originWhitelist={["*"]}
/>
To Reproduce:
Only on Android Platform
In iOS work good
Expected behavior:
I expect the same work on two platforms iOS / Android
Screenshots/Videos:
Environment:
The text was updated successfully, but these errors were encountered: