PrepAway - Latest Free Exam Questions & Answers

You need to implement the requirements for streaming media

You need to implement the requirements for streaming media.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

PrepAway - Latest Free Exam Questions & Answers

A.
Enable access to the Videos Library.

B.
Ensure that the app stays in the foreground while media is being streamed.

C.
Enable access to the Pictures Library.

D.
Register for the SourceRequested event.

E.
Enable access to the Music Library.

F.
Register for the PlayRequested event.

Explanation:

From scenario:
Team members must be able to stream video clips to other devices in the vicinity of the team
member’s device. The app will not support the streaming of photographs.
D: You can use Play To to stream the audio or video in your application, as well as images, by
implementing the Play To contract. To implement the Play To contract in your application, register
for the sourceRequested event.
Note:
To register for the sourceRequested event, get a reference to the current PlayToManager by calling
the getForCurrentView method. You can then call addEventHandler on the PlayToManager to
associate your event handler with the sourceRequested event. In your event handler, pass the media
element from your application to the setSource method of the PlayToSourceRequestedEventArgs
object passed to the event handler as shown in the following example.
// Play To Contract
private Windows.Media.PlayTo.PlayToManager ptm =
Windows.Media.PlayTo.PlayToManager.GetForCurrentView();
protected override void OnNavigatedTo(NavigationEventArgs e)
{
ptm.SourceRequested += sourceRequestHandler;
}
private void sourceRequestHandler(
Etc.

2 Comments on “You need to implement the requirements for streaming media

  1. lowest price says:

    I loved as much as you will receive carried out right here. The sketch is attractive, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot often inside case you shield this increase.|




    0



    0

Leave a Reply