Skip to content

Application got hang or Crashed in Android app.  #1601

@Dhass15

Description

@Dhass15

Hi,

I Have looking forward for purchasing the videoplayer for our android project in unity.

so i have decide to check with demo pack is that work fine.

there i having a issue after the video loading, that is i have scenario where videos are going to be in the server and directly loading from the server streaming the videos in app.

there i have a single media player and for rendering the video i have used the displayuGUI.
upload_2023-7-28_0-10-25.png

upload_2023-7-28_0-11-3.png

I have using 480quality videos and lesser than that

Here how i load the videos from URL ,like

private void VideoLoad(string videoURL)

{

bool isOpening = mediaPlayer.OpenMedia(new MediaPath(videoURL, MediaPathType.AbsolutePathOrURL), autoPlay: true);

// Changing the media hints for content loaded via Path

MediaHints hints = mediaPlayer.FallbackMediaHints;

hints.stereoPacking = StereoPacking.TopBottom;

mediaPlayer.FallbackMediaHints = hints;

}

so the video will, then i will send the videoURL as respective if the video is going to be change.

after doing this after some video played the application got hang or crashed so i have debugged using the android logcat profiler.

Error i am getting is

2023-07-27 23:02:29.018 14969 14992 Warn System.err at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

2023-07-28 00:31:24.355 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.access$500(Unknown Source:0)

2023-07-28 00:31:24.355 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:126)

2023-07-28 00:31:24.355 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

2023-07-28 00:31:24.356 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

2023-07-28 00:31:24.356 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.access$500(Unknown Source:0)

2023-07-28 00:31:24.356 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:126)

2023-07-28 00:31:24.356 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

2023-07-28 00:31:24.360 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

2023-07-28 00:31:24.360 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.access$500(Unknown Source:0)

2023-07-28 00:31:24.360 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:126)

2023-07-28 00:31:24.360 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

2023-07-28 00:31:24.373 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

2023-07-28 00:31:24.373 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.access$500(Unknown Source:0)

2023-07-28 00:31:24.373 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:126)

2023-07-28 00:31:24.373 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

2023-07-28 00:31:24.373 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

2023-07-28 00:31:24.373 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer.access$500(Unknown Source:0)

2023-07-28 00:31:24.374 7146 7184 Warn System.err at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:126)

is anything i am done or need to do some changes

Any thing you could suggest is Helpful for me

Please share your thoughts

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidAndroid platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions