Quantcast
Jump to content


Problems with AVPlayer in the Tizen Emulator


Recommended Posts

Hello,

I’m doing my first attempts at developing Tizen applications.
Therfore I have created a simple example for streaming with the AVPlayer.
But I have a problem there.
As described in the tutorials, I created the player object like this:
 

function createAVPlayer() {
	var objElem = document.createElement(‘object’);
	objElem.type = application/avplayer’;
	objElem.style.left = 0px’;
	objElem.style.top = 0px’;
	objElem.style.width = 1920px’;
	objElem.style.height = 1080px’;
	document.body.appendChild(objElem);
}

Then I initialize the player as follows:

var init = function () {
	createAVPlayer();
    webapis.avplay.setListener(listener);
    webapis.avplay.open(url);
    webapis.avplay.prepareAsync(successCallback,errorCallback);
};

In the console view, everything looks ok:

adding listener
Entered AVPlayManager.prepareAsync()
Buffering start.
Buffering progress data : 2
Buffering progress data : 3
Buffering progress data : 4
...
Buffering progress data : 98
Buffering complete.
The media has finished preparing
Current playtime: 17
Current playtime: 518
Current playtime: 1021
...
Current playtime: 16569
Current playtime: 16880
Stream Completed

But unfortunately the screen remains black in the emulator.
Could it be that I still have to put the AVPlayer object reference to the AVPlay API?
I attaching my example project, maybe one of you can help me.

Many greetings
Rolf

StreamPlayer.zip

Link to comment
Share on other sites



  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Similar Topics

    • By BGR
      A Redditor went viral over the weekend by proving that phones like the Galaxy S23 Ultra will produce fake Moon photos with a few simple experiments. This wasn’t the first time someone showed that Samsung might be misleading Galaxy S buyers. But the post’s virality brought the matter back to everyone’s attention. It took Samsung a few days to address the fake moon photos controversy. The company translated a post published in Korea last year to English which explains its algorithms for moon photos. Samsung also essentially says that it’ll keep lying to you.
      The main problem here isn’t that Samsung is faking moon photos with the help of artificial intelligence (AI). It’s that Samsung is misleading buyers and using “nightography” and moon photos as big selling points for the phone. Check out the Galaxy S23 Ultra ad below:
      Remember, Samsung did something similar back in 2016 when it turned on Beauty Mode by default on Samsung phones. The beautification feature removed face imperfections by default, and users hated it.
      Samsung’s moon photos controversy response is available at this link. The English version is almost similar to the Korean variant, available at this link.
      Samsung explains how its high-end phones use a Screen Optimizer feature to improve the resulting image. Specifically, the feature allows AI to enhance photos of the moon.
      Samsung says that users can disable Screen Optimizer if they want to. The feature launched with the Galaxy S21 series:
      Samsung’s Scene Optimizer feature. Image source: Samsung Samsung uses a technology called Super Resolution to take more than 10 images of the moon at 25x zoom or higher. This process should eliminate noise and enhance clarity, Samsung says.
      Samsung’s AI detects the moon in photos before applying the Scene Optimizer. Image source: Samsung Furthermore, Samsung explains that it trained its machine learning (ML) algorithms on various moon shapes, so it can recognize all shapes of the moon. But the AI will not recognize the moon if objects block it, something we saw in recent experiments.
      Once it recognizes the moon, the Galaxy S phone will adjust the brightness “to present the moon more clearly while maintaining optimal brightness.”
      If the moon is at an appropriate brightness level and the user takes the photo, the algorithms will deliver the clearest image of the moon possible:
      The final part seems responsible for the fake moon photos we saw in the Reddit experiment. Here’s a diagram of the process:
      The full process of taking fake photos of the moon. Image source: Samsung Samsung ends the blog post with a promise to improve Scene Optimizer and essentially tell users that it’ll continue to deliver fake photos of the moon. But maybe make it harder for people to detect it:
      The better way to handle the matter would be for Samsung to turn on Scene Optimizer off by default and properly inform customers that the moon photos they take might not be real. Also, not using moon photography in ads until the Galaxy S phone can actually capture real photos of the moon would be great.
      Samsung uses a “fake moon” title for the images that highlight the AI features Samsung uses to take fake moon photos. Image source: Chris Smith, BGR Samsung is aware of how important the fake moon controversy might be. Why else use “fake moon” as a title for all the photos uploaded to the blog post?
      Don't Miss: Google Pixel Fold might launch in June for around $1,800The post Samsung attempts to explain its fake Moon photos appeared first on BGR.
      View the full article
  • Similar Tagged Content






×
×
  • Create New...