{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/2317","repository_url":"https://api.github.com/repos/google/ExoPlayer","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/2317/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/2317/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/2317/events","html_url":"https://github.com/google/ExoPlayer/issues/2317","id":200264045,"number":2317,"title":"White and Green Line on screen?","user":{"login":"liauli","id":16285098,"avatar_url":"https://avatars.githubusercontent.com/u/16285098?v=3","gravatar_id":"","url":"https://api.github.com/users/liauli","html_url":"https://github.com/liauli","followers_url":"https://api.github.com/users/liauli/followers","following_url":"https://api.github.com/users/liauli/following{/other_user}","gists_url":"https://api.github.com/users/liauli/gists{/gist_id}","starred_url":"https://api.github.com/users/liauli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liauli/subscriptions","organizations_url":"https://api.github.com/users/liauli/orgs","repos_url":"https://api.github.com/users/liauli/repos","events_url":"https://api.github.com/users/liauli/events{/privacy}","received_events_url":"https://api.github.com/users/liauli/received_events","type":"User","site_admin":false},"labels":[{"id":214717009,"url":"https://api.github.com/repos/google/ExoPlayer/labels/need%20more%20info","name":"need more info","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-12T02:37:11Z","updated_at":"2017-01-16T04:45:18Z","closed_at":null,"body":"I am currently using Exoplayer and got a problem, it seems this is an issue related to the aspect ration of the videos.\r\nWhite line appeared on top of the screen while green line appeared on bottom of the screen. I only use basic code from Exoplayer's page. How to make the video full screen without these lines ?\r\n\r\nScreenshot attached below.\r\n\r\nLayout:\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\".activities.movie.MoviePlayerActivity\">\r\n    <com.google.android.exoplayer2.ui.SimpleExoPlayerView\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:id=\"@+id/player\"/>\r\n</FrameLayout>\r\n```\r\n\r\nActivity: exactly the same with basic information from Exoplayer's page..\r\n\r\nSample pic:\r\n![Image1](https://s27.postimg.org/dyq4os8v7/Screenshot_2017_01_11_17_03_13.png)\r\n\r\nEDIT:\r\n- I am using ExoPlayer ver 2.0.4\r\n- I have tested in 5 devices and 4 of them have this problem: LG G5, Oppo F1, HTC Desire 616, Sony Xperia M4. Samsung Galaxy S7 Edge is the only one that doesn't have this problem. \r\n- Video Size: 720x406\r\n\r\n\r\nsnippet from MoviePlayerActivityClass:\r\n```\r\n loadRateView = (TextView) findViewById(R.id.load_rate);\r\n        simpleExoPlayerView = (SimpleExoPlayerView)findViewById(R.id.player);\r\n\r\n        // 1. Create a default TrackSelector\r\n        Handler mainHandler = new Handler();\r\n        BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter();\r\n        TrackSelection.Factory videoTrackSelectionFactory =\r\n                new AdaptiveVideoTrackSelection.Factory(bandwidthMeter);\r\n        TrackSelector trackSelector =\r\n                new DefaultTrackSelector(mainHandler, videoTrackSelectionFactory);\r\n\r\n        // 2. Create a default LoadControl\r\n        final LoadControl loadControl = new DefaultLoadControl();\r\n        // 3. Create the player\r\n        player = ExoPlayerFactory.newSimpleInstance(this, trackSelector, loadControl);\r\n\r\n        // Bind the player to the view.\r\n        simpleExoPlayerView.setPlayer(player);\r\n        // Measures bandwidth during playback. Can be null if not required.\r\n        DefaultBandwidthMeter bandwidthMeter2 = new DefaultBandwidthMeter();\r\n\r\n        // Produces DataSource instances through which media data is loaded.\r\n        final DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(this,\r\n                Util.getUserAgent(this, \"AsiadigiEdukids\"), bandwidthMeter2);\r\n\r\n        // Produces Extractor instances for parsing the media data.\r\n        final ExtractorsFactory extractorsFactory = new DefaultExtractorsFactory();\r\n\r\n        // This is the MediaSource representing the media to be played.\r\n        ArrayList<MediaSource> sources = new ArrayList<>();\r\n        Uri link = Uri.parse(Constants.PLAY_URL+\"movies/\"+ mSelectedMovie.getVideo());\r\n        MediaSource videoSource = new ExtractorMediaSource(link,\r\n                dataSourceFactory, extractorsFactory, null, null);\r\n        sources.add(videoSource);\r\n\r\n        ...\r\n\r\n        MediaSource[] sourceArray = new MediaSource[sources.size()];\r\n        sourceArray = sources.toArray(sourceArray);\r\n\r\n        ConcatenatingMediaSource concatenatedSource =\r\n                new ConcatenatingMediaSource(sourceArray);\r\n      \r\n        // Prepare the player with the source.\r\n        player.prepare(concatenatedSource);\r\n        player.setPlayWhenReady(true);\r\n        player.addListener(new ExoPlayer.EventListener() {\r\n            @Override\r\n            public void onLoadingChanged(boolean isLoading) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {\r\n                switch(playbackState){\r\n                    case ExoPlayer.STATE_READY:\r\n                        pb.setVisibility(View.GONE);\r\n                        loadRateView.setVisibility(View.GONE);\r\n                        break;\r\n                    case ExoPlayer.STATE_BUFFERING:\r\n                        pb.setVisibility(View.VISIBLE);\r\n                        break;\r\n                    case ExoPlayer.STATE_ENDED:\r\n                        isEnded = true;\r\n                        break;\r\n                    case ExoPlayer.STATE_IDLE:\r\n                        break;\r\n                }\r\n            }\r\n\r\n            @Override\r\n            public void onTimelineChanged(Timeline timeline, Object manifest) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onPlayerError(ExoPlaybackException error) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onPositionDiscontinuity() {\r\n\r\n            }\r\n        });\r\n```\r\n\r\nthank you!"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/272773042","html_url":"https://github.com/google/ExoPlayer/issues/2317#issuecomment-272773042","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/2317","id":272773042,"user":{"login":"liauli","id":16285098,"avatar_url":"https://avatars.githubusercontent.com/u/16285098?v=3","gravatar_id":"","url":"https://api.github.com/users/liauli","html_url":"https://github.com/liauli","followers_url":"https://api.github.com/users/liauli/followers","following_url":"https://api.github.com/users/liauli/following{/other_user}","gists_url":"https://api.github.com/users/liauli/gists{/gist_id}","starred_url":"https://api.github.com/users/liauli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liauli/subscriptions","organizations_url":"https://api.github.com/users/liauli/orgs","repos_url":"https://api.github.com/users/liauli/repos","events_url":"https://api.github.com/users/liauli/events{/privacy}","received_events_url":"https://api.github.com/users/liauli/received_events","type":"User","site_admin":false},"created_at":"2017-01-16T04:45:18Z","updated_at":"2017-01-16T04:45:18Z","body":"I am sorry, I just found out that the green and white are from the background ( I forgot that I added background there). Which means the video is not fullscreen. How to make the video full screen ?"}}
{"actor":{"display_login":"liauli"}}