vimeo / vimeo.js

Official Node.js library for the Vimeo API.
https://developer.vimeo.com
Apache License 2.0
267 stars 78 forks source link

player not fullscreen capable on Android #175

Closed schilpr-TT closed 1 year ago

schilpr-TT commented 1 year ago

We're using Dart with Flutter and try to embed a video in a webview/iframe.

Functionality is as we would expect on all platforms except Android. Full-screen is the main feature that is not working and critical for our app.

We have created a test app to isolate the problem, I've included the core code of that below.

How do we resolve this issue?

Best regards,

Rob


import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart' as flutter_html;

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String vimeo =
      '<iframe src="https://player.vimeo.com/video/788635711?h=2edc20cdaf&amp;badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture"; webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  // String youtube =
  // '<iframe width="560" height="315" src="https://www.youtube.com/embed/EusxDAbXv7o" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: flutter_html.Html(
          data: vimeo,
        ),
      ),
    );
  }
}
aaronm67 commented 1 year ago

This is not for this package, it looks like it's potentially for an android package or the player.

Either way, unrelated to vimeo.js.