[video_player] update for video_player v2.4.7 / flutter 3.3.0 (#56)
Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Sony Corporation. All rights reserved.
|
||||
// Copyright 2022 Sony Corporation. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@@ -29,14 +29,16 @@ int main(int argc, char** argv) {
|
||||
view_properties.width = options.WindowWidth();
|
||||
view_properties.height = options.WindowHeight();
|
||||
view_properties.view_mode = options.WindowViewMode();
|
||||
view_properties.view_rotation = options.WindowRotation();
|
||||
view_properties.use_mouse_cursor = options.IsUseMouseCursor();
|
||||
view_properties.use_onscreen_keyboard = options.IsUseOnscreenKeyboard();
|
||||
view_properties.use_window_decoration = options.IsUseWindowDecoraation();
|
||||
view_properties.force_scale_factor = options.IsForceScaleFactor();
|
||||
view_properties.scale_factor = options.ScaleFactor();
|
||||
|
||||
// The Flutter instance hosted by this window.
|
||||
FlutterWindow window(view_properties, project);
|
||||
if (!window.OnCreate()) {
|
||||
std::cerr << "Failed to create a Flutter window." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
window.Run();
|
||||
|
||||
Reference in New Issue
Block a user