Search in sources :

Example 6 with VideoStream

use of org.schabi.newpipe.extractor.stream_info.VideoStream in project NewPipe by TeamNewPipe.

the class YoutubeStreamExtractorRestrictedTest method testGetVideoStreams.

@Test
public void testGetVideoStreams() throws ParsingException {
    for (VideoStream s : extractor.getVideoStreams()) {
        assertTrue(s.url, s.url.contains(HTTPS));
        assertTrue(s.resolution.length() > 0);
        assertTrue(Integer.toString(s.format), 0 <= s.format && s.format <= 4);
    }
}
Also used : VideoStream(org.schabi.newpipe.extractor.stream_info.VideoStream) Test(org.junit.Test)

Aggregations

VideoStream (org.schabi.newpipe.extractor.stream_info.VideoStream)6 DialogInterface (android.content.DialogInterface)2 Intent (android.content.Intent)2 Point (android.graphics.Point)2 AlertDialog (android.support.v7.app.AlertDialog)2 Test (org.junit.Test)2 InfoItemBuilder (org.schabi.newpipe.info_list.InfoItemBuilder)2 ExoPlayerActivity (org.schabi.newpipe.player.ExoPlayerActivity)2 Activity (android.app.Activity)1 Bundle (android.os.Bundle)1 FloatingActionButton (android.support.design.widget.FloatingActionButton)1 ActionBar (android.support.v7.app.ActionBar)1 AppCompatActivity (android.support.v7.app.AppCompatActivity)1 RecyclerView (android.support.v7.widget.RecyclerView)1 MotionEvent (android.view.MotionEvent)1 View (android.view.View)1 ArrayAdapter (android.widget.ArrayAdapter)1 Button (android.widget.Button)1 ImageView (android.widget.ImageView)1 RelativeLayout (android.widget.RelativeLayout)1