react-native-webview / react-native-webview

React Native Cross-Platform WebView
https://github.com/react-native-community/discussions-and-proposals/pull/3
MIT License
6.3k stars 2.95k forks source link

Expo/CLI Unable to load Dailymotion-Video-Player embedded script for Android in React Native #3391

Open EduardSavchenko opened 2 months ago

EduardSavchenko commented 2 months ago

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>

My Player placeholder
` }} 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:** ![Снимок экрана 2024-04-10 в 11 34 53](https://github.com/react-native-webview/react-native-webview/assets/90419879/50dce817-2ae3-42ba-b5dc-84518bae0c55) **Environment:** - OS: MacOS / Windows - OS version: Sonoma Version 14.4.1 / Windows 10-11 - react-native version: react-native: 0.73.6 - react-native-webview version: react-native-webview: 13.6.4
EduardSavchenko commented 2 months ago

In Flipper have some massages

Снимок экрана 2024-04-15 в 12 02 46

EduardSavchenko commented 2 months ago

Static HTML

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

github-actions[bot] commented 1 day ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically