0% found this document useful (0 votes)
14 views9 pages

ReportWeek 5

Uploaded by

snehatumaskar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views9 pages

ReportWeek 5

Uploaded by

snehatumaskar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

INDUSTRIAL TRAINING REPORT

Session 2023-2024

Mountreach Solution PVT. LTD.


WP7X+C88, Krishnarpan Colony, Sharda Vihar,
Amravati, Maharashtra 444601
Under Supervision of

Mr. Nikhil R. Shende , Technical Head

Submitted in partial fulfillment of the requirements for the award of

Diploma In Computer
Engineering
Department of Computer Engineering

GOVERNMENT POLYTECHNIC, ARVI


Approved by AICTE, Recognized by DTE & Affiliated to MSBTE, Mumbai

Submitted To:- Submitted By:


Lect. H. P. Gathode Sneha Sharad Tumaskar
Week 5: From 01-07-2024 To 06-07-2024

Date:01-07-2024 (Monday)

• Task:1 0 Music Player(Part 1)

1. Forward and Backward Buttons to Switch Songs

• Forward Button: When clicked, this button should move to the next song in the
playlist. You can implement this by updating the current song index and calling
MediaPlayer.reset() followed by MediaPlayer.setDataSource() and
MediaPlayer.prepare().
• Backward Button: When clicked, this button should move to the previous song in the
playlist. Similar to the forward button, update the current song index and reinitialize
the MediaPlayer.

2. Forward and Backward Buttons to Skip 5 Seconds

• Skip Forward Button: When clicked, this button should move the current playback
position forward by 5 seconds. Use MediaPlayer.getCurrentPosition() to get the
current position and MediaPlayer.seekTo()to set the new position.
• Skip Backward Button: When clicked, this button should move the current playback
position backward by 5 seconds. Ensure that the new position is not less than 0.

3. Play and Pause Button

• Play Button: When clicked, this button should start playing the current song. Use
MediaPlayer.start()to begin playback.
• Pause Button: When clicked, this button should pause the current song. Use
MediaPlayer.pause()to pause playback.

4. Seek Bar to Show Progress

• Seek Bar: To display the progress of the current song, update the seek bar's progress
in sync with the playback position. Use a Handler to periodically update the seek bar
with the current position using MediaPlayer.getCurrentPosition().
• Seek Bar Change Listener: Implement a listener to handle user interactions with the
seek bar, allowing them to seek to a specific position in the song. Use
SeekBar.setOnSeekBarChangeListener() to listen for changes and
MediaPlayer.seekTo()to move to the selected position.
Output:
Date:02-07-2024 (Tuesday)

• Error session.
• Time for Practice

Date:03-07-2024 (Wednesday)

• Task:1 0 Music Player(Part 2)

In Task 10(Part 2) we added more functionality to the app that includes :


1. Adding more songs to the mediaplayer.
2. Adding functionality to playback options.
3. Adding functionality to the seekbar.

Output:

Date:04-07-2024 (Thursday)
• Error session.
• Time for Practice
Date:05-07-2024 (Friday)

• Task:11 Image Slider and Video View

Image Slider Integration

1. Add Dependency:

gradle
implementation 'com.github.dezconskun:ImageSlide:1.0.0'

2. Add ImageSlider to Layout:

xml
<com.dezconskun.imageslide.ImageSlider android:id="@+id/imageSlider"
android:layout_width="match_parent"
android:layout_height="200dp"/>

3. Initialize in Activity:

ImageSlider imageSlider = findViewById(R.id.imageSlider);


List<SlideModel> slideModels = new ArrayList<>(); slideModels.add(new
SlideModel("image_url", "Title")); imageSlider.setImageList(slideModels);

VideoView with MediaPlayer

1. Add VideoView to Layout:

xml
<VideoView
android:id="@+id/videoView" android:layout_width="match_parent"
android:layout_height="wrap_content"/>

2. Initialize in Activity:
VideoView videoView = findViewById(R.id.videoView);
videoView.setVideoURI(Uri.parse("video_url")); videoView.start();

3. Implement Controls:
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
videoView.setMediaController(mediaController);
Output:
Date:06-07-2024 (Saturday)

• Error session.
• Time for Practice

You might also like