Blocked JavaScript / Flutter

71 views
Skip to first unread message

Bridget Kelly O'Sheehan

unread,
Mar 27, 2021, 3:17:25 AM3/27/21
to Flutter Development (flutter-dev)
Hi Everyone,

Could anyone assist and advise if they're able to pull through this page into a mobile application? I've tried everything and I understand the specific platform 'Mixcloud is a closed off-platform, but we are aware another client who uses this platform has done this through javascript.

We can't pull the video due to CORs and they're pretty strict, so we've gone with the idea of a web view, we've got the page displaying but the video is just not displaying.

Any reason why or is it due to COR again and is there any way around this? I left the simulator running all night and returned to it showing a black screen, which when it normally loads shows the purple screen.

I've also tried this against Youtube, which works perfectly no issues loading video but I suspect the platform has put something in CORs to refuse video access?

any insight would be greatly appreciated :)

Kindest Regards,

Bridget

import 'package:ad/main.dart';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

class ListenLivePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
drawer: DrawerCodeOnly(),
appBar: new AppBar(
title: new Text('View TV'),
backgroundColor: Colors.black,
),
body: WebView(
javascriptMode: JavascriptMode.unrestricted,
),
);
}
}
Simulator Screen Shot - iPhone 12 Pro Max - 2021-03-27 at 07.14.46.png
Simulator Screen Shot - iPhone 12 Pro Max - 2021-03-27 at 07.14.09.png

Suzuki Tomohiro

unread,
Mar 27, 2021, 8:10:00 AM3/27/21
to Bridget Kelly O'Sheehan, Flutter Development (flutter-dev)
What’s the error message on COR?

What’s your domain and what’s the other domain? Do you own both?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/9e67c0cc-247b-4a34-baec-084f84701f81n%40googlegroups.com.

Suzuki Tomohiro

unread,
Mar 29, 2021, 8:38:36 AM3/29/21
to Flutter Development (flutter-dev)
Glad to hear you resolved the issue. You’re welcome.

On Mon, Mar 29, 2021 at 04:42 Bridget Sarah <in...@lyntree.io> wrote:
Hi Suzuki,

Thanks for the reply, shortly after I had written the post, I spent the entire day configuring my Android Emulator and built an APK to see if it worked on the mobile. Sure enough, works fine :) Just both the emulators Android & IOS emulators don't seem to like it.

Thank you again for responding :)

Speak Soon,

Bridget
--

Bridget


Kindest Regards,


Lyntree Web Studio & Framework

Director of Business / Full Stack Developer


Website: lyntree.io

Email: in...@lyntree.io

Phone / WhatsApp: 07761 308429


Need more customers?  We’re launching a new monthly newsletter that will be sent to our clients. Just email us back to enquire about your business.

Reply all
Reply to author
Forward
0 new messages